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

NullPointerException generating WSDL with anonymous simple types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • wsdl2c tool
    • None

    Description

      I am having the same issue as in AXIS2-1867, using the same test case with today's nightly build (2007-05-30), but getting a different stack trace:

      >wsdl2c.bat -uri test.wsdl -d adb -u
      Using AXIS2_HOME: S:\Java-Tools\Apache\axis2-2007-05-30
      Using JAVA_HOME: C:\Program Files\Java\jre1.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:256)
      at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
      at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)
      Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
      ... 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:47)
      ... 3 more
      Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
      at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:237)
      at org.apache.axis2.schema.SchemaCompiler.writeSimpleType(SchemaCompiler.java:955)
      at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(SchemaCompiler.java:2446)
      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:861)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
      at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
      at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
      at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
      at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
      at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
      at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
      at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
      at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:876)
      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:857)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
      at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:75)
      ... 8 more
      Caused by: java.lang.NullPointerException
      at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:293)
      at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:232)
      ... 30 more

      Attachments

        1. test.wsdl
          2 kB
          Martin Voelkle

        Activity

          People

            Unassigned Unassigned
            marv Martin Voelkle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: