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

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

The last stack trace I see:
11:54:26,967 ERROR [STDERR] Caused by: java.lang.NullPointerException: 
artifical NPE

11:54:26,968 ERROR [STDERR]     at 
com.pearson.epen.controller.UMLockingController.search(UMLockingController.java:165)

11:54:26,968 ERROR [STDERR]     at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

11:54:26,969 ERROR [STDERR]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

11:54:26,970 ERROR [STDERR]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

11:54:26,971 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Unknown 
Source)

11:54:26,972 ERROR [STDERR]     at 
com.sun.el.parser.AstValue.invoke(AstValue.java:234)

11:54:26,973 ERROR [STDERR]     at 
com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)

11:54:26,974 ERROR [STDERR]     at 
org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)

11:54:26,974 ERROR [STDERR]     at 
org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)

11:54:26,975 ERROR [STDERR]     at 
com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:102)

11:54:26,976 ERROR [STDERR]     at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:84)

11:54:26,977 ERROR [STDERR]     ... 33 more

> 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
_______________________________________________
seam-issues mailing list
seam-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to