0 Replies Latest reply on Jul 29, 2006 10:58 AM by Juergen Zimmermann

    1.0.2: client exception when receiving an array Long[]

    Juergen Zimmermann Master

      My webservice server transmits an array. The log looks ok:

      2006-07-29 16:45:22,695 DEBUG org.jboss.ws.soap.SOAPContentElement - getXMLFragment from Object [xmlType={http://de.hska.ws/jaws}Long.Array,javaType=class [Ljava.lang.Long;]
      2006-07-29 16:45:22,705 DEBUG org.jboss.ws.soap.SOAPContentElement - xmlFragment: <result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ns_value:value xmlns:ns_value="http://de.hska.ws/jaws">1</ns_value:value><ns_value:value xmlns:ns_value="http://de.hska.ws/jaws">2</ns_value:value><ns_value:value xmlns:ns_value="http://de.hska.ws/jaws">3</ns_value:value></result>
      


      However, the client throws the following exception. Any hint is appreciated!
      2006-07-29 16:45:22,635 DEBUG org.jboss.ws.soap.SOAPContentElement - setObjectValue: Alpha
      2006-07-29 16:45:22,645 DEBUG org.jboss.ws.soap.SOAPContentElement - getXMLFragment from Object [xmlType={http://www.w3.org/2001/XMLSchema}string,javaType=class java.lang.String]
      2006-07-29 16:45:22,645 DEBUG org.jboss.ws.soap.SOAPContentElement - xmlFragment: <String_1>Alpha</String_1>
      2006-07-29 16:45:22,715 DEBUG org.jboss.ws.soap.SOAPContentElement - setXMLFragment: <result xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><ns_value:value xmlns:ns_value='http://de.hska.ws/jaws'>1</ns_value:value><ns_value:value xmlns:ns_value='http://de.hska.ws/jaws'>2</ns_value:value><ns_value:value xmlns:ns_value='http://de.hska.ws/jaws'>3</ns_value:value></result>
      2006-07-29 16:45:22,725 DEBUG org.jboss.ws.soap.SOAPContentElement - getObjectValue [xmlType={http://de.hska.ws/jaws}Long.Array,javaType=class [Ljava.lang.Long;]
      2006-07-29 16:45:22,735 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: {http://de.hska.ws/jaws}value not found as a child of result
       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 $Proxy7.findIdsByNachname(Unknown Source)
       at de.hska.test.WebServicesTest.findIdsByNachname(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 org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
       at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
       at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
       at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
       at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
       at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
       at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
       at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
       at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
       at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
       at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:361)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:809)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:670)
      Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: {http://de.hska.ws/jaws}value not found as a child of result
       at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
       at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:229)
       ... 26 more
      Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: {http://de.hska.ws/jaws}value not found as a child of result
       at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
       at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
       ... 27 more
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: {http://de.hska.ws/jaws}value not found as a child of result
       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)
       ... 28 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: {http://de.hska.ws/jaws}value not found as a child of result
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:198)
       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)
       ... 30 more