[
https://issues.apache.org/jira/browse/AXIS2-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467852
]
Kinichiro Inoguchi commented on AXIS2-1745:
-------------------------------------------
I checked this with axis2-SNAPSHOT.zip (26-Jan-2007 05:36).
It works fine.
Calling my test service by REST,
http://localhost:8080/axis2/rest/TestPojoService/getBean?inParam=0
I could see response like this,
<ns:getBeanResponse xmlns:ns="http://service.myService/xsd">
<ns:return>
<ret01 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://data1.myService/xsd" xsi:nil="true" />
<ret02 xmlns="http://data1.myService/xsd">0</ret02>
<ret03 xmlns="http://data1.myService/xsd">0</ret03>
<ret04 xmlns="http://data1.myService/xsd">0.0</ret04>
<ret05 xmlns="http://data1.myService/xsd">0.0</ret05>
<ret06 xmlns="http://data1.myService/xsd">0</ret06>
<ret07 xmlns="http://data1.myService/xsd">false</ret07>
<ret08 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://data1.myService/xsd" xsi:nil="true" />
<ret09 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://data1.myService/xsd" xsi:nil="true" />
<ret20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://data1.myService/xsd" xsi:nil="true" />
</ns:return>
</ns:getBeanResponse>
Thanks.
> 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
> Assigned To: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]