playframework / play-java-starter-example

Play starter project in Java (ideal for new users!)
https://developer.lightbend.com/start/?group=play
Creative Commons Zero v1.0 Universal
161 stars 135 forks source link

Javax related error while refreshing while using Java 10 #72

Closed gaursagar closed 6 years ago

gaursagar commented 6 years ago

Hi, I was trying to use this example but ran into an error after compiling. Pasting some sections of the error below:

Uncaught error from thread [application-akka.actor.default-dispatcher-2]: Uncaught error from thread [application-akka.actor.default-dispatcher-4]: 
javax/xml/bind/DatatypeConverterjavax/xml/bind/DatatypeConverter, , shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled forshutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[ ActorSystem[applicationapplication]]

[error] a.a.ActorSystemImpl - Uncaught error from thread [application-akka.actor.default-dispatcher-2]: javax/xml/bind/DatatypeConverter, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[application]

[error] a.a.ActorSystemImpl - Uncaught error from thread [application-akka.actor.default-dispatcher-4]: javax/xml/bind/DatatypeConverter, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[application]

This was fixed by updating build.sbt to include

libraryDependencies += "javax.xml.bind" % "jaxb-api" % "2.1"

Please take a look.

schmitch commented 6 years ago

actually this will be fixed in the next 2.6.x release:

https://github.com/playframework/playframework/commit/773e372279630a4cd318c11a386ff6ed33028731