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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/07/07 12:29:31 UTC

[jira] Assigned: (AXIS2-3892) WebServiceStub crashes with NullPointerException when web service function is called with null as argument

     [ https://issues.apache.org/jira/browse/AXIS2-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3892:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> WebServiceStub crashes with NullPointerException when web service function is called with null as argument
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3892
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3892
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: WinXP for AXIS client + server, Rampart 1.4
>            Reporter: Thomas Poetter
>            Assignee: Amila Chinthaka Suriarachchi
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Call:
>   InterActiveResponse result = stub.GetInfo(null); 
> Crash in:
>   public InterActiveResponse GetInfo(InterActiveRequest interActiveRequest0)
>     env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
>        interActiveRequest0,    // <-- value of interActiveRequest0: null => causes NullPointerException
>       optimizeContent(new javax.xml.namespace.QName("https://xxx/AccountInformation", "GetInfo")));
> I know that one fix is to prevent the client to call the service with null as argument. However, I feel the client shouldn't crash in this case but return null without crashing or throw an IllegalArgumentException or a similar - less fatal and more meaningful exception than NullPointerException.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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