Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4734

Issue with schema import in the wsdl file

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • adb
    • None
    • Test

    Description

      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

      Attachments

        1. ONIX_BookProduct_CodeLists.xsd
          779 kB
          Geetanjali
        2. ONIX_BookProduct_Release2.1.xsd
          231 kB
          Geetanjali
        3. ProductIdWebservice.wsdl
          3 kB
          Geetanjali
        4. SymtioPayload.xsd
          1 kB
          Geetanjali

        Activity

          People

            Unassigned Unassigned
            geetanjali.bahl@gmail.com Geetanjali
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: