You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "AS-IT-3-9-20 Loesche, Mathias" <as...@auswaertiges-amt.de> on 2006/11/06 15:01:26 UTC

org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected

Hello,

I run into a problem using wss4j in axis1.

After the successful logged decrypted Message found in the log

 2006-11-06 13:04:04,737 DEBUG [http-8280-Processor24] 
org.apache.axis.providers.java.RPCProvider: body is <ns1:hallo 
soapenv:encodingStyle="http://        
schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://aa" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><name 
xsi:type="xsd:string" xml        
ns:xsi="http://www.w3.org/2001/XMLSchema-instance">Berlin_to_encrypt</name></ns1:hallo>

following exception occured:

2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.enterprise: Mapping Exception to AxisFault
 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:145)
at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:81)
at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)             


Before that, I see following debug message in the log

2006-11-06 13:04:04,737 DEBUG [http-8280-Processor24] 
org.apache.axis.i18n.ProjectResourceBundle: 
org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
2006-11-06 13:04:04,737 DEBUG [http-8280-Processor24] 
org.apache.axis.encoding.DeserializationContext:Pushing handler 
org.apache.axis.message.RPCHandler@1852a81
2006-11-06 13:04:04,737 DEBUG [http-8280-Processor24] 
org.apache.axis.encoding.DeserializationContext: Enter: 
DeserializationContext::startPrefixMapping(ns1, http://aa)
2006-11-06 13:04:04,737 DEBUG [http-8280-Processor24] 
org.apache.axis.utils.NSStack: NSPush (32)
2006-11-06 13:04:04,737 DEBUG [http-8280-Processor24] 
org.apache.axis.utils.NSStack: NSPush (32)
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.encoding.DeserializationContext: Exit: 
DeserializationContext::startPrefixMapping()
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.encoding.DeserializationContext: Enter: 
DeserializationContext::startElement(http://aa, hallo)
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.message.RPCHandler: Enter: RPCHandler.onStartChild()
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.i18n.ProjectResourceBundle: 
org.apache.axis.i18n.resource::handleGetObject(typeFromAttr00)
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.message.RPCHandler: Type from attributes is:  null
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.message.RPCHandler: Exit: RPCHandler.onStartChild()
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.i18n.ProjectResourceBundle: 
org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.encoding.DeserializationContext: Pushing handler 
org.apache.axis.encoding.ser.SimpleDeserializer@1a9883d
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.encoding.DeserializationContext: Exit: 
DeserializationContext::startElement()
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.encoding.DeserializationContext: Enter: 
DeserializationContext::startElement(        , name)
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.i18n.ProjectResourceBundle: 
org.apache.axis.i18n.resource::handleGetObject(cantHandle00)
2006-11-06 13:04:04,738 DEBUG [http-8280-Processor24] 
org.apache.axis.i18n.ProjectResourceBundle: 
org.apache.axis.i18n.resource::handleGetObject(toAxisFault00              


Following logging entries are strange:
org.apache.axis.message.RPCHandler: Type from attributes is:  null

and

org.apache.axis.encoding.DeserializationContext: Enter: 
DeserializationContext::startElement(        , name)



Does that message have any impact in this problem ?
Does anybody have an idea, what can be the reason for that behaviour ?
Does there any other debugging possibilities ?

Thanks !

Mathias