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

yangju (JIRA) jira-events at lists.jboss.org
Thu Mar 10 15:01:45 EST 2011


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

yangju commented on SEAMCATCH-48:
---------------------------------

Unfortunately, I cannot publish all my source code. But we did not do anything special here, You should be able to easily setup a project like this:
An ear deployed to jboss AS6
there is a war inside the ear. There is a weld managed bean as a front controller. One of the actions in the controller is invoked from a face page. That action through a NPE. See if that NPE can be intercepted by Seam Catch.

I see there is an example in the 3.0.0CR1 release. But that example seam-catch-example-basic-servlet is too trivial. Can you give a more jsf example? Maybe that is all I needed. Also, the seam catch documentation's section about integration could be more useful if it details how to integrate with jboss AS. I read it twice and still cannot understand the meaning of "integration". If I use jbossAs with weld, do I have to do anything to "integrate"? If so, what steps should I follow?

The idea of Seam Catch is great, IMHO. It would greatly reduce the Application developer's burden on exception handling and that is something I have been looking for for a long long time, well only it  works for me or only I know how to use it.


> 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