07-26-07 12:11 AM
[ https://issues.apache.org/jira/brow...action_12515421 ]
Michelle Caisse commented on JDO-509:
-------------------------------------
I've added the field type metadata (revision: 559609). I new see the follow
ing error:
javax.jdo.JDOUserException: One or more instances could not be made persiste
nt
at org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersistence
Manager.java:657)
at org.apache.jdo.tck.mapping.CompletenessTest.localSetUp(CompletenessTest.j
ava:79)
at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:237)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
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 junit.textui.TestRunner.doRun(TestRunner.java:116)
at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
NestedThrowablesStackTrace:
javax.jdo.JDODataStoreException: Insert of object "org.apache.jdo.tck.pc.com
panyAnnotatedPI.PIAppDepartmentImpl@749436" using statement "INSERT INTO app
licationidentity0.DEPARTMENTS ("NAME",ID,DISCRIMINATOR,DEPARTMENTS_ID_OWN) V
ALUES (?,?,?,?)" failed : '
DEPARTMENTS_ID_OWN' is not a column in table or VTI 'APPLICATIONIDENTITY0.DE
PARTMENTS'.
at org.jpox.jdo.JPOXJDOHelper. getJDOExceptionForJPOXException(JPOXJDOH
elper.
java:283)
at org.jpox.AbstractPersistenceManager.jdoMakePersistent(AbstractPersistence
Manager.java:594)
at org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersistence
Manager.java:643)
at org.apache.jdo.tck.mapping.CompletenessTest.localSetUp(CompletenessTest.j
ava:79)
at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:237)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
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 junit.textui.TestRunner.doRun(TestRunner.java:116)
at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
NestedThrowablesStackTrace:
ERROR 42X14: 'DEPARTMENTS_ID_OWN' is not a column in table or VTI 'APPLICATI
ONIDENTITY0.DEPARTMENTS'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source
)
at org.apache.derby.impl.sql.compile.ResultColumn.bindResultColumnByName(Unk
nown Source)
at org.apache.derby.impl.sql.compile.ResultColumnList.bindResultColumnsByNam
e(Unknown Source)
at org.apache.derby.impl.sql.compile.InsertNode.bind(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareIn
ternalStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source
)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source
)
at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Sourc
e)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Sourc
e)
at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConn
ection.java:190)
at org.jpox.store.rdbms.SQLController.getStatementForUpdate(SQLController.ja
va:211)
at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:238
)
at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2658)
at org.jpox.store.MappedStoreManager.insertObject(MappedStoreManager.java:17
7)
at org.jpox.state.JDOStateManagerImpl.internalMakePersistent(JDOStateManager
Impl.java:2955)
at org.jpox.state.JDOStateManagerImpl.makePersistent(JDOStateManagerImpl.jav
a:2935)
at org.jpox.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1
088)
at org.jpox.ObjectManagerImpl.persistObject(ObjectManagerImpl.java:987)
at org.jpox.AbstractPersistenceManager.jdoMakePersistent(AbstractPersistence
Manager.java:589)
at org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersistence
Manager.java:643)
at org.apache.jdo.tck.mapping.CompletenessTest.localSetUp(CompletenessTest.j
ava:79)
at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:237)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
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 junit.textui.TestRunner.doRun(TestRunner.java:116)
at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
...
> Enhancement failure on persistent interface that extends non-persistent in
terface
> --------------------------------------------------------------------------
-------
>
> Key: JDO-509
> URL: https://issues.apache.org/jira/browse/JDO-509
> Project: JDO
> Issue Type: Bug
> Components: tck2
> Reporter: Michelle Caisse
> Assignee: Andy Jefferson
> Fix For: JDO 2 maintenance release 1
>
>
> Imagine that the existing interface company.ICompany is not persistent and there i
s a new interface company.PICompany that extends ICompany. Existing xml metadata is
modified to refer to PICompany rather than ICompany. On enhancement, we get the erro
r b
elow. Craig suggests that using the reflective "getDeclaredMethod" instead of the reflectiv
e "getMethod" could give this error. These are changes that we would like to check in for t
he 2.1 maintenance release.[vbcol=seagreen]
> [java] An error was encountered reading the specified input files.
Please consult the log for details. The following may help : Class org.apach
e.jdo.tck.pc.
> company.IPCompany has property null.companyid declared in MetaData, but th
is method doesnt exist in the class!
> [java] Exception in thread "main" Class org.apache.jdo.tck.pc.compa
ny.IPCompany has property null.companyid declared in MetaData, but this meth
od doesnt exist in the class!
> [java] org.jpox.metadata.InvalidMetaDataException: Class org.apache
.jdo.tck.pc.company.IPCompany has property null.companyid declared in MetaDa
ta, but this method doesnt exist in the class!
> [java] at org.jpox.metadata.InterfaceMetaData.populateProperty
MetaData(InterfaceMetaData.java:538)
> [java] at org.jpox.metadata.InterfaceMetaData.populate(Interfa
ceMetaData.java:436)
> [java] at org.jpox.metadata.MetaDataManager.populateFileMetaDa
ta(MetaDataManager.java:1590)
> [java] at org.jpox.metadata.JDOMetaDataManager.loadMetaDataFor
Class(JDOMetaDataManager.java:615)
> [java] at org.jpox.metadata.JDOMetaDataManager.getMetaDataForC
lassInternal(JDOMetaDataManager.java:308)
> [java] at org.jpox.metadata.AbstractClassMetaData.determineSup
erClassName(AbstractClassMetaData.java:618)
> [java] at org.jpox.metadata.InterfaceMetaData.populate(Interfa
ceMetaData.java:421)
> [java] at org.jpox.metadata.MetaDataManager.populateFileMetaDa
ta(MetaDataManager.java:1590)
> [java] at org.jpox.metadata.MetaDataManager.initialise(MetaDat
aManager.java:313)
> [java] at org.jpox.enhancer.JPOXEnhancer.getFileMetaDataForInp
ut(JPOXEnhancer.java:716)
> [java] at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:531)[/
vbcol]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[ Post a follow-up to this message ]
|