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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]