Bug 228 : NullPointerException at BeanMapHelp (BeanMapHelp.java:46)
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.5.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
02/03/2010
Updated 
02/03/2010
Type 
Bug
 
Attachments 
No attachments

...
Caused by: java.lang.NullPointerException
at com.avaje.ebean.server.deploy.BeanMapHelp.(BeanMapHelp.java:46)
at com.avaje.ebean.server.deploy.BeanMapHelp.(BeanMapHelp.java:36)
at com.avaje.ebean.server.deploy.BeanCollectionHelpFactory.create(BeanCollectionHelpFactory.java:24)
at com.avaje.ebean.server.deploy.BeanPropertyAssocMany.initialise(BeanPropertyAssocMany.java:121)
at com.avaje.ebean.server.deploy.BeanPropertySimpleCollection.initialise(BeanPropertySimpleCollection.java:44)
at com.avaje.ebean.server.deploy.BeanDescriptor.initialiseOther(BeanDescriptor.java:613)
at com.avaje.ebean.server.deploy.BeanDescriptorManager.initialiseAll(BeanDescriptorManager.java:354)
at com.avaje.ebean.server.deploy.BeanDescriptorManager.deploy(BeanDescriptorManager.java:257)
at com.avaje.ebean.server.core.InternalConfiguration.(InternalConfiguration.java:135)
at com.avaje.ebean.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:189)
at com.avaje.ebean.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:121)
at com.avaje.ebean.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:1)
at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:63)
at com.avaje.ebean.Ebean$ServerManager.getWithCreate(Ebean.java:228)
at com.avaje.ebean.Ebean$ServerManager.(Ebean.java:184)
at com.avaje.ebean.Ebean$ServerManager.(Ebean.java:170)
at com.avaje.ebean.Ebean.(Ebean.java:144)
... 20 more

 
Rob 02 Mar 06:49
Caused by transient Many property ..
@Entity
public class ETransMany {

    @Id
    Integer id;
    
    String name;
    
    @Transient
    Map<String,String> transMap;

Rob 02 Mar 06:50
Potential Workaround

A potential workaround is to use the transient modifier

//@Transient
    transient Map<String,String> transMap;

Rob 02 Mar 06:57
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file