axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3229) NullPointerException in org.apache.axis2.schema.SchemaCompiler
Date Fri, 14 Jan 2011 17:01:52 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981825#action_12981825
] 

Andreas Veithen commented on AXIS2-3229:
----------------------------------------

@Tharindu: The schema document may be outdated, but that doesn't mean that the namespace URI
is outdated. BTW, if you look at the up-to-date version of the schema, it uses the exact same
namespace. Anyway, the "Namespaces in XML 1.0" spec [1] is the only authoritative document
that describes the usage of the "xml" prefix:

"The prefix xml is by definition bound to the namespace name http://www.w3.org/XML/1998/namespace.
It MAY, but need not, be declared, and MUST NOT be bound to any other namespace name. Other
prefixes MUST NOT be bound to this namespace name, and it MUST NOT be declared as the default
namespace."

Not sure though if that discussion really has something to do with the actual issue.

[1] http://www.w3.org/TR/REC-xml-names/

> NullPointerException in org.apache.axis2.schema.SchemaCompiler
> --------------------------------------------------------------
>
>                 Key: AXIS2-3229
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3229
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>         Environment: Windows XP, Eclipse 3.2.2, ANT 6.1
>            Reporter: Jason Polites
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: Exchange.asmx, exchange.wsdl, Messages.xsd, types.xsd, Types.xsd
>
>
> When running the WSDL2Java ANT task with 1.3 against the MS Exchange 2007 WSDL (and associated
XSD files) I get a null pointer:
>       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:265)
> 	      at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	      at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>       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:218)
>       		... 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.SchemaCompiler.compile(SchemaCompiler.java:221)
> 	      at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:80)
> 	      ... 8 more
>       Caused by: java.lang.NullPointerException
> 	      at org.apache.axis2.schema.SchemaCompiler.getXmlSchemaAttribute(SchemaCompiler.java:1727)
> 	      at org.apache.axis2.schema.SchemaCompiler.processAttribute(SchemaCompiler.java:1648)
> 	      at org.apache.axis2.schema.SchemaCompiler.processAttributes(SchemaCompiler.java:1007)
> 	      at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:981)
> 	      at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:914)
> 	      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:865)
> 	      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:518)
> 	      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:478)
> 	      at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1899)
> 	      at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1788)
> 	      at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:977)
> 	      at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:914)
> 	      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:865)
> 	      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:518)
> 	      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
> 	      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:302)
> 	      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:284)
> 	      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:284)
> 	      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:212)
> 	      ... 9 more
> WSDL and XSD are attached

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message