Reputation: 305
I have a web application project using gwt and using google app engine to store my data. When I run my project I get the following error:
WARNING: Error for /proj/saat
java.lang.NoSuchFieldError: NUCLEUS_CONTEXT_LOADER
at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.<clinit>(JDOPersistenceManagerFactory.java:101)
saat is an the class that I am trying to store on my google app engine. proj is the name of my project. I try to instantiate my persistenceManager in saatServiceImpl in the server package as follows:
private static final PersistenceManagerFactory pmf = JDOHelper
.getPersistenceManagerFactory("transactions-optional");
and this the the line the error is issued at. I have no idea how to fix this problem. Any hints is appreciated.
Upvotes: 4
Views: 1423
Reputation: 3548
I don't know how or why but something that worked for me was I opened up com.google.appengine.eclipse.core.prefs and changed the property:
gaeDatanucleusVersion=v2 to gaeDatanucleusVersion=v1
Upvotes: 1
Reputation: 9741
You are using a wrong DataNucleus
library for your GAE environment, check this table and set in your project the appropriate one.
Upvotes: 2