lundi 4 juillet 2016

EBean: java.lang.IllegalStateException: Bean class models.User is not enhanced?

I have a Play 2.4.6 app that was working fine until two days ago. Since yesterday, I got this error:

[[37minfo] - application - Creating Pool for datasource 'default'
[[31merror] - com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager - Error in deployment
java.lang.IllegalStateException: Bean class models.User is not enhanced?
    at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1405) ~[avaje-ebeanorm-6.8.1.jar:na]

I already looked for solutions but still get that error. Even, I'm using the plugin 2.0

addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "2.0.0") 

How can I fix that?

Thank you in advance,

Update: In the end, I rewrote the code, removed EBean, and using the Play Framework's database pool and JDBC's PreparedStatement. Works like a charm. I will leave this question here, hoping it helps anyone else.

Aucun commentaire:

Enregistrer un commentaire