Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Having the same problem with OpenJpa 2.2.2.</p> <p>Its something related to the persistence.xml - when I enhance my entities with a persistence.xml configured for HSqlDb then everything works. When I use a persistence.xml configured for MySql Cluster it bombs out with that error. So it seems something in the persistence.xml triggers another path in the code during enhancement that just doesn't work.</p> <p>Will come back and comment if I figure out something useful.</p> <p>My persistence.xml with both configurations</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0"&gt; &lt;persistence-unit name="testdb" transaction-type="RESOURCE_LOCAL"&gt; &lt;provider&gt;org.apache.openjpa.persistence.PersistenceProviderImpl&lt;/provider&gt; &lt;class&gt;code.TestDataBean&lt;/class&gt; &lt;class&gt;code.shared.DataBean&lt;/class&gt; &lt;class&gt;code.shared.AbstractDataBean&lt;/class&gt; &lt;properties&gt; &lt;!-- HSqlDb --&gt; &lt;!-- &lt;property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" /&gt; &lt;property name="openjpa.ConnectionURL" value="jdbc:hsqldb:testdb" /&gt; &lt;property name="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver" /&gt; &lt;property name="openjpa.ConnectionUserName" value="sa" /&gt; &lt;property name="openjpa.ConnectionPassword" value="" /&gt; &lt;property name="openjpa.Log" value="DefaultLevel=TRACE" /&gt; --&gt; &lt;!-- MySql Cluster port 5000 --&gt; &lt;property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" /&gt; &lt;property name="openjpa.ConnectionDriverName" value="com.mysql.jdbc.Driver" /&gt; &lt;property name="openjpa.ConnectionURL" value="jdbc:mysql://localhost:5000/clusterdb" /&gt; &lt;property name="openjpa.ConnectionUserName" value="root" /&gt; &lt;property name="openjpa.ConnectionPassword" value="" /&gt; &lt;property name="openjpa.BrokerFactory" value="ndb" /&gt; &lt;property name="openjpa.jdbc.DBDictionary" value="TableType=ndb"/&gt; &lt;property name="openjpa.ndb.connectString" value="localhost:1186" /&gt; &lt;property name="openjpa.ndb.database" value="clusterdb" /&gt; &lt;property name="openjpa.Log" value="DefaultLevel=TRACE" /&gt; &lt;/properties&gt; &lt;/persistence-unit&gt; &lt;/persistence&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload