lagom-scala.g8's People
Forkers
ignasi35 elong408 jw3 yg-apaza jroper octonato softfinity rstento rowgatta prasoonj datalchemist dwijnand fgfernandez0321 johnreedlol squarepantz ryanhanks naheedmk schrepfler ryanhanks-sandbox rdwinter2 serefayar ihostage alanomartins insdamilagom-scala.g8's Issues
Use multi-word name on travis
For new users wanting to generate a project with a name consisting of more than one word,
I love this improvement. How about a change on .travis.yml
to demo the use of multi-word projects?
- SCRIPT="sbt new file://$(pwd) --name='Hello World Steve' --organization=org.eggsample && cd hello-world-steve && sbt test"
At the moment there's no Travis job using the default properties so either that or an explicit use of multi word could help.
Originally posted by @ignasi35 in #45 (comment)
cat not set "lagom-version"
I followed this document π https://www.lagomframework.com/documentation/1.6.x/java/GettingStartedSbt.html,
and I can't set lagom-version. How to fix it?
Add lagomLogback dependency and a logback.xml sample
It'd be good to have logback enabled and configured by default on the seeds.
Maven metadata not found
When trying to follow the quickstart instructions for scala I run into the following error:
$ sbt new lagom/lagom-scala.g8
[info] Loading global plugins from /Users/slyons/.sbt/1.0/plugins
[info] Set current project to projects (in build file:/opt/dev/projects/)
[info] Set current project to projects (in build file:/opt/dev/projects/)
Maven metadata not found for `maven(com.lightbend.lagom, lagom-sbt-plugin)`
Tried: https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-sbt-plugin/maven-metadata.xml
I'm sure I just don't have my sources set up correctly but if there's a fix it should be documented.
Push template files into src/main/g8
With template files in an isolated folder src/main/g8
this project and the project generator templates won't have to share any file (readme.md
, .gitiognore
,...).
Update application loader to implement describeService instead of describeServices
See lagom/lagom#829. This will require Lagom 1.3.6.
Gateway http://localhost:9000/api/hello/123 fails with java.net.SocketException: Invalid argument
If you try http://localhost:9000/api/hello/123
, you'd get:
2019-01-14T00:47:46.420Z [error] akka.actor.ActorSystemImpl [sourceThread=application-akka.actor.default-dispatcher-19, akkaSource=akka.actor.ActorSystemImpl(application), sourceActorSystem=application, akkaTimestamp=00:47:46.419UTC] - Internal server error, sending 500 response
akka.stream.StreamTcpException: Tcp command [Connect(0.0.0.0:58859,None,List(),Some(10 seconds),true)] failed because of java.net.SocketException: Invalid argument
Caused by: java.net.SocketException: Invalid argument
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at akka.io.TcpOutgoingConnection.$anonfun$register$1(TcpOutgoingConnection.scala:87)
However, if you access hello-stream
service directly on the port 58859
, it'll work correctly (i.e., http://localhost:58859/api/hello/123
works).
Reproduction steps:
- Downloaded scala-sbt lagom example from TechHub.
- Imported it into Intellij.
- Ran
sbt runAll
task.
Note: New to Lagom & might be totally mistaken :-)
Naming a project with a hyphen creates an invalid keyspace name
See discussion in lagom/lagom#156.
You can work around this by editing <project-name>-impl/src/main/resources/application.conf
and changing it to a valid keyspace name by removing the hyphens or changing them to underscores.
Lagom 1.6 checklist
- remove
ddata
settings (see lagom/lagom#2007) - remove
serialization-bindings
settings (lagom/lagom#2008) - use Lagom
1.6.0-M4
Replace hardcoded version with Maven Central lookup
g8 supports declaring default property values as Maven Central lookups (with some filtering too).
Template not working with M1 MacBook
Hi, I'm following the Hello World tutorial found here and I ran into this issue:
WARNING: All illegal access operations will be denied in a future release
06/24 13:22:07 ERROR[main] o.a.c.u.NativeLibraryDarwin - Failed to link the C library against JNA. Native methods will be unavailable.
java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/dh/kynylzv95_vdqywhs1tw1v140000gn/T/jna--931221768/jna17123803835026746100.tmp
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2633) ~[na:na]
at java.base/java.lang.Runtime.load0(Runtime.java:768) ~[na:na]
at java.base/java.lang.System.load(System.java:1837) ~[na:na]
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
at com.sun.jna.Native.<clinit>(Native.java:140) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
at org.apache.cassandra.utils.NativeLibraryDarwin.<clinit>(NativeLibraryDarwin.java:53) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
at org.apache.cassandra.utils.NativeLibrary.<clinit>(NativeLibrary.java:88) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:196) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:602) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
06/24 13:22:07 ERROR[main] o.a.c.s.CassandraDaemon - The native library could not be initialized properly.
From my research, it suggests the issue is caused by a JNA compatibility with the embedded Cassandra.
I've verified on my machine that I have jna-5.12.0.jar
.
Can you assist with this?
JDK:
openjdk version "11.0.19" 2023-04-18 LTS
OpenJDK Runtime Environment Corretto-11.0.19.7.1 (build 11.0.19+7-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.19.7.1 (build 11.0.19+7-LTS, mixed mode)
Scala:
Scala code runner version 2.13.11 -- Copyright 2002-2023, LAMP/EPFL and Lightbend, Inc.
Machine:
Apple M1
2020 MacBook Pro
Sync with Java template
Capturing a conversation between me and @ignasi35.
@TimMoore: I see that the lagom-java.g8 and lagom-scala.g8 templates have totally different implementations of the streaming service. Which one is better?
@ignasi35: IMHO, the java one is better because itβs the only of the two showing the subscription side of a broker topic.
In readme, describe how to run
Use lowercase in package names
We should port lagom/lagom-java.g8#9 here.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.