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
oauth-2.0
qlikview
logging
ckan
youtube-api
javafx
azure-documentdb
compression
ldap
dronekit
x86-64
install
ephesoft
google-my-business-api
theory
gcloud
ng2-charts
xmlhttprequest
opendaylight
console-application
loss
ringcentral
android-wifi
restructuredtext
bug-reporting
pumping-lemma
waterfall
my.cnf
rollupjs
workflow-foundation
drawrect
ios-autolayout
loopback
odp.net
cocoa-scripting
kepserverex
julia-jump
vertical-alignment
pyexcel
quartz
test-kitchen
colorbox
amazon-rds-aurora
text-extraction
taiga
taleo
easyquery
jsfl
dotnet-cli
visualizer
htop
critical-section
petapoco
ios-keyboard-extension
robotc
nls
ownership
boost-range
networkstream
altova
netlink
change-password
audiorecord
trendline
datamodel
apache2-module
updating
openhab
winforms-interop
avrcp
borland-c++
ultraedit
conkeror
numerical-recipes
indices
sat4j
nspopupbutton
sqldatasource
mysql-error-1146
generator-expression
string-length
brew
rbm
motordriver
openafs
shapado
yii-cactiverecord
capitalization
parallel-python
soapexception
jexcelapi
moss2007-security
cpack
iphone-maps
glassfish-embedded
helios
mdd
jgrowl

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