axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Poetter (JIRA)" <>
Subject [jira] Commented: (AXIS2-3892) WebServiceStub crashes with NullPointerException when web service function is called with null as argument
Date Mon, 07 Jul 2008 13:29:32 GMT


Thomas Poetter commented on AXIS2-3892:

As an attempt of a workaround for the example in the last comment, I avoided throwing an exception
"Property cannot be null" in InterActiveWebClientRampart.AccountInformationServiceStub and
continued with execution. This leads to the following error dump:

Exception in thread "main" org.apache.axis2.AxisFault: Error in extracting message properties
	at org.apache.rampart.handler.RampartSender.invoke(
	at org.apache.axis2.engine.Phase.invoke(
	at org.apache.axis2.engine.AxisEngine.invoke(
	at org.apache.axis2.engine.AxisEngine.send(
	at org.apache.axis2.description.OutInAxisOperationClient.send(
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
	at org.apache.axis2.client.OperationClient.execute(
	at InterActiveWebClientRampart.AccountInformationServiceStub.GetInfo(
	at InterActiveWebClientRampart.AccountInformationServiceCGClient.main(
Caused by: org.apache.rampart.RampartException: Error in extracting message properties
	at org.apache.rampart.RampartMessageData.<init>(
	at org.apache.rampart.handler.RampartSender.invoke(
	... 8 more
Caused by: Error in converting SOAP Envelope to
Document; nested exception is:
	at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(
	at org.apache.rampart.RampartMessageData.<init>(
	... 10 more
Caused by:
	at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(
	... 11 more
Caused by:
	... 14 more

> WebServiceStub crashes with NullPointerException when web service function is called
with null as argument
> ----------------------------------------------------------------------------------------------------------
>                 Key: AXIS2-3892
>                 URL:
>             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
>       optimizeContent(new javax.xml.namespace.QName("https://xxx/AccountInformation",
> 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:
For additional commands, e-mail:

View raw message