[ http://issues.apache.org/jira/browse/MUSE-82?page=comments#action_12431632 ] Dan Jemiolo commented on MUSE-82: ---------------------------------
Looks like the problem is in WsdlUtils.removeSchemaReferences( ) (I assume the string out-of-bounds isn't happening in WSDL4J. can you attach the WSDL you're using so we can take a look and see what convention you're using that isn't covered in the WSDL reading code? > wsdl2java Error information poor > -------------------------------- > > Key: MUSE-82 > URL: http://issues.apache.org/jira/browse/MUSE-82 > Project: Muse > Issue Type: Improvement > Components: Tooling - Code Generation > Affects Versions: 2.0.0 > Reporter: Steve Jerman > Assigned To: Andrew Eberbach > > If a schema 'include' is defined but does not exist, you get the following > error: > [ID = 'CodeGenFailed'] Code generation failed, see the exception information > below. > Caught an exception: [ID = 'FailedLoadingWSDL'] Got exception loading WSDL: > String index out of range: -1.. > java.lang.RuntimeException: [ID = 'FailedLoadingWSDL'] Got exception loading > WSDL: String index out of range: -1. > at > org.apache.muse.tools.generator.util.AbstractCommandLineApp.getWSDLDocument(AbstractCommandLineApp.java:91) > at org.apache.muse.tools.generator.Wsdl2Java.<init>(Wsdl2Java.java:94) > at org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:192) > Not helpful... > Suggest adding 'try/catch' around wsdlUtils.java line 206 and throw a more > instructive error. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
