Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 67366 invoked from network); 18 Mar 2011 20:22:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Mar 2011 20:22:52 -0000 Received: (qmail 31500 invoked by uid 500); 18 Mar 2011 20:22:52 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 31375 invoked by uid 500); 18 Mar 2011 20:22:51 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 31362 invoked by uid 99); 18 Mar 2011 20:22:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 20:22:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 20:22:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E211B3B0AA7 for ; Fri, 18 Mar 2011 20:22:29 +0000 (UTC) Date: Fri, 18 Mar 2011 20:22:29 +0000 (UTC) From: "Rustam Abdullaev (JIRA)" To: java-dev@axis.apache.org Message-ID: <262066546.12656.1300479749922.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (AXIS2-3851) adb-codegen no longer accepts schemas without targetNamespace MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-3851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rustam Abdullaev updated AXIS2-3851: ------------------------------------ Attachment: AXIS2-3851.zip Please take a look at the attached file (AXIS2-3851.zip), running "mvn compile" will generate the original exception: [INFO] --- axis2-wsdl2code-maven-plugin:1.5.4:wsdl2code (default) @ AXIS2-3851 --- Retrieving document at 'C:\Projects\AXIS2-3851/src/wsdl/test.wsdl'. Retrieving schema at 'test1.xsd', relative to 'file:/C:/Projects/AXIS2-3851/src/wsdl/test.wsdl'. Retrieving schema at 'test2.xsd', relative to 'file:/C:/Projects/AXIS2-3851/src/wsdl/test1.xsd'. java.lang.NullPointerException at org.apache.axis2.schema.SchemaCompiler.isComponetExists(SchemaCompiler.java:2723) at org.apache.axis2.schema.SchemaCompiler.getParentSchemaFromIncludes(SchemaCompiler.java:2670) at org.apache.axis2.schema.SchemaCompiler.getParentSchemaFromIncludes(SchemaCompiler.java:2704) at org.apache.axis2.schema.SchemaCompiler.getParentSchema(SchemaCompiler.java:2644) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:925) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:552) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1874) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1081) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1017) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:563) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103) 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:597) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558) > adb-codegen no longer accepts schemas without targetNamespace > ------------------------------------------------------------- > > Key: AXIS2-3851 > URL: https://issues.apache.org/jira/browse/AXIS2-3851 > Project: Axis2 > Issue Type: Bug > Components: adb > Affects Versions: 1.4 > Environment: Java by sun 1.5.0.14 (amd64) > Eclipse SDK > Version: 3.2.1 > Build id: M20060921-0945 (Debian version: 3.2.1-4) > Reporter: Xavi Drudis Ferran > Assignee: Andreas Veithen > Fix For: 1.5.4, 1.6 > > Attachments: AXIS2-3851.zip, SchemaCompiler.java > > > With Axis1.3 I can generate code with an ant task for wsdl2java , from an wsdl file > that contains an schema with targetNamespace="" (to describe the namespaceless xml I get in a RESTful service). > With Axis1.4 I can no longer generate it. > There's an exception originating at : > [java] Caused by: java.lang.NullPointerException > [java] at org.apache.axis2.schema.SchemaCompiler.isComponetExists(SchemaCompiler.java:2723) > [java] at org.apache.axis2.schema.SchemaCompiler.getParentSchemaFromIncludes(SchemaCompiler.java:2670) > [java] at org.apache.axis2.schema.SchemaCompiler.getParentSchema(SchemaCompiler.java:2644) > > This is apparently because of commit > http://svn.apache.org/viewvc?view=rev&revision=627710 > Revision 627710 > Jump to revision: Previous Next > Author: amilas > Date: Thu Feb 14 11:30:40 2008 UTC (3 months, 3 weeks ago) > Log Message: when resolving schemas target namespaces must be matched > Aparently the namespace from the schema is null. > Maybe it should be "" or maybe the added condition should accept both namespaces being null. > I'm not sure what else has changed from Axis2 1.3 to 1.4 and whether fixing this would introduce > some other error with empty namespaces, but it seems a regression, hopefully easy to fix. I'm sorry > I can't try to fix it now. > (the function name is misspelt, it lacks an n before the last t of "component", btw, but that's irrelevant). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org