PersistenceMDUnitTestCase in jpa and jpa/v2 packages fail with latest JBoss XB
-------------------------------------------------------------------------------
Key: JBMETA-289
URL:
https://jira.jboss.org/browse/JBMETA-289
Project: JBoss Metadata
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: ejb
Affects Versions: jboss-metadata-ejb-2.0.0-alpha-15
Reporter: jaikiran pai
Assignee: jaikiran pai
Priority: Blocker
Fix For: jboss-metadata-ejb-2.0.0-alpha-16
The PersistenceMDUnitTestCase in org.jboss.test.metadata.jpa.v2 and
org.jboss.test.metadata.jpa fail with JBoss XB 2.0.2.Beta5 and the latest (2.0.2.Beta7)
with the following exception:
-------------------------------------------------------------------------------
Test set: org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.258 sec <<<
FAILURE!
testDefaultMetaData(org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase) Time elapsed:
0.015 sec <<< ERROR!
org.jboss.xb.binding.JBossXBException: Failed to parse source:
file:/NotBackedUp/jpai/business/jboss/wc/jbossas/projects/metadata/ejb/trunk/target/tests-classes/org/jboss/test/metadata/jpa/PersistenceMD_testDefaultMetaData.xml@13,15
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:147)
at
org.jboss.test.metadata.javaee.JBossXBTestDelegate.unmarshal(JBossXBTestDelegate.java:150)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:254)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:208)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:174)
at
org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase.getPersistenceUnits(PersistenceMDUnitTestCase.java:88)
at
org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase.testDefaultMetaData(PersistenceMDUnitTestCase.java:51)
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:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.RuntimeException: QName
{http://java.sun.com/xml/ns/persistence}persistence-unit error setting property
persistenceUnits with value java.util.ArrayList@138b0d5 to
org.jboss.xb.spi.DefaultBeanAdapter@81a2e1
at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:60)
at
org.jboss.xb.builder.runtime.AbstractPropertyHandler.doHandle(AbstractPropertyHandler.java:98)
at
org.jboss.xb.binding.sunday.unmarshalling.CollectionRepeatableParticleHandler.endRepeatableParticle(CollectionRepeatableParticleHandler.java:76)
at
org.jboss.xb.binding.sunday.unmarshalling.AbstractPosition.endRepeatableParticle(AbstractPosition.java:127)
at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:133)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.endElement(SaxJBossXBParser.java:342)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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:165)
... 30 more
Caused by: java.lang.IllegalArgumentException: Property is not writable: persistenceUnits
for org.jboss.metadata.jpa.spec.PersistenceMetaData
at org.jboss.beans.info.plugins.DefaultPropertyInfo.set(DefaultPropertyInfo.java:141)
at org.jboss.xb.spi.DefaultBeanAdapter.set(DefaultBeanAdapter.java:102)
at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:56)
... 47 more
testMultipleMetaData(org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase) Time elapsed:
0.008 sec <<< ERROR!
org.jboss.xb.binding.JBossXBException: Failed to parse source:
file:/NotBackedUp/jpai/business/jboss/wc/jbossas/projects/metadata/ejb/trunk/target/tests-classes/org/jboss/test/metadata/jpa/PersistenceMD_testMultipleMetaData.xml@21,15
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:147)
at
org.jboss.test.metadata.javaee.JBossXBTestDelegate.unmarshal(JBossXBTestDelegate.java:150)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:254)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:208)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:174)
at
org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase.getPersistenceUnits(PersistenceMDUnitTestCase.java:88)
at
org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase.testMultipleMetaData(PersistenceMDUnitTestCase.java:58)
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:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.RuntimeException: QName
{http://java.sun.com/xml/ns/persistence}persistence-unit error setting property
persistenceUnits with value java.util.ArrayList@1119a16 to
org.jboss.xb.spi.DefaultBeanAdapter@117fd27
at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:60)
at
org.jboss.xb.builder.runtime.AbstractPropertyHandler.doHandle(AbstractPropertyHandler.java:98)
at
org.jboss.xb.binding.sunday.unmarshalling.CollectionRepeatableParticleHandler.endRepeatableParticle(CollectionRepeatableParticleHandler.java:76)
at
org.jboss.xb.binding.sunday.unmarshalling.AbstractPosition.endRepeatableParticle(AbstractPosition.java:127)
at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:133)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.endElement(SaxJBossXBParser.java:342)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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:165)
... 30 more
Caused by: java.lang.IllegalArgumentException: Property is not writable: persistenceUnits
for org.jboss.metadata.jpa.spec.PersistenceMetaData
at org.jboss.beans.info.plugins.DefaultPropertyInfo.set(DefaultPropertyInfo.java:141)
at org.jboss.xb.spi.DefaultBeanAdapter.set(DefaultBeanAdapter.java:102)
at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:56)
... 47 more
testMultipleProperties(org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase) Time
elapsed: 0.232 sec <<< ERROR!
org.jboss.xb.binding.JBossXBException: Failed to parse source:
file:/NotBackedUp/jpai/business/jboss/wc/jbossas/projects/metadata/ejb/trunk/target/tests-classes/org/jboss/test/metadata/jpa/PersistenceMD_testMultipleProperties.xml@17,15
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:147)
at
org.jboss.test.metadata.javaee.JBossXBTestDelegate.unmarshal(JBossXBTestDelegate.java:150)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:254)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:208)
at
org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest.unmarshal(AbstractJavaEEMetaDataTest.java:174)
at
org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase.getPersistenceUnits(PersistenceMDUnitTestCase.java:88)
at
org.jboss.test.metadata.jpa.PersistenceMDUnitTestCase.testMultipleProperties(PersistenceMDUnitTestCase.java:67)
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:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.RuntimeException: QName
{http://java.sun.com/xml/ns/persistence}persistence-unit error setting property
persistenceUnits with value java.util.ArrayList@1095197 to
org.jboss.xb.spi.DefaultBeanAdapter@3ed98c
at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:60)
at
org.jboss.xb.builder.runtime.AbstractPropertyHandler.doHandle(AbstractPropertyHandler.java:98)
at
org.jboss.xb.binding.sunday.unmarshalling.CollectionRepeatableParticleHandler.endRepeatableParticle(CollectionRepeatableParticleHandler.java:76)
at
org.jboss.xb.binding.sunday.unmarshalling.AbstractPosition.endRepeatableParticle(AbstractPosition.java:127)
at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:133)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.endElement(SaxJBossXBParser.java:342)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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:165)
... 30 more
Caused by: java.lang.IllegalArgumentException: Property is not writable: persistenceUnits
for org.jboss.metadata.jpa.spec.PersistenceMetaData
at org.jboss.beans.info.plugins.DefaultPropertyInfo.set(DefaultPropertyInfo.java:141)
at org.jboss.xb.spi.DefaultBeanAdapter.set(DefaultBeanAdapter.java:102)
at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:56)
... 47 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira