[
https://issues.apache.org/jira/browse/AXIS2-3229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070163#comment-13070163
]
Nalin Asawa edited comment on AXIS2-3229 at 7/24/11 1:10 PM:
-------------------------------------------------------------
Tharindu,
I am facing the namespace problem as below
Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find the
attribute {http://www.w3.org/XML/1998/namespace}lang from the parent schema http
://schemas.microsoft.com/exchange/services/2006/types
at org.apache.axis2.schema.SchemaCompiler.processAttribute(SchemaCompile
r.java:1828)
at org.apache.axis2.schema.SchemaCompiler.processAttributes(SchemaCompil
er.java:1185)
You have given a patch to resolve the error, but I do not know how to include
the patch.
I have used axis2-1.5.5 as well as axis2-1.6.0 but facing the same problem.
>From WSDL i am unable to generate my java classes. Please help in this case
>ASAP.
Thanks and Regards,
Nalin.
was (Author: nalin_axis):
Tharindu,
I am facing the namespace problem as below
Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find the
attribute {http://www.w3.org/XML/1998/namespace}lang from the parent schema http
://schemas.microsoft.com/exchange/services/2006/types
at org.apache.axis2.schema.SchemaCompiler.processAttribute(SchemaCompile
r.java:1828)
at org.apache.axis2.schema.SchemaCompiler.processAttributes(SchemaCompil
er.java:1185)
You have given a patch to resolve the error, but I do not know how to include
the patch.
I have used 1.5.5 as well as 1.5.6 but facing the same problem.
>From WSDL i am unable to generate my java classes. Please help in this case
>ASAP.
Thanks and Regards,
Nalin.
> 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: Andreas Veithen
> Priority: Minor
> Fix For: 1.6.0
>
> Attachments: AXIS-3229.patch, Exchange.asmx, Messages.xsd, Types.xsd,
> axis2_problem.JPG, exchange.wsdl, 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]