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

WSDL2Java fails during code gen for maxOccurs="1" minOccurs="1"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Trying to get the wsdl in AXIS2-184 bug working with ADB, am getting the following exception.

      Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: org.apache.axis2.databinding.schema.SchemaCompilationException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:104)
      at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
      at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
      Caused by: java.lang.RuntimeException: org.apache.axis2.databinding.schema.SchemaCompilationException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:122)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:75)
      ... 2 more
      Caused by: org.apache.axis2.databinding.schema.SchemaCompilationException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at org.apache.axis2.databinding.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:104)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:368)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processSchema(SchemaCompiler.java:281)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processElement(SchemaCompiler.java:225)
      at org.apache.axis2.databinding.schema.SchemaCompiler.process(SchemaCompiler.java:449)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processParticle(SchemaCompiler.java:418)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:343)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processSchema(SchemaCompiler.java:281)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processElement(SchemaCompiler.java:225)
      at org.apache.axis2.databinding.schema.SchemaCompiler.processElement(SchemaCompiler.java:204)
      at org.apache.axis2.databinding.schema.SchemaCompiler.compile(SchemaCompiler.java:139)
      at org.apache.axis2.databinding.schema.SchemaCompiler.compile(SchemaCompiler.java:100)
      at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:103)
      ... 3 more
      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(Unknown Source)
      at org.apache.axis2.databinding.schema.writer.JavaBeanWriter.process(JavaBeanWriter.java:215)
      at org.apache.axis2.databinding.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:99)
      ... 15 more

      Thanks,
      dims

      Attachments

        1. DLDataService.wsdl
          29 kB
          Davanum Srinivas

        Activity

          People

            ajith Ajith Ranabahu
            dims Davanum Srinivas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: