axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1286) RawXMLINOutMessageReceiver throws up a NPE if the business logic returns null
Date Tue, 03 Oct 2006 06:15:19 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1286?page=comments#action_12439394 ] 
            
Asankha C. Perera commented on AXIS2-1286:
------------------------------------------

<service >
  <parameter name="ServiceClass" locked="false">test.mr.MRTest1</parameter>
  <operation name="returnNull">
      <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
      <actionMapping>urn:returnNull</actionMapping>
  </operation>
</service>

public class MRTest1 {
    public OMElement returnNull(OMElement element){
    	....
    	return null;
    }    
}

The above throws a NPE which is returned as the SOAP fault

> RawXMLINOutMessageReceiver throws up a NPE if the business logic returns null
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-1286
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1286
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>            Reporter: Asankha C. Perera
>         Assigned To: Asankha C. Perera
>            Priority: Minor
>
> The RawXMLINOutMessageReceiver currently throws a NPE if the method invoked on the service
implementation class returns null. A meaningful SOAP fault should be returned to the client.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message