[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2595) Exception handling - Never swallow an exception

Gavin King (JIRA) jira-events at lists.jboss.org
Sat Feb 16 04:51:26 EST 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2595?page=comments#action_12399646 ] 
            
Gavin King commented on JBSEAM-2595:
------------------------------------

How is it *ever* correct to show a stack trace in the browser in a production system?

This might be OK during development, but it is not OK in production.

> Exception handling - Never swallow an exception
> -----------------------------------------------
>
>                 Key: JBSEAM-2595
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2595
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Core
>            Reporter: Shane Bryzak
>             Fix For: 2.1.0.GA
>
>
> For example, if an action throws NPE, the exception handler checks
> what is defined in pages.xml. If no handler is defined,
> SeamPhaseListener swallows the exception after printing it in the log.
> This is a bad strategy, as most users start with no exception handling
> defined and no pages.xml, yet they don't see their exceptions on the
> page. We need SOME default handler, even if no pages.xml is present.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list