Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 1769 invoked from network); 28 Sep 2006 04:57:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 04:57:51 -0000 Received: (qmail 64932 invoked by uid 500); 28 Sep 2006 04:57:45 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 64313 invoked by uid 500); 28 Sep 2006 04:57:43 -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 64302 invoked by uid 99); 28 Sep 2006 04:57:43 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2006 21:57:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:53194] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 0E/B4-05478-4465B154 for ; Wed, 27 Sep 2006 21:57:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 92C827141BB for ; Thu, 28 Sep 2006 04:53:50 +0000 (GMT) Message-ID: <6599685.1159419230583.JavaMail.jira@brutus> Date: Wed, 27 Sep 2006 21:53:50 -0700 (PDT) From: "Dennis Sosnoski (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-1254) ADB cannot handle null return value from service method In-Reply-To: <18664944.1159419110068.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-1254?page=all ] Dennis Sosnoski updated AXIS2-1254: ----------------------------------- Attachment: bug.zip The zip contains a full Ant build. To use it, change the build.properties line to the appropriate Axis2 installation directory on your system. > ADB cannot handle null return value from service method > ------------------------------------------------------- > > Key: AXIS2-1254 > URL: http://issues.apache.org/jira/browse/AXIS2-1254 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Affects Versions: nightly > Environment: Linux, Java 1.5 > Reporter: Dennis Sosnoski > Attachments: bug.zip > > > When the response content is an optional element null should be a valid return value from the corresponding method. I tried this with the following WSDL/schema fragment: > > > > > > > > > > > > The result was an error on the server side when the corresponding method returned null: > [java] Exception in thread "main" org.apache.axis2.AxisFault: java.lang.RuntimeException: book cannot be null!! > [java] at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:298) > [java] at com.sosnoski.ws.library.adb.LibraryAdbStub.getBook(LibraryAdbStub.java:340) > [java] at com.sosnoski.ws.library.adb.WebServiceClient.main(WebServiceClient.java:45) > ... > A null return value should be accepted in this case, resulting in an empty wrapper element (, in this case). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://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