Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 10082 invoked from network); 15 Dec 2006 13:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2006 13:02:52 -0000 Received: (qmail 36816 invoked by uid 500); 15 Dec 2006 12:50:47 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 35756 invoked by uid 500); 15 Dec 2006 12:50:41 -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 34878 invoked by uid 99); 15 Dec 2006 12:50:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 04:50:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 22:38:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E475B71413D for ; Thu, 14 Dec 2006 22:38:23 -0800 (PST) Message-ID: <9817181.1166164703933.JavaMail.jira@brutus> Date: Thu, 14 Dec 2006 22:38:23 -0800 (PST) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Assigned: (AXIS2-1867) NullPointerException generating WSDL with anonymous simple types In-Reply-To: <29680443.1166003120976.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 [ http://issues.apache.org/jira/browse/AXIS2-1867?page=all ] Deepal Jayasinghe reassigned AXIS2-1867: ---------------------------------------- Assignee: Amila Chinthaka Suriarachchi > NullPointerException generating WSDL with anonymous simple types > ---------------------------------------------------------------- > > Key: AXIS2-1867 > URL: http://issues.apache.org/jira/browse/AXIS2-1867 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Affects Versions: nightly > Environment: Axis2 1.1.1-SNAPSHOT (nightly build), JDK 1.5.0_08 x64, Windows XP x64 > Reporter: Peter Runge > Assigned To: Amila Chinthaka Suriarachchi > > WSDL2Java is failing on a WSDL that has multiple anonymous simple types with a NullPointerException. > This may be related to issue AXIS2-1780, however this WSDL was tried with the latest nightly build (built 2006-12-13). > The following is output of the error with the nightly build. The same error occurs with Axis2 1.1. > Using AXIS2_HOME: c:\java\axis2-1.1.1-SNAPSHOT > Using JAVA_HOME: c:\java\jdk\jdk1.5.0_08-x64 > Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:52) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:49) > ... 3 more > Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException > at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:257) > at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:72) > ... 8 more > Caused by: java.lang.NullPointerException > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489) > at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488) > at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450) > at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950) > at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:909) > at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:864) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489) > at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488) > at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450) > at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950) > at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:883) > at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:866) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:499) > at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:336) > at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:248) > ... 9 more > It seems that removing one of the anonymous simple types allows the code to be generated without error. > The following WSDL was used (simplest form of original to reproduce bug): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- 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