[
http://issues.apache.org/jira/browse/MUSE-82?page=comments#action_12431647 ]
Dan Jemiolo commented on MUSE-82:
---------------------------------
Andrew, please try and find out which of our sanity checks is not working,
because the following snippet that you added (in addSchemaImports) should seem
to handle this:
//
// This is to guard against imports that do not have a location
// such as imports in a WSDL types section that reference
// sibling schemas.
//
if (location.length() == 0)
continue;
createRelativePath( ) shouldn't throw unless it's an NPE.
> 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]