Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lagom DevMode does not work in 1.5.0.RC2 -ClassCastException #1858

Open
ksuicmez opened this issue Apr 11, 2019 · 1 comment
Open

Lagom DevMode does not work in 1.5.0.RC2 -ClassCastException #1858

ksuicmez opened this issue Apr 11, 2019 · 1 comment

Comments

@ksuicmez
Copy link

Using Lagom 1.5.0.RC2 devmode getting following exception when accessing service

ava.lang.ClassCastException: class scala.runtime.Nothing$ is not assignable from class akka.discovery.SimpleServiceDiscovery
at akka.actor.ReflectiveDynamicAccess.$anonfun$getClassFor$1(ReflectiveDynamicAccess.scala:24)
at scala.util.Try$.apply(Try.scala:213)
at akka.actor.ReflectiveDynamicAccess.getClassFor(ReflectiveDynamicAccess.scala:21)
at akka.discovery.Discovery$.checkClassPathForOldDiscovery(Discovery.scala:111)
at akka.discovery.Discovery.(Discovery.scala:17)
at akka.discovery.Discovery$.createExtension(Discovery.scala:103)
at akka.discovery.Discovery$.createExtension(Discovery.scala:96)
at akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:962)
at akka.actor.ExtensionId.apply(Extension.scala:79)
at akka.actor.ExtensionId.apply$(Extension.scala:78)
at akka.discovery.Discovery$.apply(Discovery.scala:97)
at com.lightbend.lagom.internal.registry.DevModeServiceDiscovery$.apply(DevModeServiceDiscovery.scala:43)
at com.lightbend.l

@octonato
Copy link
Member

Lagom 1.5.0 is released and have been gone under different tests and experimentation and we never saw this issue. I have the impression that this can be related with some dirty build on your environment.

Can you update your app to Lagom 1.5.0, run an sbt clean and test it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants