Ok, I've found the cause of the problem.
It seems to be a problem with Axis2 1.5 itself. I've tried to build a
service out of different wsdl files and got the same error every time -
also with a file originally generated by Axis2 once. I've switched to
version 1.4.1 and everything is fine now.
Greetings,
Tina
Hi everyone,
I try to generate a service out of my wsdl file. Unfortunately, I get
a exception I can't interpret.
Does anyone have an idea what could be the cause?
Greetings,
Tina
Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:159)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
at java.lang.String.substring(String.java:1938)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(CodeGenerationEngine.java:341)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:151)
... 2 more