Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36868 invoked from network); 16 Jun 2009 10:27:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 10:27:22 -0000 Received: (qmail 47223 invoked by uid 500); 16 Jun 2009 10:27:32 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 47138 invoked by uid 500); 16 Jun 2009 10:27:32 -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 47129 invoked by uid 99); 16 Jun 2009 10:27:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 10:27:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 10:27:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B50DA234C044 for ; Tue, 16 Jun 2009 03:27:07 -0700 (PDT) Message-ID: <1090079633.1245148027727.JavaMail.jira@brutus> Date: Tue, 16 Jun 2009 03:27:07 -0700 (PDT) From: =?utf-8?Q?Christoph_M=C3=BCller_=28JIRA=29?= To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-4380) NullPointerException in WSDL2Java when WSDL-Operation has no InputMessage In-Reply-To: <1944227255.1245147907543.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4380?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Christoph M=C3=BCller updated AXIS2-4380: ------------------------------------ Attachment: HospitalWebservice.wsdl The relevant wsdl > NullPointerException in WSDL2Java when WSDL-Operation has no InputMessage > ------------------------------------------------------------------------- > > Key: AXIS2-4380 > URL: https://issues.apache.org/jira/browse/AXIS2-4380 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Affects Versions: 1.5 > Environment: Windows Vista Business 64bit > Java 1.6.0_7 > Reporter: Christoph M=C3=BCller > Priority: Minor > Attachments: HospitalWebservice.wsdl > > > When invoking WSDL2Java for JiBX, a NullPointerException is thrown. The W= SDL has an operation without an input message. > ## Parameters ##################################### > -uri wsdl\HospitalWebservice.wsdl > -p de.ahija.da.simplews.server > -d jibx > -ss > -sd > -ssi > -uw > -S gen > -R WebContent/META-INF > -or > ################################################# > ## Exception ###################################### > Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationEx= ception: Error parsing WSDL > =09at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGener= ationEngine.java:153) > =09at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > =09at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Caused by: org.apache.axis2.AxisFault > =09at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > =09at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateSer= vice(WSDL11ToAxisServiceBuilder.java:396) > =09at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGener= ationEngine.java:142) > =09... 2 more > Caused by: java.lang.NullPointerException > =09at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOpe= rations(WSDL11ToAxisServiceBuilder.java:1340) > =09at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePor= tType(WSDL11ToAxisServiceBuilder.java:591) > =09at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEnd= points(WSDL11ToAxisServiceBuilder.java:468) > =09at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateSer= vice(WSDL11ToAxisServiceBuilder.java:362) > =09... 3 more > ################################################# > When debugging, the cause became obvious: > http://svn.apache.org/repos/asf/webservices/axis2/tags/java/v1.5/modules/= kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java > ## WSDL11ToAxisServiceBuilder ###################### > 1336 Message message =3D wsdl4jOutputMessage.getMessage(); > 1337 if (null !=3D message) { > 1338 > 1339 outMessage.setName(message.getQName().getLocalPar= t()); > 1340 copyExtensionAttributes(wsdl4jInputMessage.getExt= ensionAttributes(), > 1341 outMessage, PORT_TYPE_OPER= ATION_OUTPUT); > 1342 > 1343 // wsdl:portType -> wsdl:operation -> wsdl:output > 1344 } > ################################################# > While wsdl4jInputMessage was checked for null various times before, here = it is not checked. Moreover I assume it is a copy'n'paste mistake and wsdl4= jOutputMessage should be used here. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.