Giter Club home page Giter Club logo

lagom-scala.g8's People

Contributors

derveloper avatar dwijnand avatar erip avatar ignasi35 avatar ihostage avatar jroper avatar marcospereira avatar mergify[bot] avatar octonato avatar rstento avatar ryanhanks avatar yg-apaza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lagom-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)

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.

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 :-)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.