Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-643

WSDL2C does not support <any> elements, causes java.lang.reflect.InvocationTargetException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • wsdl2c tool
    • None
    • Nightly build (17th July '07), Windows XP

    Description

      When there is an any element:
      <any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="lax"/>
      within a type, the following exception is thrown:

      C:\axis2-bin\bin>wsdl2c -d adb -u -uri example.wsdl
      Using AXIS2_HOME: c:\axis2-bin
      Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_01
      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.WSDL2C.main(WSDL2C.java:31)
      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(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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.writer.CStructWriter.write(CStructWriter.java:243)
      at org.apache.axis2.schema.SchemaCompiler.writeSimpleType(SchemaCompiler.java:965)
      at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2492)
      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:871)
      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:212)
      at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:80)
      ... 8 more
      Caused by: java.lang.NullPointerException
      at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:298)
      at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:238)
      ... 16 more

      This happens both with and without "-d adb -u".

      Attachments

        1. example.wsdl
          2 kB
          Jamie Lyon

        Activity

          People

            Unassigned Unassigned
            aeonflame Jamie Lyon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: