You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Andy Jefferson (JIRA)" <ji...@apache.org> on 2007/07/17 12:46:04 UTC
[jira] Commented: (JDO-481) Enhancement of a PC abstract class
fails
[ https://issues.apache.org/jira/browse/JDO-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513202 ]
Andy Jefferson commented on JDO-481:
------------------------------------
> To reproduce, run the following and check the enhancer logs.
Yes I did that and found no error.
Are you talking about the error from the test ?
1) testNewInstance(org.apache.jdo.tck.api.persistencemanager.NewInstance)javax.jdo.JDOUserException: java.lang.InstantiationException
[java] at org.jpox.enhancer.ImplementationCreatorImpl.newInstance(ImplementationCreatorImpl.java:153)
[java] at org.jpox.ObjectManagerImpl.newInstance(ObjectManagerImpl.java:1587)
> Enhancement of a PC abstract class fails
> -----------------------------------------
>
> Key: JDO-481
> URL: https://issues.apache.org/jira/browse/JDO-481
> Project: JDO
> Issue Type: Bug
> Components: tck2
> Environment: JPOX 1.1.7
> Reporter: Michelle Caisse
> Assignee: Andy Jefferson
> Fix For: JDO 2 maintenance release 1
>
>
> Using JPOX 1.1.7, an attempt to create a new instance of an abstract class fails with
> 14:02:42,890 (main) ERROR [JPOX.MetaData] - Parser error with file "org/apache/jdo/tck/pc/newInstance/package.jdo" has cause Field org.apache.jdo.tck.pc.newInstance.AAddress.addrid was specified in the MetaData but is not found in that class!
> org.jpox.metadata.InvalidMetaDataException: Field org.apache.jdo.tck.pc.newInstance.AAddress.addrid was specified in the MetaData but is not found in that class!
> at org.jpox.enhancer.bcel.metadata.BCELPropertyMetaData.<init>(BCELPropertyMetaData.java:133)
> at org.jpox.enhancer.bcel.metadata.BCELMetaDataManager.newPropertyObject(BCELMetaDataManager.java:150)
> at org.jpox.metadata.JDOMetaDataHandler.newPropertyObject(JDOMetaDataHandler.java:117)
> at org.jpox.metadata.JDOMetaDataHandler.startElement(JDOMetaDataHandler.java:270)
> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1672)
> at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
> at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
> at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
> at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
> at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
> at org.jpox.metadata.MetaDataParser.parseMetaDataStream(MetaDataParser.java:236)
> at org.jpox.metadata.MetaDataParser.parseMetaDataFile(MetaDataParser.java:162)
> at org.jpox.enhancer.bcel.metadata.BCELMetaDataManager.parseAndRegisterFile(BCELMetaDataManager.java:215)
> at org.jpox.enhancer.bcel.BCELUtils.getMetaDataForInput(BCELUtils.java:109)
> at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:512)
> To reproduce, run the following and check the enhancer logs.
> maven -Djdo.tck.cfglist=pm.conf runtck.jdo
> See also JDO-453, JDO-476
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.