question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IllegalStateException: Error trying to create the prototypeEntityBean for class

See original GitHub issue

See 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:closed
  • Created a year ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
PromanSEWcommented, May 13, 2022

Thanks, I created ebean-version.mf with ebean-version: 141 and it fixes app I will think how to adapt play-ebean to this change

0reactions
PromanSEWcommented, May 13, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found