Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

MySql issue (everything working with HSqlDb)

Serdyn du Toit

2013-07-04

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I'm seeing some problems when my persistence.xml is populated with details
for MySql Cluster - but when I work against HSqlDb everything is working
great.




First issue during build-time enhancement:
I get the following even though I don't have any @Embeddables in my code
[openjpac] 407 testdb ERROR [main] openjpa.Enhance - The identity field
defined in the code.shared.DataBean Embeddable is not supported.

Someone else has also encountered this issue:
http://stackoverflow.com/questions/16619860/openjpa-enhance-the-identity-field-defined-in-the-0-embeddable-is-not-suppo



Second issue at runtime:
During the second invocation of a method that should return everything from
a table I get the following stacktrace:
1797 testdb TRACE [main] openjpa.jdbc.JDBC - <t 488448102, conn 0> [1
ms] close
<openjpa-2.2.2-r422266:1468616 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException: null
at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation (QueryImpl.java:625)
at
org.apache.openjpa.kernel.QueryImpl.compileForExecutor (QueryImpl.java:682)
at org.apache.openjpa.kernel.QueryImpl.getOperation (QueryImpl.java:1529)
at
org.apache.openjpa.kernel.DelegatingQuery.getOperation (DelegatingQuery.java:124)
at org.apache.openjpa.persistence.QueryImpl.execute (QueryImpl.java:280)
at
org.apache.openjpa.persistence.QueryImpl.getResultList (QueryImpl.java:302)
at test.OpenJpaTest.findAll(OpenJpaTest.java:60)
at test.OpenJpaTest.findAllAndAssertSizeOfOne(OpenJpaTest.java:65)
at test.OpenJpaTest.test(OpenJpaTest.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run (ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively (FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate (InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf (ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild (BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild (BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren (ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run (ParentRunner.java:300)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (RemoteTestRunner.java:197)
Caused by: java.lang.NullPointerException
at
org.apache.openjpa.kernel.ExpressionStoreQuery.newCompilation (ExpressionStoreQuery.java:154)
at org.apache.openjpa.kernel.QueryImpl.newCompilation (QueryImpl.java:672)
at
org.apache.openjpa.kernel.QueryImpl.compilationFromCache (QueryImpl.java:654)
at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation (QueryImpl.java:620)
... 31 more



Any help or insights appreciated,
Serdyn du Toit
©2008 gg3721.com - Jax Systems, LLC, U.S.A.