IllegalStateException: Error trying to create the prototypeEntityBean for class
See original GitHub issueSee original discussion here: https://github.com/playframework/play-ebean/issues/278#issuecomment-1123982804
Expected behavior
Start successfully after upgrade to Ebean 13.6.0 from 12.16.1
Actual behavior
Crash
Steps to reproduce
Simple model with costructor
@Entity
@Table(name = "fishes")
public class Fish extends Model {
@Id
public int id;
@Column(nullable = false)
public String name;
public Fish(String name) {
this.name = name;
}
private void setName(String name) {
this.name = name;
}
}
Crash: https://gist.github.com/PromanSEW/c101189d0f58eba5bdfccf828643fac2 Play Ebean source: https://github.com/playframework/play-ebean/blob/main/play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java
Issue Analytics
- State:
- Created a year ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Ebean crash.log - gists · GitHub
1) [Guice/ErrorInjectingConstructor]: IllegalStateException: Error trying to create the prototypeEntityBean for class models.Fish.
Read more >java.lang.IllegalStateException: Bean class models.User is not ...
Check the following: Ensure @Entity annotation is specified on the User class. Ensure application.conf has the ebean package configured for your datasource: ...
Read more >How to configure Ebean agent enhancements? - Google Groups
IllegalStateException : Error trying to create the prototypeEntityBean for class com.myapp.entities.SomeEntity
Read more >Trouble shooting - Ebean ORM
IllegalStateException : Bean class _ is not enhanced? Actions ... Ebean - Error trying to create the default EbeanServer java.lang.
Read more >BeanDescriptor.java example - Javatips.net
This class describes the usage of BeanDescriptor.java. ... throw new IllegalStateException("Error trying to create the prototypeEntityBean for " + beanType, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, I created
ebean-version.mf
withebean-version: 141
and it fixes app I will think how to adaptplay-ebean
to this changeClosed in favor of https://github.com/playframework/play-ebean/issues/290