axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <>
Subject [jira] Created: (AXIS-1836) ClassCastException in SoapFaultBuilder reading fault
Date Fri, 04 Mar 2005 14:35:48 GMT
ClassCastException in SoapFaultBuilder reading fault

         Key: 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="" 
xmlns:xsd="" xmlns:full="urn:xxxx:platform:soap:demo:full">

<faultstring>Missing request args</faultstring>
<detail>Params possibly not in appropriate namespace.Possible SOAP::Lite bug #1149481</detail>

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

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() 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)).

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:
If you want more information on JIRA, or have a bug to report see:

View raw message