You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Endre Stølsvik (JIRA)" <ji...@apache.org> on 2006/10/16 14:30:38 UTC

[jira] Commented: (CONFIGURATION-232) ConfigurationUtils spews directly on std.err when exceptions

    [ http://issues.apache.org/jira/browse/CONFIGURATION-232?page=comments#action_12442582 ] 
            
Endre Stølsvik commented on CONFIGURATION-232:
----------------------------------------------

Turns out that it really wasn't at that point the Exception came jumping at me on std-err, but (I believe now, at least) in AbstractFileConfiguration, where there is three more of these e.printStackTrace()es; in load(URL), reload() and save(File).

While we're at it (!), there is also one instance in PListNode.addDateValue(String value). That complete these, I believe.

> ConfigurationUtils spews directly on std.err when exceptions
> ------------------------------------------------------------
>
>                 Key: CONFIGURATION-232
>                 URL: http://issues.apache.org/jira/browse/CONFIGURATION-232
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3 Final
>         Environment: n/a
>            Reporter: Endre Stølsvik
>            Priority: Minor
>
> ConfigurationUtils:
> public static URL locate(String base, String name) {
>   3 x :
>   catch ([Malformed|IO]URLException e) {
>     e.printStackTrace();
>   }
> }
> .. say no more.
> But while we're at it, the log-message (which, for some reason, actually goes to a logger, not uglily to the system) states "Configuration loaded from ..", which isn't true: The thing isn't loaded yet; it will be loaded.  "Loading configuration from .." would be better, or maybe "Will be loading configuration from ..". In addition, these log-lines could state what was the "base", and in particular the case where it loads from "base path", the whole line reads wrong.
> For example: "Loading configuration ["+name+"] from base path ["+base+"].." and similar for the other lines.

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