DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9735>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9735

NullPointerException when xsi:nil="true" response 

           Summary: NullPointerException when xsi:nil="true" response
           Product: Axis
           Version: current (nightly)
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Error invoking operation:
java.lang.NullPointerException
        at org.apache.axis.client.Call.invoke(Call.java:1193)
        at org.apache.axis.client.Call.invoke(Call.java:1113)
        at
com.bisam.bfw.wservices.AxisInvocationHandler.invoke(AxisInvocationHandler.java:73)

----

When debugging the code the exception is thrown exactly here: 


1798        // Convert type if needed
1799        if (returnJavaType != null &&
1800                !(returnJavaType.isAssignableFrom(result.getClass()))) {
1801            result = JavaUtils.convert(result, returnJavaType);
1802        }

 => (result == null)

----
The wservice response:

<?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>
  <ns1:getCurrenciesResponse
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="urn:xml-soap-bisam">
   <getCurrenciesReturn xsi:type="SOAP-ENC:Array" xsi:nil="true"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"/>
  </ns1:getCurrenciesResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

----
jdk 1.4, build 7/6/2002

Reply via email to