Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 59362 invoked from network); 12 Dec 2007 17:34:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2007 17:34:15 -0000 Received: (qmail 80497 invoked by uid 500); 12 Dec 2007 17:34:04 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 80477 invoked by uid 500); 12 Dec 2007 17:34:04 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 80466 invoked by uid 99); 12 Dec 2007 17:34:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 09:34:04 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 12 Dec 2007 17:33:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51B1071422C for ; Wed, 12 Dec 2007 09:33:43 -0800 (PST) Message-ID: <22602585.1197480823331.JavaMail.jira@brutus> Date: Wed, 12 Dec 2007 09:33:43 -0800 (PST) From: "Dimuthu Gamage (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Updated: (AXIS2C-768) Null pointer exception in WSDL2C compiling schema when generating ADB In-Reply-To: <21265995.1195159423282.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 [ https://issues.apache.org/jira/browse/AXIS2C-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dimuthu Gamage updated AXIS2C-768: ---------------------------------- Attachment: case23.tar.gz Please check the latest svn for the fix. You can verify it from the nightly snapshot from http://people.apache.org/dist/axis2/nightly/ Here I have attached a test case for the given wsdl > Null pointer exception in WSDL2C compiling schema when generating ADB > --------------------------------------------------------------------- > > Key: AXIS2C-768 > URL: https://issues.apache.org/jira/browse/AXIS2C-768 > Project: Axis2-C > Issue Type: Bug > Components: wsdl2c tool > Affects Versions: Current (Nightly) > Environment: Windows XP > Reporter: Bill Mitchell > Attachments: case23.tar.gz > > > When I attempt to generate C bindings for the WSDL file below, the WSDL2C utility fails with a null pointer exception without generating any stub code whatsoever. > The exception trace is: > >java org.apache.axis2.wsdl.WSDL2C -or -d adb -wv 1.1 -u -uri service.wsdl > Retrieving document at 'service.wsdl'. > 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:278) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31) > Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:231) > ... 2 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50) > ... 3 more > Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException > at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:197) > at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:939) > at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:925) > at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1087) > at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1054) > at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:998) > at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:919) > at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:833) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:531) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:491) > at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1904) > at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1791) > at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1170) > at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1054) > at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:998) > at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:919) > at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:833) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:531) > at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:502) > at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:309) > at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:219) > at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:80) > ... 8 more > Caused by: java.lang.NullPointerException > at org.apache.axis2.schema.writer.CStructWriter.addPropertyEntries(CStructWriter.java:635) > at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:516) > at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:439) > at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:320) > at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:192) > ... 29 more > I receive this failure both with the WSDL2C released in Axis2-1.3 and in the current nightly build I downloaded yesterday. Of course, it is a little difficult to isolate what in the WSDL is causing the failure, as no stub code is generated that might hint at the problem area. The same WSDL is accepted by the Axis2 WSDL2Java utility, so the issue is specific to C code generation. As the WSDL2Java utility accepts the file, this suggests that the WSDL itself is valid. If -d none is specified on the command line, the WSDL2C utility runs to completion, so the issue is specific to the generation of the C data bindings. > The contents of service.wsdl are: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org