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

Sagara Gunathunga  commented on AXIS2-5199:
-------------------------------------------

@TAM 
We have done lot of improvements for Axis2 POJO support recently targeting 
1.7.0 release and most of them not available on 1,6 branch and will not ship 
with 1.6.2. My suggestion is test with 1.7.0-SNAPSHOT version and If you still 
having same issue provide a small sample (single Java class with a service.xml) 
to reproduce this issue that will help both of us to resolve this issue if it 
really exists. Your provided code is bit of a complex and just can't find 
enough time  to look into it in near future.  
                
> 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
>
>         Attachments: Axis2Test.7z
>
>
> 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-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to