1.0.2: Exception when client receives a JavaBean
juergen.zimmermann Jul 27, 2006 9:38 AMUsing the new version 1.0.2 on the client side I get the following exception when the JBoss server transmits a JavaBean. Any hint is appreciated!
2006-07-27 15:21:09,668 DEBUG org.jboss.ws.soap.SOAPContentElement - setXMLFragment: <result xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><ns_art:art xmlns:ns_art='http://de.hska.ws/jaws'>privat</ns_art:art><ns_id:id xmlns:ns_id='http://de.hska.ws/jaws'>1</ns_id:id><ns_nachname:nachname xmlns:ns_nachname='http://de.hska.ws/jaws'>Alpha</ns_nachname:nachname><ns_rabatt:rabatt xmlns:ns_rabatt='http://de.hska.ws/jaws'>0</ns_rabatt:rabatt><ns_vorname:vorname xmlns:ns_vorname='http://de.hska.ws/jaws'>Adrian</ns_vorname:vorname></result> 2006-07-27 15:21:09,668 DEBUG org.jboss.ws.soap.SOAPContentElement - getObjectValue [xmlType={http://de.hska.ws/jaws}KundeData,javaType=class de.hska.ws.KundeData] 2006-07-27 15:21:09,678 ERROR org.jboss.ws.jaxrpc.CallImpl - Call invocation failed with unkown Exception javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:292) at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233) at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182) at org.jboss.ws.jaxrpc.CallImpl.syncOutputParams(CallImpl.java:873) at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704) at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148) at $Proxy2.findKunde(Unknown Source) at de.hska.test.WebServicesTest.testFindKunde(Unknown Source) 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 org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567) Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100) at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:229) ... 23 more Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67) at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92) ... 24 more Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156) at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126) at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63) ... 25 more Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:214) at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:152) at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:195) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301) at org.apache.xerces.parsers.AbstractSAXParser.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:152) ... 27 more