1 Reply Latest reply on Jan 24, 2006 7:14 AM by aloubyansky

    WildcardWrapper

      I added that test for the wildcard wrapping.

      1380 DEBUG [WildcardWrapperUnitTestCase] ==== Starting testWildcard ====
      1400 DEBUG [WildcardWrapperUnitTestCase] Initialized parsing in 11ms
      1447 DEBUG [WildcardWrapperUnitTestCase] Error during parsing: file:/home/ejort/jboss-head/workspace/testsuite/src/resources/org/jboss/test/
      xml/WildcardWrapperUnitTestCaseWildcard.xml
      org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/home/ejort/jboss-head/workspace/testsuite/src/resources/org/jboss/test/
      xml/WildcardWrapperUnitTestCaseWildcard.xml
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:125)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:136)
       at org.jboss.test.xml.JBossXBTestDelegate.unmarshal(JBossXBTestDelegate.java:118)
       at org.jboss.test.xml.AbstractJBossXBTest.unmarshal(AbstractJBossXBTest.java:108)
       at org.jboss.test.xml.AbstractJBossXBTest.unmarshal(AbstractJBossXBTest.java:95)
       at org.jboss.test.xml.AbstractJBossXBTest.unmarshal(AbstractJBossXBTest.java:61)
       at org.jboss.test.xml.WildcardWrapperUnitTestCase.testWildcard(WildcardWrapperUnitTestCase.java:69)
       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 junit.framework.TestSuite.runTest(TestSuite.java:208)
       at junit.framework.TestSuite.run(TestSuite.java:203)
       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
       at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.extensions.TestSetup.run(TestSetup.java:23)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to set value org.jboss.test.xml.initializer.Simple@10883428[org.jboss.test.x
      ml.initializer.Simple@a61164] using setter setValue on org.jboss.test.xml.pojoserver.metadata.AbstractPropertyMetaData@12568800 (toString=or
      g.jboss.test.xml.pojoserver.metadata.AbstractPropertyMetaData@bfc8e0) : argument type mismatch
       at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtUtil.set(RtUtil.java:382)
       at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtUtil.set(RtUtil.java:320)
       at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandler.setParent(RtElementHandler.java:416)
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:647)
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:132)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBParser.java:241)
       at org.apache.xerces.parsers.AbstractSAXParser.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:121)
       ... 25 more
      Caused by: java.lang.IllegalArgumentException: argument type mismatch
       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 org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtUtil.set(RtUtil.java:365)
       ... 40 more
      1456 DEBUG [WildcardWrapperUnitTestCase] testWildcard took 75ms
      1457 DEBUG [WildcardWrapperUnitTestCase] ==== Stopping testWildcard ====
      1580 DEBUG [WildcardWrapperUnitTestCase] ==== tornDown org.jboss.test.xml.WildcardWrapperUnitTestCase ====
      


      The issue is that it should do
      PropertyMetaData.setValue(new AbstractValueMetaData(simple));
      

      Instead of trying to set the simple as the value.