[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_66086 ] Henrik Nordberg commented on AXIS-1836: ---------------------------------------
Faults from Axis-C 1.6a cause this problem too. Here is a sample fault: <?xml version='1.0' encoding='utf-8' ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>No handlers configured</faultstring> <faultactor>server name:listen port</faultactor> <detail>AxisEngineException:Web Service failed</detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> The complexType must have the attribute mixed set to true, in order to contain character data. mixed is false, by default. So it looks like axis java handles this correctly, but since gSoap, WebLogic, and axis-c generate such faults, axis java probably needs to deal with it. (The fault generators should also change, that they generate <detail> nodes with valid xml.) - Henrik > ClassCastException in SoapFaultBuilder reading fault > ---------------------------------------------------- > > Key: AXIS-1836 > URL: http://issues.apache.org/jira/browse/AXIS-1836 > Project: Axis > Type: Bug > Components: Basic Architecture > Versions: 1.2 > Environment: FreeBSD 4.10 > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.4.2-p6-root_28_jan_2004_22_24) > Reporter: Gopal V > Priority: Minor > > A Fault from the server causes a ClassCastException in SOAPFaultBuilder > The fault generated by the server (gsoap based) is > <?xml version="1.0" encoding="UTF-8"?> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:full="urn:xxxx:platform:soap:demo:full"> > <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode> > <faultstring>Missing request args</faultstring> > <detail>Params possibly not in appropriate namespace.Possible SOAP::Lite bug > #1149481</detail> > </SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> > Debugging gave the following: > Exception occurred: java.lang.ClassCastException (to be caught at: > org.apache.axis.message.SOAPFaultBuilder.onEndChild(), line=302 > bci=73)"thread=main", org.apache.axis.message.SOAPFaultBuilder.onEndChild(), > line=299 bci=63 > main[1] dump children > children = { > serialVersionUID: 8683452581122892189 > elementData: instance of java.lang.Object[10] (id=1094) > size: 1 > java.util.AbstractList.modCount: 1 > } > main[1] print i; > i; = 0 > main[1] print children.elementData[0].getType() > com.sun.tools.example.debug.expr.ParseException: No instance field or method > with the name getType in org.apache.axis.message.Text > main[1] print children.elementData[0] > children.elementData[0] = "Params possibly not in appropriate namespace. > Possible SOAP::Lite bug #1149481" > The code in CVS in SOAPFaultBuilder has the following code - > for (int i = 0; i < elements.length; i++) { > try { > elements[i] = ((MessageElement)children.get(i)). > getAsDOM(); > Which looks suspicious at this point. -- 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
