Element type causes parse error
-------------------------------
Key: JBXB-109
URL:
http://jira.jboss.com/jira/browse/JBXB-109
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-2.0.0.CR5
Reporter: Scott M Stark
Assigned To: Adrian Brock
Fix For: JBossXB-2.0.0.CR5
If I uncomment the proxyFactoryConfig property on the InvokerProxyBindingMetaData bean,
the JBoss5xEverything.testEverything test starts to fail with a CCE:
org.jboss.xb.binding.JBossXBException: Failed to parse source:
file:/home/svn/Common/trunks/jbossxb/target/test-classes/org/jboss/test/ejb/metadata/test/JBoss5xEverything_testEverything.xml@2693,38
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:184)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
at org.jboss.test.xb.builder.JBossXBTestDelegate.unmarshal(JBossXBTestDelegate.java:121)
at
org.jboss.test.javaee.metadata.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:184)
at
org.jboss.test.javaee.metadata.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:154)
at
org.jboss.test.javaee.metadata.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:120)
at
org.jboss.test.ejb.metadata.test.JBoss5xEverythingUnitTestCase.unmarshal(JBoss5xEverythingUnitTestCase.java:106)
at
org.jboss.test.ejb.metadata.test.JBoss5xEverythingUnitTestCase.testEverything(JBoss5xEverythingUnitTestCase.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.RuntimeException: QName
{http://java.sun.com/xml/ns/javaee}description error adding java.util.ArrayList@16e1eea8
to collection org.jboss.javaee.metadata.spec.DescriptionsImpl@4afb6354
at
org.jboss.xb.builder.runtime.CollectionPropertyHandler.handle(CollectionPropertyHandler.java:137)
at
org.jboss.xb.builder.runtime.AbstractPropertyHandler.doHandle(AbstractPropertyHandler.java:98)
at
org.jboss.xb.builder.runtime.PropertyWildcardHandler.setParent(PropertyWildcardHandler.java:72)
at
org.jboss.xb.binding.group.ValueListHandler$FACTORY$1.newInstance(ValueListHandler.java:401)
at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endRepeatableParticle(SundayContentHandler.java:825)
at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:319)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:402)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:180)
... 23 more
Caused by: java.lang.ClassCastException: java.util.ArrayList
at
org.jboss.javaee.metadata.support.MappedAnnotationMetaData.add(MappedAnnotationMetaData.java:1)
at
org.jboss.xb.builder.runtime.CollectionPropertyHandler.handle(CollectionPropertyHandler.java:133)
... 40 more
The JBoss5xEverything_testEverything.xml was updated to include a proxy-factory-config
element, but this is not being reached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira