Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 49375 invoked from network); 4 Jul 2007 09:38:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 09:38:28 -0000 Received: (qmail 14324 invoked by uid 500); 4 Jul 2007 09:38:28 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 14281 invoked by uid 500); 4 Jul 2007 09:38:28 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 14270 invoked by uid 99); 4 Jul 2007 09:38:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 02:38:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 02:38:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C17707141F0 for ; Wed, 4 Jul 2007 02:38:04 -0700 (PDT) Message-ID: <23533737.1183541884789.JavaMail.jira@brutus> Date: Wed, 4 Jul 2007 02:38:04 -0700 (PDT) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2054) Problem Serializing Sets In-Reply-To: <3923603.1170080269814.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepal Jayasinghe resolved AXIS2-2054. -------------------------------------- Resolution: Fixed seems like issue is fixed in the current SVN > Problem Serializing Sets > ------------------------ > > Key: AXIS2-2054 > URL: https://issues.apache.org/jira/browse/AXIS2-2054 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Affects Versions: 1.1.1 > Environment: Tomcat 5.0, Apache axis2-1.1, JDK1.5.0, XP > Reporter: Raja Chattopadhyay > Assignee: Deepal Jayasinghe > Attachments: BeanUtil.java, TestService.zip > > > I am trying to set java.util.Set in a Java Bean in my web service. After setting the bean, I am trying to return the bean as return type. > Doing so I am facing an Exception like: > Jan 27, 2007 10:15:02 AM > org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic > SEVERE: Exception occurred while trying to invoke service > method getAdrresses org.apache.axiom.om.OMException: > java.lang.IllegalArgumentException: null rcl > at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java > To re-create the problem: > create a bean like > --------------------------------- > public class SampleBean{ > Set set; > > public void setData(Set set){ > this.set = set; > } > public Set getData(){ > return set; > } > } > Create a Service Class > ------------------------------ > public class TestService{ > public SampleBean getAddress(){ > Set set = new HashSet(); > set.add("r1"); > set.add("r2"); > SampleBean sampleBean = new SampleBean(); > sampleBean.setData(set); > return sampleBean; > } > } > Invoke this Service using RPCMessageReceiver. -- 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: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org