When starting the Play Framework 2.2.x (Java) project, the following error occurs:
Configuration error Cannot register class [models.SomeClass] in Ebean server
The error messages displayed in the browser point me to the line ebean.default="models.*" In my application.conf , and the console tells me that I have java.lang.VerifyError: Bad type on operand stack in one of my methods. There is nothing special about the methods for which this happens, and this has happened for several methods.
I found that errors can be avoided by using the static method instead: replacing someObject.doJob() with SomeClass.doJob(someObject) . I used this hack and it works, but I'm not very happy that all my methods are static when they should not be.
Has anyone encountered the same problem and found a way to fix it (without making static methods)?
plade source share