Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A24D89D66 for ; Sat, 26 Nov 2011 23:25:03 +0000 (UTC) Received: (qmail 34787 invoked by uid 500); 26 Nov 2011 23:25:02 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 34504 invoked by uid 500); 26 Nov 2011 23:25:01 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 34496 invoked by uid 99); 26 Nov 2011 23:25:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 23:25:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 23:25:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 569A5A2E8D for ; Sat, 26 Nov 2011 23:24:40 +0000 (UTC) Date: Sat, 26 Nov 2011 23:24:40 +0000 (UTC) From: "Sagara Gunathunga (Assigned) (JIRA)" To: java-dev@axis.apache.org Message-ID: <183529835.14141.1322349880356.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1196855805.13227.1322301460427.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sagara Gunathunga reassigned AXIS2-5199: ----------------------------------------- Assignee: Sagara Gunathunga > 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 > > 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