You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "John Sisson (JIRA)" <de...@geronimo.apache.org> on 2005/03/23 23:32:22 UTC

[jira] Commented: (GERONIMO-615) RMIClassLoaderSpiImpl.normalizeCodebase(..) generates MalformedURLExceptions unnecessarily

     [ http://issues.apache.org/jira/browse/GERONIMO-615?page=comments#action_61432 ]
     
John Sisson commented on GERONIMO-615:
--------------------------------------

The code should be able to be changed so that it doesn't attempt to create a URL with a token that only contains one of the delimiter characters (e.g. a space character), as that results in the exception being generated.  

The code works as it is, but we should be striving to avoid the generation of exceptions in non error scenarios where possible.

> RMIClassLoaderSpiImpl.normalizeCodebase(..) generates MalformedURLExceptions unnecessarily
> ------------------------------------------------------------------------------------------
>
>          Key: GERONIMO-615
>          URL: http://issues.apache.org/jira/browse/GERONIMO-615
>      Project: Geronimo
>         Type: Bug
>     Reporter: John Sisson
>     Assignee: Gianny DAMOUR
>     Priority: Trivial

>
> org.apache.geronimo.system.rmi.RMIClassLoaderSpiImpl.normalizeCodebase(..) unnecessarily causes MalformedURLExceptions to be generated and caught.
> The exceptions are due to the delimiter tokens (e.g. a space character) being passed to the URL constructor.  
> This occurs because "true" flag being passed on the call to the StringTokenizer constructor in the body of the normalizeCodebase method(..).
> In my debug session, in one invocation of normalizeCodebase(..), over 40 MalformedURLExceptions were generated.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira