Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 21399 invoked from network); 30 Oct 2006 03:10:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 03:10:55 -0000 Received: (qmail 82245 invoked by uid 500); 30 Oct 2006 03:10:57 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 82215 invoked by uid 500); 30 Oct 2006 03:10:57 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 82204 invoked by uid 99); 30 Oct 2006 03:10:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Oct 2006 19:10:57 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [207.69.195.71] (HELO pop-siberian.atl.sa.earthlink.net) (207.69.195.71) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Oct 2006 19:10:43 -0800 Received: from user-0c6t4do.cable.mindspring.com ([24.110.145.184] helo=coxco.com) by pop-siberian.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1GeNXZ-0004g3-00 for axis-user@ws.apache.org; Sun, 29 Oct 2006 22:10:21 -0500 Received: from nail (user-0c6t4do.cable.mindspring.com [24.110.145.184]) by coxco.com (8.12.8/8.12.8) with ESMTP id k9U3AGi6012867 for ; Sun, 29 Oct 2006 22:10:20 -0500 From: "C. Brian Cox" To: Subject: Axis2 1.1 Code Generation Problem? Date: Sun, 29 Oct 2006 22:10:11 -0500 Message-ID: <025001c6fbd0$e9d3f7b0$0c01a8c0@nail> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0251_01C6FBA7.010039A0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0251_01C6FBA7.010039A0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I have been working on a WSDL, and ran into a problem when trying to = make use of simple types. So I tried to generate from some of the sample = wsdl's included in the standard source distribution, namely: actionTests.wsdl, bookQuote.wsdl, and bookQuote2.wsdl. Each of these contain simple data types similar to my wsdl. The thought here was to test a known good = wsdl vs my new untested wsdl. This resulted in similar exceptions. =20 =20 I believe I am using the code generation tools correctly. For the bookQuote.wsdl I used the following command: =20 C:\BookQuote> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client =20 Using AXIS2_HOME: "C:\axis2-1.1" Using JAVA_HOME: "C:\Progra~1\Java\jdk1.5.0_06" =20 This results in an exception similar to the ones I am experiencing with = my own wsdl: =20 Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for InvalidIsbnFault! at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGeneratio= nEn gine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for InvalidIsbnFault! at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.e mitStub(AxisServiceBasedMultiLanguageEmitter.java:299) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGeneratio= nEn gine.java:213) ... 2 more Caused by: java.lang.RuntimeException: Element QName is null for InvalidIsbnFault! at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.g etFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1877) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.g etFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1808) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.g enerateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1559) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.l oadOperations(AxisServiceBasedMultiLanguageEmitter.java:1474) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.c reateDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.j= ava :692) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.w riteCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:667) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.e mitStub(AxisServiceBasedMultiLanguageEmitter.java:274) ... 3 more =20 =20 Should it matter, I am using Axis2 RC1, and also tested it with the = 10/29 1.1 Snapshot. I am using the JDK 1.4.3 but also tested with 1.5. I am curious if anyone else has experienced this problem and if this is a = known bug. I looked at the JIRA but didn't see the exact problem. =20 Thanks, =20 Brian =20 ------=_NextPart_000_0251_01C6FBA7.010039A0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

I have been working on a WSDL, and ran into a problem = when trying to make use of simple types.  So I tried to generate from = some of the sample wsdl’s included in the standard source distribution, = namely: actionTests.wsdl, bookQuote.wsdl, and bookQuote2.wsdl.  Each of these contain simple = data types similar to my wsdl.  The thought here was to test a known = good wsdl vs my new untested wsdl.  This resulted in similar exceptions.  =

 

I believe I am using the code generation tools correctly.  For the bookQuote.wsdl I used the following = command:

 

C:\BookQuote> wsdl2java = -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client

 

Using = AXIS2_HOME:   "C:\axis2-1.1"

Using = JAVA_HOME:    "C:\Progra~1\Java\jdk1.5.0_06"

 

This results in an exception similar to the ones I am experiencing with my own wsdl:

 

Exception in thread = "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: = java.lang.RuntimeException: Element QName is null for InvalidIsbnFault!

    &nbs= p;       at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGeneratio= nEngine.java:224)

    &nbs= p;       at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

=

    &nbs= p;       at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

=

Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: = java.lang.RuntimeException: Element QName is null for InvalidIsbnFault!

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.emitStub(AxisServiceBasedMultiLanguageEmitter.java:299)

    &nbs= p;       at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGeneratio= nEngine.java:213)

    &nbs= p;       ... 2 more

Caused by: = java.lang.RuntimeException: Element QName is null for InvalidIsbnFault!

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1877)

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1808)<= /font>

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1559)

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1474)

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitte= r.java:692)

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:667)

    &nbs= p;       at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitte= r.emitStub(AxisServiceBasedMultiLanguageEmitter.java:274)

    &nbs= p;       ... 3 more

 

 

Should it matter, I am using Axis2 RC1, and also = tested it with the 10/29 1.1 Snapshot.  I am using the JDK 1.4.3 but also = tested with 1.5.  I am curious if anyone else has experienced this problem = and if this is a known bug.  I looked at the JIRA but didn’t see the = exact problem.

 

Thanks,

 

Brian

 

------=_NextPart_000_0251_01C6FBA7.010039A0--