Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 97884 invoked from network); 3 Sep 2009 01:48:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Sep 2009 01:48:05 -0000 Received: (qmail 5062 invoked by uid 500); 3 Sep 2009 01:48:05 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 4958 invoked by uid 500); 3 Sep 2009 01:48:04 -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 4949 invoked by uid 99); 3 Sep 2009 01:48:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 01:48:04 +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; Thu, 03 Sep 2009 01:47:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB09D234C04C for ; Wed, 2 Sep 2009 18:47:32 -0700 (PDT) Message-ID: <286126606.1251942452830.JavaMail.jira@brutus> Date: Wed, 2 Sep 2009 18:47:32 -0700 (PDT) From: "Leon Koch (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value. In-Reply-To: <1743098187.1248908234964.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750773#action_12750773 ] Leon Koch commented on AXIS2-4454: ---------------------------------- Looks like that's an issue with the Eclipse WSDL editor: https://bugs.eclipse.org/bugs/show_bug.cgi?id=237918 > A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value. > ----------------------------------------------------------------------------------------------------------- > > Key: AXIS2-4454 > URL: https://issues.apache.org/jira/browse/AXIS2-4454 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Affects Versions: 1.4.1 > Environment: Windows 2003 Server, Axis2 Codegen Wizard 1.3 Eclipse plugin (Eclipse Ganymede 3.4.2), jdk 1.5.0_12 > Reporter: Tom Kirkman > Attachments: Test-working.wsdl, Test.wsdl > > > During: > C:\testWithFault>%AXIS2_HOME%\bin\wsdl2java.bat -uri file:\\\c:\testWithFault/Test.wsdl -o c:\testWithFault -d adb -ss -sd > Receive: > Using AXIS2_HOME: D:\apps\axis2\axis2-1.4 > Using JAVA_HOME: d:/apps/java/jdk1.5.0_12 > Retrieving document at 'file:\\\c:\testWithFault/Test.wsdl'. > Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException > : org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeExcept > ion: Element QName is null for NewOperation_faultMsg! > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener > ationEngine.java:271) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.Runt > imeException: Element QName is null for NewOperation_faultMsg! > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1370) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener > ationEngine.java:253) > ... 2 more > Caused by: java.lang.RuntimeException: Element QName is null for NewOperation_fa > ultMsg! > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:2829) > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2748) > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2269) > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151) > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:206 > 5) > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1991) > at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1327) > Using a "Test.wsdl" file that is auto-generated by the WSDL Editor, and validates successfully: > A. With no modifications - wsdl2java processes successfully. > B. Added a Fault to the NewOperation via the graphical editor - wsdl2java throws the above error, even though the Fault Message's QName has a valid value. > Same problem occurs using Axis 1.5. > Apparently the Test.wsdl's Fault Message is parsed incorrectly, such that the org.apache.axis2.description.AxisMessage representing the Fault Message has a null elementQname field. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.