MountainClimb / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

StoreManagerRuntime support removed in datanucleus 3.1.0 releases #277

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use datanucleus-appengine plugin v2 with version 3.1.0 of the datanucleus 
core.

What is the expected output? 
- Access to data storage

What do you see instead?
NoSuchMethodError exception raised when calling makePersistent method of 
datanucleus:

 com.google.appengine.datanucleus.DatastoreManager.getRuntimeManager()Lorg/datanucleus/management/runtime/StoreManagerRuntime;
Caused by:

java.lang.NoSuchMethodError: 
com.google.appengine.datanucleus.DatastoreManager.getRuntimeManager()Lorg/datanu
cleus/management/runtime/StoreManagerRuntime;
    at com.google.appengine.datanucleus.DatastorePersistenceHandler.insertObjectsInternal(DatastorePersistenceHandler.java:358)
    at com.google.appengine.datanucleus.DatastorePersistenceHandler.insertObject(DatastorePersistenceHandler.java:214)
    at org.datanucleus.state.JDOStateManager.internalMakePersistent(JDOStateManager.java:2376)
    at org.datanucleus.state.JDOStateManager.makePersistent(JDOStateManager.java:2352)
    at org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1840)
    at org.datanucleus.ObjectManagerImpl.persistObjectWork(ObjectManagerImpl.java:1689)
    at org.datanucleus.ObjectManagerImpl.persistObject(ObjectManagerImpl.java:1554)
    at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:740)
    at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:765)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:114)
        at org.springframework.orm.jdo.JdoTemplate$CloseSuppressingInvocationHandler.invoke(JdoTemplate.java:606)

What version of the product are you using? On what operating system?
Linux Fedora 64bit with the datanucleus jars:
* datanucleus-api-jdo-3.0.7.jar
* datanucleus-appengine-2.0.0.jar
* datanucleus-core-3.1.0-m2.jar

Please provide any additional information below.
Plugin worked with the previous 3.0.10 version of datanucleus. 
See commit log http://sourceforge.net/mailarchive/message.php?msg_id=29051177 
for more information on change from datanucleus.

Original issue reported on code.google.com by spaul...@codezen.co.uk on 11 Apr 2012 at 5:29

GoogleCodeExporter commented 8 years ago
GAE JDO/JPA v2.0 is to use DN 3.0.x
GAE JDO/JPA v2.1 is to use DN 3.1.x

Original comment by googleco...@yahoo.co.uk on 11 Apr 2012 at 6:01