Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
While getting Jenkins building OpenJPA stable again, I noticed that the 2.3.x branch consistently fails a few tests, which prevents maven from completing. It appears the branch may have a genuine bug which needs to be investigated.
https://builds.apache.org/view/OpenJPA/job/OpenJPA-2.3.x/1/
Failing Test #1: org.apache.openjpa.persistence.query.sqlresultmapping.TestSQLResultSetMapping.testMappingNoException
Error Message
Column '0' not found.
Stacktrace
<openjpa-2.3.1-SNAPSHOT-r422266:1763707 fatal general error> org.apache.openjpa.persistence.PersistenceException: Column '0' not found.
FailedObject: org.apache.openjpa.persistence.query.sqlresultmapping.CrtOperacaoEntity-500006164 [java.lang.String]
at org.apache.openjpa.jdbc.sql.DBDictionary.narrow(DBDictionary.java:4997)
at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4957)
at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:134)
at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:84)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initialize(JDBCStoreManager.java:311)
at org.apache.openjpa.kernel.DelegatingStoreManager.initialize(DelegatingStoreManager.java:112)
at org.apache.openjpa.kernel.ROPStoreManager.initialize(ROPStoreManager.java:57)
at org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:1050)
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:1008)
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:930)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:1033)
at org.apache.openjpa.jdbc.kernel.MappedQueryResultObjectProvider$MappingResult.load(MappedQueryResultObjectProvider.java:191)
at org.apache.openjpa.jdbc.meta.strats.RelationFieldStrategy.loadEagerJoin(RelationFieldStrategy.java:722)
at org.apache.openjpa.jdbc.meta.FieldMapping.loadEagerJoin(FieldMapping.java:924)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:1103)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:1059)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initializeState(JDBCStoreManager.java:411)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initialize(JDBCStoreManager.java:306)
at org.apache.openjpa.kernel.DelegatingStoreManager.initialize(DelegatingStoreManager.java:112)
at org.apache.openjpa.kernel.ROPStoreManager.initialize(ROPStoreManager.java:57)
at org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:1050)
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:1008)
at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:930)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:1033)
at org.apache.openjpa.jdbc.kernel.MappedQueryResultObjectProvider$MappingResult.load(MappedQueryResultObjectProvider.java:191)
at org.apache.openjpa.jdbc.kernel.MappedQueryResultObjectProvider$MappingResult.load(MappedQueryResultObjectProvider.java:180)
at org.apache.openjpa.jdbc.kernel.MappedQueryResultObjectProvider$MappingResult.load(MappedQueryResultObjectProvider.java:171)
at org.apache.openjpa.jdbc.kernel.MappedQueryResultObjectProvider.getResultObject(MappedQueryResultObjectProvider.java:99)
at org.apache.openjpa.lib.rop.EagerResultList.<init>(EagerResultList.java:36)
at org.apache.openjpa.kernel.QueryImpl.toResult(QueryImpl.java:1251)
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1007)
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:863)
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:794)
at org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542)
at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:275)
at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:291)
at org.apache.openjpa.persistence.query.sqlresultmapping.TestSQLResultSetMapping.testMappingNoException(TestSQLResultSetMapping.java:85)
Failing Test #2: org.apache.openjpa.persistence.query.sqlresultmapping.TestSQLResultSetMapping.testMappingCorrectID
Error Message
expected:<25384> but was:<500006164>
Stacktrace
junit.framework.AssertionFailedError: expected:<25384> but was:<500006164>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:136)
at junit.framework.Assert.assertEquals(Assert.java:142)
at org.apache.openjpa.persistence.query.sqlresultmapping.TestSQLResultSetMapping.testMappingCorrectID(TestSQLResultSetMapping.java:122)