[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_63806 ] Mike Moran commented on AXIS-1836: ----------------------------------
I would like to propose that this bug be opened again, since I believe the spec, as cited, allows for text as a direct child of detail: (from http://www.zvon.org/xxl/soapReference/W3C/soap.html#_Toc478383507 and http://www.zvon.org/xxl/soapReference/Output/soap_detail.html): "All immediate child elements of the detail element are called detail entries and each detail entry is encoded as an independent element within the detail element." The reason this does not rule out a child Text node, is that a Text node may not be an element. If so, the spec may simply be saying that any child elements must be referred to as "detail entries". Even if it is regarded by the Axis team that a Text node is an element, then they should spell this out more clearly. I will take this up with the gSOAP team and mailing list if necessary, but it would be good to clarify exactly why they are thought to be at fault, before I go and moan at them ;-) Ta, > 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
