You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Geetanjali (JIRA)" <ji...@apache.org> on 2010/06/14 17:49:13 UTC
[jira] Updated: (AXIS2-4734) Issue with schema import in the wsdl
file
[ https://issues.apache.org/jira/browse/AXIS2-4734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geetanjali updated AXIS2-4734:
------------------------------
Attachment: SymtioPayload.xsd
ONIX_BookProduct_Release2.1.xsd
ProductIdWebservice.wsdl
Attached is the wsdl, schema : symtioPayload.xsd (which is user defined) symptioPayload imports the onix schema and onix schema inturn imports other onix schemas.
The problem is that the one of the imported Onix schema has a null namespace and that might be the root cause. I can't update the Onix schema, so wsdl2java target in the build should generate the classes even though the namespace in imported schema is null. I have read about this issue but couldn't figure out how to fix it. Can you please let me know in details about how to resolve this issue.
Thanks,
Geetanjali
> 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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org