I don't know why, but after a reboot, this problem seems to have gone away,
so it must have been environment.

On Tue, Apr 1, 2008 at 10:30 PM, Amila Suriarachchi <
[EMAIL PROTECTED]> wrote:

> Can you send the wsdl file, arguments you use and the whole stack trace?
>
> thanks,
> Amila.
>
>
> On Wed, Apr 2, 2008 at 12:35 AM, Dennis Sacks <[EMAIL PROTECTED]>
> wrote:
>
> > Okay, I'm thinking environment, java version or something else on my
> > machine, because I've tried other wsdl files including
> > Axis2SAmpleDocLit.wsdl from the axis2-1.3 samples and I still get the same
> > error from wsdl2java:
> >
> >
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
> >         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:1768)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(CodeGenerationEngine.java:341)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:286)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:105)
> >         ... 2 more
> >
> > Surely someone has encountered this before? I've tried using both jdk
> > 1.6 and 1.5, with the same results.
> >
> > Dennis
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.

Reply via email to