Storage Manager cannot create instance

I have a web application project using gwt and using the Google 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 the class I'm trying to save in my google engine. proj is the name of my project. I am trying to create an instance of my persistenceManager in saatServiceImpl in a server package as follows:

  private static final PersistenceManagerFactory pmf = JDOHelper .getPersistenceManagerFactory("transactions-optional"); 

and this is the line on which the error is issued. I do not know how to solve this problem. Any hints are welcome.

+4
source share
2 answers

You are using the wrong DataNucleus library for your GAE environment, check this table and set the appropriate one in your project.

+2
source

I do not know how and why, but something that worked for me, I opened com.google.appengine.eclipse.core.prefs and changed the property:

gaeDatanucleusVersion = v2 in gaeDatanucleusVersion = v1

+1
source

All Articles