You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Andrew Eberbach (JIRA)" <ji...@apache.org> on 2006/09/01 10:24:23 UTC

[jira] Commented: (MUSE-82) wsdl2java Error information poor

    [ http://issues.apache.org/jira/browse/MUSE-82?page=comments#action_12432093 ] 
            
Andrew Eberbach commented on MUSE-82:
-------------------------------------

I think taking out lines 304-313 in FileUtils:

        //
        // remove any .. reference by taking off the last section/ of 
        // the original path
        //
        if (relativePath.startsWith("../"))
        {
            int slash = originalPath.lastIndexOf('/');
            originalPath = originalPath.substring(0, slash);
            relativePath = relativePath.substring(3);
        }

Would do the trick. I'm not sure why this is even in there since it doesn't handle cases like ../.. and the reason we were getting the out of bounds exception was because the relativePath had a .. but the originalPath was the WSDL file... which didn't have a /.

> 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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org