EJB3 Webservice invocation failing with Unmarshalling Error
thinksteep Mar 19, 2012 6:18 PMHi Community,
With your help I was able to migrate most of components from 4.2.3a to 7.1. We have a standalone application which frequently calls webservice (EJB3-JAXWS) and updates the status. This webservice and client invocation are working fine in 4.2.3a but failing in 7.1 with Unmarshalling Error message.
Standalone application uses Axis2 for webservice invocation. Stack trace is little bit cryptic for me to understand. Any help would be really appreciated. Here is stack trace.
18:03:11,163 INFO [Connection][DcsInOutMessageDetails][machinename][test_jboss] some log message
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Unmarshalling Error: unexpected element (uri:"", local:&
quot;item"). Expected elements are (none)
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Unmarshalling Error: unexpected
element (uri:"", local:"item"). Expected elements are (none)
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
ationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known 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 javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:796)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.name.yyy.dc.interactions.MyActionServiceBindin
gStub.updateDataSourceLiveData(MyActionServiceBindingStub.java:375)
at com.name.yyy.dc.interactions.MyActionServiceProxy.
updateDataSourceLiveData(MyActionServiceProxy.java:90)
at com.name.yyy.dc.interactions.BDSListener
.send(BDSListener.java:103)
at com.name.yyy.dc.interactions.BDSListener
.access$000(BDSListener.java:47)
at com.name.yyy.dc.interactions.BDSListener
$1.run(BDSListener.java:124)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
{http://xml.apache.org/axis/}hostname:girin
Unmarshalling Error: unexpected element (uri:"", local:"item"). Expected element
s are (none)
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
ationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known 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 javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:796)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.name.yyy.dc.interactions.MyActionServiceBindin
gStub.updateDataSourceLiveData(MyActionServiceBindingStub.java:375)
at com.name.yyy.dc.interactions.MyActionServiceProxy.
updateDataSourceLiveData(MyActionServiceProxy.java:90)
at com.name.yyy.dc.interactions.BDSListener
.send(BDSListener.java:103)
at com.name.yyy.dc.interactions.BDSListener
.access$000(BDSListener.java:47)
at com.name.yyy.dc.interactions.BDSListener
$1.run(BDSListener.java:124)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)