2 Replies Latest reply on Mar 9, 2016 10:06 PM by uma maheshwaris62434998

    ClassCastException

    pwp69
      I can't seem to determine the cause of the ClassCastException message I am getting from a web service I am calling with CF8. The message is returned from an internal WebLogic web service.

      For the most part it works fine but when I request something that the web service can't handle I get the ClassCastException message. I turned on SOAP logging to get the real cause of the problem but the CCE is messing up my exception handling.

      Any ideas what is causing this? Would upgrading to axis 1.4 help?

      Any help would be appreciated.

      Here's a portion of the stack trace:

      java.lang.ClassCastException: org.apache.axis.message.Text cannot be cast to org.apache.axis.message.MessageElement at org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.java:299) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:10 90) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 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(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at...