getting this error while enhancing using Datanucleus. any idea -
i trying enhance class (class generated during run time annotations). , getting error. dn says null pointer. idea?
22:03:36,816 (pool-7-thread-1) debug [datanucleus.metadata] - registering class "test.testclass" not having metadata. 22:03:36,817 (pool-7-thread-1) error [datanucleus.enhancer] - error thrown enhancing asmclassenhancer java.lang.nullpointerexception @ org.datanucleus.enhancer.jdo.jdomethodadapter.visitfieldinsn(jdomethodadapter.java:103) @ org.datanucleus.asm.classreader.readcode(classreader.java:1333) @ org.datanucleus.asm.classreader.readmethod(classreader.java:953) @ org.datanucleus.asm.classreader.accept(classreader.java:684) @ org.datanucleus.asm.classreader.accept(classreader.java:521) @ org.datanucleus.enhancer.jdo.jdoclassenhancer.enhance(jdoclassenhancer.java:427) @ org.datanucleus.enhancer.datanucleusenhancer.enhanceclass(datanucleusenhancer.java:927) @ org.datanucleus.enhancer.datanucleusenhancer.enhance(datanucleusenhancer.java:534) @ org.datanucleus.api.jdo.jdoenhancer.enhance(jdoenhancer.java:125) @ com.xxxx.myclassloader.findclass(myaclassloader.java:615)
please post class.
when strange things happen, clean
project. (i.e. delete built classes. in eclipse: project > clean...
)
and make sure annotations using based on correct path. use jdo
annotations , not datanucleus
's (i.e. use javax.jdo.annotations.persistencecapable
, not org.datanucleus.api.jpa.annotations.persistencecapable
, although i'm not sure if possible compiler complain me)
Comments
Post a Comment