axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith Harshana Ranabahu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-343) WSDL2Java fails during code gen for maxOccurs="1" minOccurs="1"
Date Tue, 20 Dec 2005 14:17:31 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-343?page=comments#action_12360917 ] 

Ajith Harshana Ranabahu commented on AXIS2-343:
-----------------------------------------------

The cause of this issue is a scoping problem in the code generators element handling. It is
fixed now but needs a bit of testing before closing down the issue

> WSDL2Java fails during code gen for maxOccurs="1" minOccurs="1"
> ---------------------------------------------------------------
>
>          Key: AXIS2-343
>          URL: http://issues.apache.org/jira/browse/AXIS2-343
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>     Reporter: Davanum Srinivas
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: DLDataService.wsdl
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message