Re: Exception invoking a .NET Doc Webservice which returns XML

Aleksander Slominski <[email protected]>
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
R2D2 wrote:

>Hello All,
>I am having a problem as stated by the subject of this
>email. When I did a WSIF Trace using log4J, It gave me
>the following :
>org.apache.axis.i18n.resource::handleGetObject(exception00)
> ERROR [2005-05-24 15:42:40,302] [main]  [33780] -
>Exception:
> org.xml.sax.SAXException: SimpleDeserializer
>encountered a child element, which is NOT expected, in
>something it was trying to deserialize.
>	at
>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)
>	at
>org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
>	at
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
>	at
>org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
>	at
>org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
>	at
>org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
>	at org.apache.axis.client.Call.invoke(Call.java:1871)
>	at org.apache.axis.client.Call.invoke(Call.java:1777)
>	at org.apache.axis.client.Call.invoke(Call.java:1315)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXISDocStyle(Unknown
>Source)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown
>Source)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown
>Source)
>	at WSIFSample.main(WSIFSample.java:91)
>DEBUG [2005-05-24 15:42:40,318] [main]  [33796] -
>EXCEPTION
> DEBUG [2005-05-24 15:42:40,318] [main]  [33796] -
>NSPush (32)
> DEBUG [2005-05-24 15:42:40,318] [main]  [33796] -
>NSPop (32)
> AxisFault
> faultCode:
>{http://xml.apache.org/axis/}Server.userException
> faultString: org.xml.sax.SAXException:
>SimpleDeserializer encountered a child element, which
>is NOT expected, in something it was trying to
>deserialize.
> faultActor: null
> faultDetail: 
>	stackTrace: org.xml.sax.SAXException:
>SimpleDeserializer encountered a child element, which
>is NOT expected, in something it was trying to
>deserialize.
>	at
>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)
>	at
>org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
>	at
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
>	at
>org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
>	at
>org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
>	at
>org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
>	at org.apache.axis.client.Call.invoke(Call.java:1871)
>	at org.apache.axis.client.Call.invoke(Call.java:1777)
>	at org.apache.axis.client.Call.invoke(Call.java:1315)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXISDocStyle(Unknown
>Source)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown
>Source)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown
>Source)
>	at WSIFSample.main(WSIFSample.java:91)
>
>
>org.xml.sax.SAXException: SimpleDeserializer
>encountered a child element, which is NOT expected, in
>something it was trying to deserialize.
>	at
>org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
>	at org.apache.axis.client.Call.invoke(Call.java:1874)
>	at org.apache.axis.client.Call.invoke(Call.java:1777)
>	at org.apache.axis.client.Call.invoke(Call.java:1315)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXISDocStyle(Unknown
>Source)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown
>Source)
>	at
>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown
>Source)
>	at WSIFSample.main(WSIFSample.java:91)
>Caused by: org.xml.sax.SAXException:
>SimpleDeserializer encountered a child element, which
>is NOT expected, in something it was trying to
>deserialize.
>	at
>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)
>	at
>org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
>	at
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
>	at
>org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
>	at
>org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
>	at
>org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
>	at org.apache.axis.client.Call.invoke(Call.java:1871)
>	... 6 more
>DEBUG [2005-05-24 15:42:40,333] [main]  [33811] -
>ENTRY     WSIFException.<init><f102d3>(exception on
>AXIS invoke: ; nested exception is: 
>	org.xml.sax.SAXException: SimpleDeserializer
>encountered a child element, which is NOT expected, in
>something it was trying to deserialize.)
> DEBUG [2005-05-24 15:42:40,333] [main]  [33811] -
>EXIT      WSIFException.<init>()
> DEBUG [2005-05-24 15:42:40,333] [main]  [33811] -
>ENTRY    WSIFException.<init><f102d3>(exception on
>AXIS invoke: ; nested exception is: 
>	org.xml.sax.SAXException: SimpleDeserializer
>encountered a child element, which is NOT expected, in
>something it was trying to deserialize.,
>org.xml.sax.SAXException: SimpleDeserializer
>encountered a child element, which is NOT expected, in
>something it was trying to deserialize.)
> DEBUG [2005-05-24 15:42:40,333] [main]  [33811] -
>EXIT     WSIFException.<init>()
>
>
>Can someone please help me troubleshoot this ?
>  
>
this looks like related AXIS problem 
(org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild) - what 
version of WSIF and AXIS do you use? did you try current CVS nightly 
build? how to reproduce the problem? can you capture XML deserialize() 
to fail (using TCPMon 
<http://docs.pushtotest.com/axisdocs/user-guide.html#tcpmon>for example).

HTH,

alek

-- 
The best way to predict the future is to invent it - Alan Kay
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.