[ 
https://issues.apache.org/jira/browse/AXIS2-4734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Geetanjali updated AXIS2-4734:
------------------------------

    Attachment: ONIX_BookProduct_CodeLists.xsd

> Issue with schema import in the wsdl file
> -----------------------------------------
>
>                 Key: AXIS2-4734
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4734
>             Project: Axis2
>          Issue Type: Test
>          Components: adb
>         Environment: Test
>            Reporter: Geetanjali
>         Attachments: ONIX_BookProduct_CodeLists.xsd, 
> ONIX_BookProduct_Release2.1.xsd, ProductIdWebservice.wsdl, SymtioPayload.xsd
>
>
> Hi All,
> I am trying to import user defined and external schemas in a wsdl file. When 
> I try to import a schema which has a reference to an another external schema, 
> then wsdl does not compile and also wsdl2Java task give the following 
> exception. Please suggest how to resolve this issue. It is a blocker for me.
> Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>      [java]   at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
>      [java]   at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>      [java]   at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>      [java] Caused by: java.lang.RuntimeException: 
> java.lang.reflect.InvocationTargetException
>      [java]   at 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
>      [java]   at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>      [java]   ... 2 more
>      [java] Caused by: java.lang.reflect.InvocationTargetException
>      [java]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java]   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java]   at java.lang.reflect.Method.invoke(Method.java:597)
>      [java]   at 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
>      [java]   ... 3 more
>      [java] Caused by: org.apache.axis2.schema.SchemaCompilationException: 
> java.lang.NullPointerException
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:289)
>      [java]   at 
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
>      [java]   ... 8 more
>      [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)
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompiler.java:2473)
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2419)
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:399)
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:356)
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:352)
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:352)
>      [java]   at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
>      [java]   ... 9 more

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

Reply via email to