Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 69914 invoked from network); 10 Oct 2006 05:58:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2006 05:58:05 -0000 Received: (qmail 84547 invoked by uid 500); 10 Oct 2006 05:58:02 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 84498 invoked by uid 500); 10 Oct 2006 05:58:02 -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 84368 invoked by uid 99); 10 Oct 2006 05:58:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 22:58:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 22:57:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B2767142DB for ; Mon, 9 Oct 2006 22:57:21 -0700 (PDT) Message-ID: <30125947.1160459841501.JavaMail.root@brutus> Date: Mon, 9 Oct 2006 22:57:21 -0700 (PDT) From: "Eran Chinthaka (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (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-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-1254?page=all ] Eran Chinthaka resolved AXIS2-1254. ----------------------------------- Fix Version/s: 1.1 Resolution: Fixed Patch applied to r454632. Thanks Amila. > 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 > Assigned To: Eran Chinthaka > Priority: Blocker > Fix For: 1.1 > > Attachments: ADBBeanTemplate.xsl-patch-041006.txt, ADBBeanTemplate.xsl-patch-041006.txt, ADBBeanTemplate.xsl-patch-091006.txt, 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