Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 48615 invoked from network); 30 Oct 2006 06:50:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 06:50:39 -0000 Received: (qmail 72309 invoked by uid 500); 30 Oct 2006 06:50:43 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 72304 invoked by uid 500); 30 Oct 2006 06:50:43 -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 72293 invoked by uid 99); 30 Oct 2006 06:50:42 -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 22:50:42 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of davanum@gmail.com designates 66.249.82.228 as permitted sender) Received: from [66.249.82.228] (HELO wx-out-0506.google.com) (66.249.82.228) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Oct 2006 22:50:30 -0800 Received: by wx-out-0506.google.com with SMTP id s8so1152179wxc for ; Sun, 29 Oct 2006 22:50:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OhEjqxmyfwbLOyItPGhssV5bOXBvLhfH4HSDAktq5Kj8mRPSfXlxnvw12drGLt5S/5jI86FnsC+MWZ/JzgjCcWMPFL3KHu9lX9u4zJss4mR8cG7DQ3oPWOD5LFHKR3BjSLMVqw8Nz+8GaQdNRLzeORo9ilCac2xFE64LEWRFrFE= Received: by 10.70.115.17 with SMTP id n17mr4289064wxc; Sun, 29 Oct 2006 22:50:09 -0800 (PST) Received: by 10.70.94.6 with HTTP; Sun, 29 Oct 2006 22:50:09 -0800 (PST) Message-ID: <19e0530f0610292250v11695cf7la478118fda1efaa6@mail.gmail.com> Date: Mon, 30 Oct 2006 01:50:09 -0500 From: "Davanum Srinivas" Reply-To: dims@apache.org To: axis-user@ws.apache.org Subject: Re: Axis2 1.1 Code Generation Problem? In-Reply-To: <026201c6fbde$8e721330$0c01a8c0@nail> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061030041737.93019.qmail@web57204.mail.re3.yahoo.com> <026201c6fbde$8e721330$0c01a8c0@nail> X-Virus-Checked: Checked by ClamAV on apache.org Brian, there were problems with all 3 wsdl's. Somehow sneaked in. Fixed all 3 and added more locations where we throw informative exceptions. Please get a nightly build in another couple of hours. thanks, dims On 10/29/06, axis2@coxco.com wrote: > Here are the standard Axis2 wsdl's which have the same problem as the new > one I am creating. > > Thanks for the help. > > Brian > > > -----Original Message----- > From: Matthew Hannay [mailto:matt_hannay1@yahoo.com.au] > Sent: Sunday, October 29, 2006 11:18 PM > To: axis-user@ws.apache.org > Subject: Re: Axis2 1.1 Code Generation Problem? > > Can you post your WSDL? > I can have a look at it. Are you using wsdl 1.1 or 2.0 > > Matt > --- "C. Brian Cox" wrote: > > > 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! > > > > at > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEn > > 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.AxisServiceBasedMultiLanguageEmitter.e > > > mitStub(AxisServiceBasedMultiLanguageEmitter.java:299) > > > > at > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEn > > gine.java:213) > > > > ... 2 more > > > > Caused by: java.lang.RuntimeException: Element QName > > is null for > > InvalidIsbnFault! > > > > at > > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.g > > > etFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1877) > > > > at > > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.g > > > etFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1808) > > > > at > > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.g > > > enerateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1559) > > > > at > > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.l > > > oadOperations(AxisServiceBasedMultiLanguageEmitter.java:1474) > > > > at > > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.c > > > reateDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java > > :692) > > > > at > > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.w > > > riteCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:667) > > > > at > > > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.e > > > mitStub(AxisServiceBasedMultiLanguageEmitter.java:274) > > > > ... 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 > > > > > > > > > > > > > > Send instant messages to your online friends http://au.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org