[seam-issues] [JBoss JIRA] Commented: (SEAMCATCH-48) HandlesException never got invoked in jboss AS 6 Final

Jason Porter (JIRA) jira-events at lists.jboss.org
Thu Mar 10 14:19:47 EST 2011


    [ https://issues.jboss.org/browse/SEAMCATCH-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587259#comment-12587259 ] 

Jason Porter commented on SEAMCATCH-48:
---------------------------------------

Hrm. Is your project somewhere I can get to, or maybe create a smaller one demonstrating this? The other times I've helped people it's typically something small that we both missed. 

> HandlesException never got invoked in jboss AS 6 Final
> ------------------------------------------------------
>
>                 Key: SEAMCATCH-48
>                 URL: https://issues.jboss.org/browse/SEAMCATCH-48
>             Project: Seam Catch
>          Issue Type: Bug
>         Environment: jboss AS 6 with seam 3 persistence, seam 3 Config, seam 3 internationalizarion, jsf 2
>            Reporter: yangju
>            Assignee: Jason Porter
>
> I have the following method in my exception handler class:
>  public void nullPointerHandler(@Handles(precedence =200) CaughtException<NullPointerException> event) {
>         log.error("Something bad happened: " + event.getException().getMessage());
>         event.handled();
>     }
> I throw an artificial NPE from my weld managed bean (jsf controller), but the exception seems to be handled first by JSF facesException handler and never reached to the seam catch handler.
> Is this a bug or did I do something wrong?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list