Bug 126 : NPE when a entity class has no default constructor
Priority 
Medium
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.0.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
30/06/2009
Updated 
30/06/2009
Type 
Bug
 
Attachments 
No attachments

If you have a class that has no default constructors i.e. it has constructor but with arguments then you get an NPE in

 
Rob 30 Jun 09:50
Fixed in HEAD

Will throw a PersistenceException now.

Caused by: javax.persistence.PersistenceException: No default constructor on class app.data.Order
at com.avaje.ebean.server.deploy.parse.AnnotationClass.checkDefaultConstructor(AnnotationClass.java:181)
at com.avaje.ebean.server.deploy.parse.AnnotationClass.read(AnnotationClass.java:80)

woResponse

Upload a file