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 "Christophe (JIRA)" <ji...@apache.org> on 2007/10/01 19:06:52 UTC

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

    [ https://issues.apache.org/jira/browse/AXIS2-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531567 ] 

Christophe commented on AXIS2-1745:
-----------------------------------

Hello

is This issue as been released into a major version of axis2 (1.1.1, 1.2, 1.3) ?
(because the "Fix Version/s:" field is blank ?

Thx
christophe

> POJO service with NULL array causes NPE
> ---------------------------------------
>
>                 Key: AXIS2-1745
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1745
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>         Environment: Axis2 1.1 release
>            Reporter: Kinichiro Inoguchi
>            Assignee: Deepal Jayasinghe
>         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.
-
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