axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Conroy (JIRA)" <>
Subject [jira] Commented: (AXIS2-1349) RPCMessageReceiver misbehaviour
Date Mon, 16 Oct 2006 14:01:35 GMT
    [ ] 
Kevin Conroy commented on AXIS2-1349:

I also get a NullPointerException from lack-of-null check on line 132 when trying to execute
a Rest service that has a void return type:

	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(
	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(
	at org.apache.axis2.engine.AxisEngine.receive(
	at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(
	at org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(
	at org.apache.axis2.transport.http.AxisRESTServlet.doGet(
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
	at org.apache.tomcat.util.threads.ThreadPool$

If I give the service a non-void return type (e.g. empty String) then everything works fine.

> RPCMessageReceiver misbehaviour
> -------------------------------
>                 Key: AXIS2-1349
>                 URL:
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>    Affects Versions: 1.1
>            Reporter: Ruwan Linton
>         Assigned To: Deepal Jayasinghe
> I have writen a void setName operation and engaged the RPCMessageReceiver in the services.xml
> When I tried to invoke this method using fireAndForget it worked but when I tried to
do sendRecieve Axis2 engine gave me an AxisFault
> org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(
> 	at org.apache.axis2.client.ServiceClient.sendReceive(
> 	at org.apache.axis2.client.ServiceClient.sendReceive(
> 	at org.apache.axis2.messageReciever.test.client.Axis2TestathonClient.main(
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at com.intellij.rt.execution.application.AppMain.main(
> This is because a npe is occured in the RPCMessageReceiver because it is trying to get
some parameters from the outaxisMessage without checking weather it is null or not.
> I think Axis engine should not fail at this point.
> <<Code from the RPCMessageReceiver
> L: 130           // Handling the response
> L: 131           AxisMessage outaxisMessage = op.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
> L: 132           if (inAxisMessage != null) {
> L: 134               messageNameSpace = outaxisMessage.getElementQName().getNamespaceURI();
> L: 135           }
> >>

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message