Configuration error[Cannot register class [models.User] in Ebean server]

1,178 views
Skip to first unread message

Ömer Faruk Gül

unread,
May 27, 2013, 4:13:42 PM5/27/13
to eb...@googlegroups.com
Hi,

I'm experiencing a very strange problem. I'm using Play Framework and I have a model called User.

There are other methods in the model other than the setters and getters and they are causing a problem.

The line in the error that get my attention is this:

Caused by: java.lang.VerifyError: (class: models/User, method: doesLike signature: (Lmodels/Feed;)Ljava/lang/Boolean;) Incompatible object argument for function call
at java.lang.Class.forName0(Native Method) ~[na:1.6.0_43]

here is the whole error output:

play.api.Configuration$$anon$1: Configuration error[Cannot register class [models.User] in Ebean server]
at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:80) ~[play_2.10.jar:2.1.1]
at play.api.Configuration.reportError(Configuration.scala:558) ~[play_2.10.jar:2.1.1]
at play.Configuration.reportError(Configuration.java:298) ~[play_2.10.jar:2.1.1]
at play.db.ebean.EbeanPlugin.onStart(EbeanPlugin.java:71) ~[play-java-ebean_2.10.jar:2.1.1]
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:63) ~[play_2.10.jar:2.1.1]
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:63) ~[play_2.10.jar:2.1.1]
Caused by: java.lang.VerifyError: (class: models/User, method: doesLike signature: (Lmodels/Feed;)Ljava/lang/Boolean;) Incompatible object argument for function call
at java.lang.Class.forName0(Native Method) ~[na:1.6.0_43]
at java.lang.Class.forName(Class.java:249) ~[na:1.6.0_43]
at play.db.ebean.EbeanPlugin.onStart(EbeanPlugin.java:69) ~[play-java-ebean_2.10.jar:2.1.1]
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:63) ~[play_2.10.jar:2.1.1]
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:63) ~[play_2.10.jar:2.1.1]
at scala.collection.immutable.List.foreach(List.scala:309) ~[scala-library.jar:na]


What could be the problem?


JAMES HARIG

unread,
May 27, 2013, 4:44:14 PM5/27/13
to eb...@googlegroups.com

Do you have a default no argument constructor for the User class? If you don't, that might be the problem.

--
 
---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rob Bygrave

unread,
May 27, 2013, 5:18:01 PM5/27/13
to eb...@googlegroups.com
What does your models/User look like? (and specifically the doesLike method)

It should be a bug in either the EbeanORM enhancement or the Play enhancement.
Reply all
Reply to author
Forward
0 new messages