You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Hal Deadman (JIRA)" <ji...@apache.org> on 2006/12/12 18:40:22 UTC

[jira] Created: (CONFIGURATION-245) DatabaseConfiguration and JNDIConfiguration are eating exceptions

DatabaseConfiguration and JNDIConfiguration are eating exceptions
-----------------------------------------------------------------

                 Key: CONFIGURATION-245
                 URL: http://issues.apache.org/jira/browse/CONFIGURATION-245
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: Nightly Builds, 1.3 Final
            Reporter: Hal Deadman


DatabaseConfiguration and JNDIConfiguration and possibly others, really need to throw some sort of runtime exception to let the caller know the properties couldn't be read. 

-- 
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


[jira] Commented: (CONFIGURATION-245) DatabaseConfiguration and JNDIConfiguration are eating exceptions

Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/CONFIGURATION-245?page=comments#action_12461513 ] 
            
Oliver Heger commented on CONFIGURATION-245:
--------------------------------------------

Simply swallowing exceptions is certainly no good design. I agree that this should be changed.

I wonder however if we should always throw runtime exceptions when such an internal error occurs. Maybe it would be better to make this behavior configurable. If the default behavior was to just log the exception, we would keep compatibility with earlier versions, but allow our users to change this.

One way this could be achieved would be to enhance the existing event mechanism. In addition to normal configuration update events special error events could be generated. Interested parties could register themselves as error listeners at a configuration and would then be notified whenever a problem occurs.

What do you think, would such an approach make sense?

> DatabaseConfiguration and JNDIConfiguration are eating exceptions
> -----------------------------------------------------------------
>
>                 Key: CONFIGURATION-245
>                 URL: http://issues.apache.org/jira/browse/CONFIGURATION-245
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: Nightly Builds, 1.3 Final
>            Reporter: Hal Deadman
>
> DatabaseConfiguration and JNDIConfiguration and possibly others, really need to throw some sort of runtime exception to let the caller know the properties couldn't be read. 

-- 
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


[jira] Resolved: (CONFIGURATION-245) DatabaseConfiguration and JNDIConfiguration are eating exceptions

Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-245.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

The concept of error listeners was implemented. It is now possible for an interested client to register itself as an error listener at a configuration. It is then notified about internal errors. DatabaseConfiguration, JNDIConfiguration, and AbstractFileConfiguration use this new concept for reporting internal errors.

> DatabaseConfiguration and JNDIConfiguration are eating exceptions
> -----------------------------------------------------------------
>
>                 Key: CONFIGURATION-245
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-245
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: Nightly Builds, 1.3 Final
>            Reporter: Hal Deadman
>         Assigned To: Oliver Heger
>             Fix For: 1.4
>
>
> DatabaseConfiguration and JNDIConfiguration and possibly others, really need to throw some sort of runtime exception to let the caller know the properties couldn't be read. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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