Error with persisting Entity

瀏覽次數:0 次
跳到第一則未讀訊息

xybrek via StackOverflow

未讀,
2012年6月23日 上午10:17:282012/6/23
收件者:google-appengin...@googlegroups.com

I'm encountering the error below when trying to persist a Entity with my Appengine web app.

Encountered a problem: ormLibs cannot be null

Please see the logs [C:\Users\XYBREK~1\AppData\Local\Temp\enhance1265959303797845825.log] for further information.

Error log:

java.lang.NullPointerException: ormLibs cannot be null at com.google.appengine.tools.enhancer.EnhancerLoader.removeOrmLibs(EnhancerLoader.java:66) at com.google.appengine.tools.enhancer.EnhancerLoader.getClassPath(EnhancerLoader.java:43) at com.google.appengine.tools.enhancer.EnhancerLoader.(EnhancerLoader.java:37) at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:69) at com.google.appengine.tools.enhancer.Enhance.(Enhance.java:71) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:51)

This is the Entity to be persisted:

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Account implements Serializable {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    @Persistent
    private String username;
    @Persistent 
    private String password;

    public Account() {

    }

    // Code omitted

}

What could be the reason for this error?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/11170144/error-with-persisting-entity
回覆所有人
回覆作者
轉寄
0 則新訊息