0 Replies Latest reply on Jun 28, 2011 11:34 AM by kranthi sanka

    ClassCastException SOAPMessageImpl

    kranthi sanka Newbie

      Hi,

       

      I am getting below exception in Jboss when trying to connect a webservice. can someone suggest on this? i  have used jars from axiom-1.2.7 and axiom-1.2.6. but both versions are throwing the same exception.

       

       

      Caused by: java.lang.ClassCastException: org.apache.axiom.soap.impl.llom.SOAPMessageImpl

              at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.endElement(StAXSOAPModelBuilder.java:396)

              at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:200)

              at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:307)

              at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.next(OMChildrenQNameIterator.java:118)

              at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:252)

              at org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultImpl.getReason(SOAP11FaultImpl.java:128)

              at org.apache.axiom.soap.impl.llom.SOAPFaultImpl.internalSerialize(SOAPFaultImpl.java:169)

              at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:889)

              at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:905)

              at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:889)

              at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:213)

              at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:889)

              at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:375)

              at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:1051)

              at org.apache.axis2.jaxws.message.util.MessageUtils.getMessageFromMessageContext(MessageUtils.java:178)

              at org.apache.axis2.jaxws.core.MessageContext.<init>(MessageContext.java:101)

              at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:126)