You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Gopal V (JIRA)" <ax...@ws.apache.org> on 2005/03/04 15:35:48 UTC
[jira] Created: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Grant Kushida (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_64093 ]
Grant Kushida commented on AXIS-1836:
-------------------------------------
We have not opened any bugs with gSOAP (that's Mike's issue) - but we have communicated this issue to our third-party web services management tier vendor.
> 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
[jira] Resolved: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1836?page=history ]
Davanum Srinivas resolved AXIS-1836:
------------------------------------
Resolution: Won't Fix
You need to ask gsoap guys to fix the problem. According to the soap 1.1 specs detail (http://www.zvon.org/xxl/soapReference/Output/index.html) should not have text inside it (as the only child).
thanks,
dims
> 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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Joshua Blatt (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_63926 ]
Joshua Blatt commented on AXIS-1836:
------------------------------------
Yes! This says it all:
Postel's principle - be liberal in what you accept, strict in what you emit
Axis should play better with gsoap
> 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
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Grant Kushida (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_63916 ]
Grant Kushida commented on AXIS-1836:
-------------------------------------
Sorry for responding to my own comment, but I'm starting to agree that the current behavior is the "correct" behavior.
The schema says that <detail> is a complex type with complex content. The processContents=lax attribute means that the complex content does not necessarily need to be validated. It does not mean that the complex content can in fact be simple or mixed content, because that would violate the SOAP schema itself.
In other words - a valid <detail> element can only contain other elements (complex content) - and the <detail> is valid even if the contained elements can't be validated (processContents=lax).
To Mike's comment, the zvon tutorial says 2 things:
- child elements are called detail entries
- each detail entry is encoded as independent element
Text nodes are not elements, therefore cannot be detail entries, because detail entries are elements.
However, this is sort of a moot point, as the fact remains that a) this is vague enough that at least two implementors came to a different conclusion and b) there is an installed base of these services out there, that axis is not compatible with.
Then it becomes a philosophical issue - does the Axis development philosophy favor greater interoperability (Postel's principle - be liberal in what you accept, strict in what you emit), or does it favor a pure implementation of the spec?
> 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
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Grant Kushida (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_63914 ]
Grant Kushida commented on AXIS-1836:
-------------------------------------
I've run into this problem too - not with gSOAP, but with a commercial web service management tier (implemented in Java on Weblogic, but I don't know if they use Weblogic's SOAP implementation).
I'd also like to propose that this bug be re-opened, because I don't believe the current behavior actually adheres to the SOAP schema spec.
The schema cited above says:
<xs:complexType name="detail">
<xs:sequence>
<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
<xs:anyAttribute namespace="##any" processContents="lax"/>
</xs:complexType>
The key thing here is not that it's a complex type with implicit complex content (i.e. element children only) but that there is a processContents="lax" attribute specified for the any type placeholder.
According to the schema spec: http://www.w3.org/TR/xmlschema-1/#Wildcards
"lax: If the item has a uniquely determined declaration available, it must be *valid* with respect to that definition, that is, *validate* if you can, don't worry if you can't."
So, it seems that Axis is not handling that properly - it is attempting to validate the <detail> content even though there is no declaration available.
> 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
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_63927 ]
Davanum Srinivas commented on AXIS-1836:
----------------------------------------
did you guys open a bug with gSOAP as well?
-- dims
> 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
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Mike Moran (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Henrik Nordberg (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Commented: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1836?page=comments#action_63819 ]
Davanum Srinivas commented on AXIS-1836:
----------------------------------------
did u look at the soap 1.1 schema itself? http://schemas.xmlsoap.org/soap/envelope/
-- dims
> 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