Thomas Koeppen
unread,Feb 4, 2012, 6:39:26 PM2/4/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
Hi everybody,
After "play run" we get several non-reproducable errors, for example [1]:
Configuration error [Cannot register class [models.Order] in Ebean server]
No code change was made, just restarted play and then we got this error.
Workaround is stop play, "play clean compile" and "play run".
What is the recommended way to debug play and ebean itself to see what happens behind the scenes?
Kind regards,
Thomas
[1] [error] application -
! @69a4o42lg - Internal server error, for request [GET /] ->
play.api.Configuration$$anon$1: Configuration error [Cannot register class [models.Order] in Ebean server]
at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:70) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at play.api.Configuration.reportError(Configuration.scala:257) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at play.Configuration.reportError(Configuration.java:119) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at play.db.ebean.EbeanPlugin.onStart(EbeanPlugin.java:70) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
Caused by: java.lang.VerifyError: (class: models/Order, method: toJson signature: ()Lcontrollers/Orders$OrderJson;) Incompatible object argument for function call
at java.lang.Class.forName0(Native Method) ~[na:1.6.0_29]
at java.lang.Class.forName(Class.java:247) ~[na:1.6.0_29]
at play.db.ebean.EbeanPlugin.onStart(EbeanPlugin.java:68) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0-RC1-SNAPSHOT]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library.jar:0.11.2]