I have a number of JUnit tests in my project that test my DataStore 
services. For the past two years, they've been working just fine and I've 
been able to successfully insert, query, and delete entities through unit 
tests. A couple of days ago I upgraded to App Engine 1.7 and all of a 
sudden all of my tests throw a NullPointerException because  

Persistence.createEntityManagerFactory("transactions-optional") returns 
null. My persistence.xml file contains the following configuration which 
like I said, has worked perfectly up until the upgrade.

<persistence-unit name="transactions-optional">
        <provider>
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider> 
        <properties> 
            <property name="datanucleus.NontransactionalRead" value="true"/> 
            <property name="datanucleus.NontransactionalWrite" value="true"
/> 
            <property name="datanucleus.ConnectionURL" value="appengine"/> 
        </properties> 
</persistence-unit>


Any idea what could have changed in the upgrade?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/FWYSUvA-Qx4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to