I still get the error. My PMF class is
public final class PMF {
private static final PersistenceManagerFactory pmfInstance =
JDOHelper.getPersistenceManagerFactory("datanucleus.properties");
private PMF() {}
public static PersistenceManagerFactory get() {
return pmfInstance;
}
}
My ./war/WEB-INF/classes/META-INF/jdoconfig.xml is like this
<?xml version="1.0" encoding="utf-8"?>
<jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
<persistence-manager-factory name="transactions-optional">
<property name="javax.jdo.PersistenceManagerFactoryClass"
value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
<property name="javax.jdo.option.ConnectionURL" value="appengine"/>
<property name="javax.jdo.option.NontransactionalRead" value="true"/>
<property name="javax.jdo.option.NontransactionalWrite"
value="true"/>
<property name="javax.jdo.option.RetainValues" value="true"/>
<property name="datanucleus.appengine.autoCreateDatastoreTxns"
value="true"/>
<property name="datanucleus.appengine.datastoreEnableXGTransactions"
value="true"/>
<property name="datanucleus.persistenceByReachabilityAtCommit"
value="false"/>
<property name="javax.jdo.option.PersistenceUnitName" value="true"/>
</persistence-manager-factory>
</jdoconfig>
And my ./src/main/resources/datanucleus.properties
javax.jdo.option.ConnectionDriverName=org.apache.derby.jdbc.EmbeddedDriver
javax.jdo.option.ConnectionURL=jdbc:derby:RECORDTABLE;create=true
javax.jdo.option.ConnectionUserName=user
javax.jdo.option.ConnectionPassword=password
datanucleus.autoCreateTables=true
datanucleus.autoCreateSchema=true
datanucleus.autoCreateColumns=true
datanucleus.autoCreateConstraints=true
datanucleus.RetainValues=true
I did something wrong in these settings.
On Tuesday, July 17, 2018 at 9:17:26 AM UTC-7, Kenworth (Google Cloud
Platform) wrote:
>
> A quick lookup shows this seems to be an issue with the file/folder path
> structure. References:
>
>
> https://stackoverflow.com/questions/10350621/error-while-making-object-persistent
>
> https://stackoverflow.com/questions/14329405/javax-jdo-jdofataluserexception-maven-datanucleus-jetty-com-mysql-jdbc-dr
>
> Unfortunately, this is beyond the scope of Google Groups which is reserved
> for general discussion of GCP's products and services.For further technical
> assistance, try Stack Exchange sites. Stack Exchange uses a popular
> question-and-answer platform and it hosts a number of sites, including
> StackOverflow <https://stackoverflow.com/>. Please visit our community
> support page for list of StackOverflow <https://stackoverflow.com/> tags
> we monitor <https://cloud.google.com/support/docs/stackexchange>.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/eaa46cdd-e686-438c-b631-2ec87d572dfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.