axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TAM Tenfold5 (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
Date Sat, 10 Dec 2011 14:23:40 GMT

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

TAM Tenfold5 commented on AXIS2-5199:
-------------------------------------

The deserialization issue is fixed in 1.7.0 SNAPSHOT version. But before the response is generate
below exception is thrown ->

java.lang.NullPointerException
	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:96)
	at org.apache.axis2.databinding.utils.BeanUtil.getPropertyQnameList(BeanUtil.java:391)
	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:97)
	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:127)
	at org.apache.axis2.rpc.receivers.RPCUtil.processResponseAsDocLitWrapped(RPCUtil.java:533)
	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:155)
	at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
	at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:176)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:163)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:662)
                
> Deserialization of an array type property of a bean, while calling a web-service operation
with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized
into POJO. The web-service operation is not getting called (log statements within implemented
'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not
seen).
> I am able to obtain request message from the MessageContext and the soap message structure
of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response.
The above error is not seen in this case. So I think this issue is only when an array is sent
to server packaged within a bean, and not when server is sending back a similar object in
response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message