[jboss-jira] [JBoss JIRA] (AS7-2905) Reduce logging level on non-OFE management API user errors

Brian Stansberry (Resolved) (JIRA) jira-events at lists.jboss.org
Sat Dec 3 09:29:40 EST 2011


     [ https://issues.jboss.org/browse/AS7-2905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry resolved AS7-2905.
-----------------------------------

    Resolution: Done

    
> Reduce logging level on non-OFE management API user errors 
> -----------------------------------------------------------
>
>                 Key: AS7-2905
>                 URL: https://issues.jboss.org/browse/AS7-2905
>             Project: Application Server 7
>          Issue Type: Task
>          Components: Domain Management
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>             Fix For: 7.1.0.CR1
>
>
> A number of methods in OperationContext and similar places throw runtime exceptions when error conditions are detected that are really due to user mistakes (e.g. trying to add a resource that's already present.)  These are caught and logged at ERROR. It would be better if OperationFailedException were thrown, since those are only logged at DEBUG -- logging client request errors at ERROR in the server log is noisy and will anger admins.
> Unfortunately, OFE is a checked exception, so we can't throw it without making an incompatible API change that may break subsystems.
> Solution is to create an OperationFailedRuntimeException and throw that.  The logic that catches and handles OFE will do the same thing for OFRE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list