07-23-07 06:11 PM
[ https://issues.apache.org/jira/brow...action_12514695 ]
Andy Jefferson commented on JDO-509:
------------------------------------
Hi Michelle,
I don't understand the current situation. Have you checked in some persisten
t classes that causes large numbers of TCK tests to fail, because now there
are many tests (19) with errors with that issue above. This means that I can
't reliably use the TCK as
a way of judging compliance with anything else.
For example,
companyNoRelationships.conf
gives
Field "null.address" is of type "org.apache.jdo.tck.pc.company.IAddress" yet
has been specified as embedded. JPOX doesnt support embedding of this type.
Your embedded type must be PersistenceCapable.
[java] org.jpox.metadata.InvalidMetaDataException: Field "null.address"
is of type "org.apache.jdo.tck.pc.company.IAddress" yet has been specified a
s embedded. JPOX doesnt support embedding of this type. Your embedded type m
ust be PersistenceCapable.
[java] at org.jpox.metadata.EmbeddedMetaData.populate(EmbeddedMetaD
ata.java:141)
[java] at org.jpox.metadata.AbstractPropertyMetaData.populate(Abstr
actPropertyMetaData.java:915)
[java] at org.jpox.metadata.InterfaceMetaData.populatePropertyMetaD
ata(InterfaceMetaData.java:527)
[java] at org.jpox.metadata.InterfaceMetaData.populate(InterfaceMet
aData.java:424)
[java] at org.jpox.metadata.MetaDataManager.populateFileMetaData(Me
taDataManager.java:1590)
[java] at org.jpox.metadata.JDOMetaDataManager.loadMetaDataForClass
(JDOMetaDataManager.java:615)
[java] at org.jpox.metadata.JDOMetaDataManager.getMetaDataForClassI
nternal(JDOMetaDataManager.java:308)
[java] at org.jpox.metadata.MetaDataManager.getMetaDataForClass(Met
aDataManager.java:772)
[java] at org.jpox.ObjectManagerImpl.hasPersistenceInformationForCl
XXX(ObjectManagerImpl.java:3226)
[java] at org.jpox.ObjectManagerImpl.assertClassPersistable(ObjectM
anagerImpl.java:3120)
[java] at org.jpox.ObjectManagerImpl.persistObjectInternal(ObjectMa
nagerImpl.java:1024)
[java] at org.jpox.ObjectManagerImpl.persistObject(ObjectManagerImp
l.java:987)
[java] at org.jpox.AbstractPersistenceManager.jdoMakePersistent(Abs
tractPersistenceManager.java:589)
[java] at org.jpox.AbstractPersistenceManager.makePersistentAll(Abs
tractPersistenceManager.java:643)
[java] at org.apache.jdo.tck.mapping.CompletenessTest.localSetUp(Co
mpletenessTest.java:79)
[java] at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:237)
[java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
I also get several with things like
java.lang.RuntimeException: Unable to construct CompanyFactory org.apache.jd
o.tck.pc.company.CompanyFactoryAnnotatedFCPMDelegator
[java] at org.apache.jdo.tck.pc.company.CompanyFactoryRegistry.regi
sterFactory(CompanyFactoryRegistry.java:128)
[java] at org.apache.jdo.tck.pc.company.CompanyFactoryRegistry.regi
sterFactory(CompanyFactoryRegistry.java:105)
[java] at org.apache.jdo.tck.mapping.CompletenessTest.localSetUp(Co
mpletenessTest.java:73)
[java] at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:237)
[java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
[java] at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRu
nner.java:108)
[java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRu
nner.java:148)
[java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRun
ner.java:123)
[java] Caused by: java.lang.ClassNotFoundException: org.apache.jdo.tck.p
c.company.CompanyFactoryAnnotatedFCPMDelegator
> 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 ]
|