Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 53587 invoked from network); 18 Dec 2006 09:42:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 09:42:46 -0000 Received: (qmail 24100 invoked by uid 500); 18 Dec 2006 09:42:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 24064 invoked by uid 500); 18 Dec 2006 09:42:49 -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 24017 invoked by uid 99); 18 Dec 2006 09:42:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 01:42:49 -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; Mon, 18 Dec 2006 01:42:41 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 040F47141A5 for ; Mon, 18 Dec 2006 01:42:21 -0800 (PST) Message-ID: <7344057.1166434940998.JavaMail.jira@brutus> Date: Mon, 18 Dec 2006 01:42:20 -0800 (PST) From: "David Garcia (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-1883) Integer nillable property of input parameter bean cannot be null (NumberFormatException in SimpleTypeMapper) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Integer nillable property of input parameter bean cannot be null (NumberFor= matException in SimpleTypeMapper) ---------------------------------------------------------------------------= --------------------------------- Key: AXIS2-1883 URL: http://issues.apache.org/jira/browse/AXIS2-1883 Project: Apache Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: 1.1 Reporter: David Garcia A property of a complex type is defined like this: ... That complex type is used as the input parameter of a service=C2=B4s operat= ion and is defined like this: public class SomeBean { private Integer someInt; ... =20 ...getters & setters... } Then, trying to set that property to "nil" is not allowed. That is, if the input message is something like this: ... then the following exception is thrown in the server: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatExcep= tion.java:48) at java.lang.Integer.parseInt(Integer.java:489) at java.lang.Integer.(Integer.java:609) at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSim= pleTypeObject(SimpleTypeMapper.java:77) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil= .java:283) at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUt= il.java:549) at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanU= til.java:499) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil= .java:438) at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.ja= va:109) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusiness= Logic(RPCMessageReceiver.java:116) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.rece= ive(AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPo= stRequest(HTTPTransportUtils.java:319) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.j= ava:247) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) ... The only way to make it work is to change "someInt"=C2=B4s type to "int" an= d pass "0" as default value, although most time this workaround is not desi= rable as it breaks the operation=C2=B4s semantics. Thanks in advance. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org