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 "Kinichiro Inoguchi (JIRA)" <ji...@apache.org> on 2006/11/18 11:24:37 UTC

[jira] Commented: (AXIS2-1745) POJO service with NULL array causes NPE

    [ http://issues.apache.org/jira/browse/AXIS2-1745?page=comments#action_12451004 ] 
            
Kinichiro Inoguchi commented on AXIS2-1745:
-------------------------------------------

AXIS2-1719 "array-type bean property: null value causes to NLP"
might be the same issue.

> POJO service with NULL array causes NPE
> ---------------------------------------
>
>                 Key: AXIS2-1745
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1745
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>         Attachments: service_src.zip, TestPojoService.aar
>
>
> I created POJO test service.
> Response javabeans contains simple type and its arrays.
> Also nested javabeans and its arrays are included
> If all elements are filled, this works fine.
> You can see this by REST call.
> http://localhost:8080/axis2/rest/TestPojoService/getBean?inParam=1
> But, elements not set and NULL, this causes NPE.
> You can see this by REST call.
> http://localhost:8080/axis2/rest/TestPojoService/getBean?inParam=0
> <stack trace>
> 2006/11/18 14:59:38 org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
> : Exception occurred while trying to invoke service method getBean
> java.lang.NullPointerException
> 	at java.lang.reflect.Array.getLength(Native Method)
> 	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:120)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
> 	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
> 	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
> 	at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:153)
> 	at org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:143)
> 	at org.apache.axis2.transport.http.AxisRESTServlet.doGet(AxisRESTServlet.java:45)
> ...

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