datanucleus


getting this error while enhancing using Datanucleus. any idea


I am trying to enhance a class (class is generated during run time with annotations). And getting this error. DN says it is null pointer.
any idea?
22:03:36,816 (pool-7-thread-1) DEBUG [DataNucleus.MetaData] - Registering class "test.TESTClass" as not having MetaData.
22:03:36,817 (pool-7-thread-1) ERROR [DataNucleus.Enhancer] - Error thrown enhancing with ASMClassEnhancer
java.lang.NullPointerException
at org.datanucleus.enhancer.jdo.JDOMethodAdapter.visitFieldInsn(JDOMethodAdapter.java:103)
at org.datanucleus.asm.ClassReader.readCode(ClassReader.java:1333)
at org.datanucleus.asm.ClassReader.readMethod(ClassReader.java:953)
at org.datanucleus.asm.ClassReader.accept(ClassReader.java:684)
at org.datanucleus.asm.ClassReader.accept(ClassReader.java:521)
at org.datanucleus.enhancer.jdo.JDOClassEnhancer.enhance(JDOClassEnhancer.java:427)
at org.datanucleus.enhancer.DataNucleusEnhancer.enhanceClass(DataNucleusEnhancer.java:927)
at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:534)
at org.datanucleus.api.jdo.JDOEnhancer.enhance(JDOEnhancer.java:125)
at com.xxxx.MYClassLoader.findClass(MYAClassLoader.java:615)
Please post your class.
When strange things like this happen, I clean my project. (i.e. delete all built classes. In Eclipse: Project > Clean...)
And make sure the annotations you are using are based on the correct path. Use JDO annotations and not Datanucleus's (i.e. Use javax.jdo.annotations.PersistenceCapable and not org.datanucleus.api.jpa.annotations.PersistenceCapable, although I'm not sure if this is even possible as the compiler would complain as it is for me)

Related Links

How to load entity with its 1 to 1 relation in DataNucleus, using native SQL query with JOINS
How to fetch related object using JDOQL named query?
Datanucleus enhancement with Bazel
DN 4.0.x and oracle : java.util.Date mapped to wrong rdbms type
Is ReferentialJDOStateManager not used in DataNucleus 4.x?
DataNucleus JDO primary key with enum
How to create a Datanucleus JPA 2.x query with CriteriaQuery that is based on values from an embedded map
How do I replace Hibernate with DataNucleus JPA in a JHipster project?
getting this error while enhancing using Datanucleus. any idea
Weird “com.vividsolutions.jts.geom.Geometry” ClassNotResolvedException exception
Does DataNucleus persist JodaTime's DateTime differently with a non-local timezone?
Bulk update with datanucleus errors out
Detailed and clear specification for datanucleus jdo extensions?
Unique constraint with DataNucleus discriminator based multitenancy
Datanucleus fetchgroup composite key
Is there a good step-by-step tutorial for using datanucleus and maven?

Categories

HOME
locale
grpc
ibm
blob
crm
pandoc
hiveql
xss
confluence-rest-api
autocad
rtc
obd-ii
jpql
mamp
decoding
appsettings
bookmarklet
xforms
react-jsx
pushbullet
uipath
aspxgridview
android-wear-2.0
suitescript
deployment-descriptor
datanucleus
hierarchy
visual-studio-debugging
scene7
snapkit
node-soap
javax
incapsula
headphones
outlook-2010
stochastic-process
dotnetnuke-module
iterm2
motion
file-descriptor
android-graphview
servicebus
gradlew
jenkins-2
appcmd
gige-sdk
aws-rds
grib
blackberry
acceleo
sharing
directinput
cosign-api
boost-bind
python-rq
dcast
wiql
notice
glog
valdr-bean-validation
genero
skview
pysvn
information-hiding
qf-test
clearcanvas
time-frequency
switchpreference
android-relativelayout
infor-eam
netbeans-plugins
xcode6.1-gm-seed
jfilechooser
surfaceview
randomaccessfile
mobile-robots
aspnet-compiler
violation
google-checkout
uikit-dynamics
spawn
linqdatasource
moonscript
yii-components
openafs
github-archive
reflexil
nserror
sqlbuddy
onunload
iphone-maps
code-golf
mdd
time-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App