openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter" <kwsut...@gmail.com>
Subject Query test no longer working?
Date Wed, 08 Nov 2006 00:04:45 GMT
Hi,
With today's changes from SVN, I am hitting the following error when running
the test bucket:

<4|true|0.0.0> org.apache.openjpa.persistence.ArgumentException: No metadata
was found for type "class
org.apache.openjpa.persistence.query.ManyOneEntitySub". The class does not
appear in the list of persistent types: [
org.apache.openjpa.persistence.query.ManyOneEntity].
        at org.apache.openjpa.meta.MetaDataRepository.getMetaData(
MetaDataRepository.java:278)
        at org.apache.openjpa.meta.ClassMetaData.getPCSubclassMetaDatas(
ClassMetaData.java:337)
        at
org.apache.openjpa.meta.ClassMetaData.getMappedPCSubclassMetaDatas(
ClassMetaData.java:351)
        at
org.apache.openjpa.jdbc.meta.ClassMapping.getMappedPCSubclassMappings(
ClassMapping.java:575)
        at
org.apache.openjpa.jdbc.meta.ClassMapping.getIndependentAssignableMappings(
ClassMapping.java:614)
        at
org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.getIndependentExpressionCandidates
(JDBCStoreQuery.java:125)
        at org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor
.<init>(ExpressionStoreQuery.java:642)
        at
org.apache.openjpa.kernel.ExpressionStoreQuery.newDataStoreExecutor(
ExpressionStoreQuery.java:162)
        at org.apache.openjpa.kernel.QueryImpl.createExecutor(QueryImpl.java
:718)
        at org.apache.openjpa.kernel.QueryImpl.compileForDataStore(
QueryImpl.java:676)
        at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(
QueryImpl.java:658)
        at org.apache.openjpa.kernel.QueryImpl.getOperation(QueryImpl.java
:1464)
        at org.apache.openjpa.kernel.DelegatingQuery.getOperation(
DelegatingQuery.java:120)
        at org.apache.openjpa.persistence.QueryImpl.executeUpdate(
QueryImpl.java:290)
        at
org.apache.openjpa.persistence.query.TestQueryIdOfRelationDoesNotJoin.tearDown
(TestQueryIdOfRelationDoesNotJoin.java:75)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.maven.surefire.junit.JUnitTestSet.execute(
JUnitTestSet.java:210)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:135)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:225)
        at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:747)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.43 sec <<<
FAILURE!
testQuery(
org.apache.openjpa.persistence.query.TestQueryIdOfRelationDoesNotJoin)  Time
elapsed: 0.42 sec  <<< ERROR!

Any ideas?

Kevin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message