Dispatch ClassCastException with DOMSource
------------------------------------------
Key: AXIS2-1184
URL: http://issues.apache.org/jira/browse/AXIS2-1184
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: jaxws
Affects Versions: 1.0
Reporter: Samuel Isokpunwu
Dispatch.invoke and Dispach.invokeOneWay throw ClassCastException. Here's stack
traces for invokes in
MESSAGE and PAYLOAD modes:
Dispatch.invoke and Dispach.invokeOneWay throw ClassCastException. Here's stack
traces for invokes in
MESSAGE and PAYLOAD modes:
Clientside Stack Trace when doing invoke in MESSAGE mode:
java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentImpl
incompatible with org.w3c.dom.Element
at
org.apache.axis2.jaxws.message.databinding.impl.SourceBlockImpl._getReaderFromBO(SourceBlockImpl.java:139)
at
org.apache.axis2.jaxws.message.impl.BlockImpl.getXMLStreamReader(BlockImpl.java:180)
at
org.apache.axis2.jaxws.client.XMLDispatch.createMessageFromValue(XMLDispatch.java:109)
at
org.apache.axis2.jaxws.client.BaseDispatch.invoke(BaseDispatch.java:109)
at
jaxws.dispatch.wsfvt.test.DOMSourceTest.testTwoWay_MessageMode(DOMSourceTest.java:92)
Clientside Stack Trace when doing invoke in PAYLOAD mode:
java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentImpl
incompatible with org.w3c.dom.Element
at
org.apache.axis2.jaxws.message.databinding.impl.SourceBlockImpl._getReaderFromBO(SourceBlockImpl.java:139)
at
org.apache.axis2.jaxws.message.impl.BlockImpl.getXMLStreamReader(BlockImpl.java:180)
at
org.apache.axis2.jaxws.message.impl.XMLStreamReaderForXMLSpine.pushBlocks(XMLStreamReaderForXMLSpine.java:158)
at
org.apache.axis2.jaxws.message.impl.XMLStreamReaderForXMLSpine.next(XMLStreamReaderForXMLSpine.java:96)
at
org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:929)
at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:74)
at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:59)
at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:490)
at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:792)
at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:177)
at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:378)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSender.java:169)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:205)
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:660)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:110)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:308)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:666)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
at
org.apache.axis2.jaxws.core.controller.AxisInvocationController.invoke(AxisInvocationController.java:130)
at
org.apache.axis2.jaxws.client.BaseDispatch.invoke(BaseDispatch.java:116)
at
jaxws.dispatch.wsfvt.test.DOMSourceTest.testTwoWay_PayloadMode(DOMSourceTest.java:115)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]