Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 68338 invoked from network); 13 Feb 2007 14:02:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2007 14:02:29 -0000 Received: (qmail 42578 invoked by uid 500); 13 Feb 2007 14:02:34 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 42533 invoked by uid 500); 13 Feb 2007 14:02:33 -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 42522 invoked by uid 99); 13 Feb 2007 14:02:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 06:02:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Tue, 13 Feb 2007 06:02:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7DF337142E4 for ; Tue, 13 Feb 2007 06:02:05 -0800 (PST) Message-ID: <8721910.1171375325513.JavaMail.jira@brutus> Date: Tue, 13 Feb 2007 06:02:05 -0800 (PST) From: "Ted Jones (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (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:comment-tabpanel#action_12472660 ] Ted Jones commented on AXIS2-2054: ---------------------------------- Attached modified BeanUtil.java file. > 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 > Assigned To: 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