-
1. Re: Default Exception Handler doesn't work
gavin.king Mar 28, 2007 9:27 PM (in response to gingming)turn off debug mode
-
2. Re: Default Exception Handler doesn't work
gingming Mar 28, 2007 9:42 PM (in response to gingming)I don't have the debug mode turned on though. Also, how do I access the exception message from the pages.xml page? The handledException doesn't work.
-
3. Re: Default Exception Handler doesn't work
gavin.king Mar 28, 2007 11:22 PM (in response to gingming)You *definitely* have debug mode turned on.
<core:init debug="false"/>
And you have to use org.jboss.seam.handledException. -
4. Re: Default Exception Handler doesn't work
gingming Mar 28, 2007 11:27 PM (in response to gingming)Oh, true. Sorry. I was only checking the
<context-param> <param-name>org.jboss.seam.core.init.debug</param-name> <param-value>true</param-value> </context-param>
in the web.xml file. Thanks for your help.
So just to clarify, in order to retrieve the exception message, all the exception that I throw must extend org.jboss.seam.handledException? -
5. Re: Default Exception Handler doesn't work
gavin.king Mar 28, 2007 11:39 PM (in response to gingming)No, what i mean is:
<message>Unexpected Failure. Cause: #{org.jboss.seam.handledException.message}</message>
-
6. Re: Default Exception Handler doesn't work
gingming Mar 28, 2007 11:46 PM (in response to gingming)Thanks, that works!!!
Please remember to update the documentation in future release :D -
7. Re: Default Exception Handler doesn't work
bonaparte Oct 10, 2007 12:14 PM (in response to gingming)Hello,
This seems not to work when associated with jbPM.
I mean the resolution of#{org.jboss.seam.handledException.message}
doesn't work.
pages.xml<!-- Other Errors --> <exception> <end-conversation/> <redirect view-id="/error.jspx"> <message severity="error">#{org.jboss.seam.handledException.message}</message> </redirect> </exception>
pagesflow.xml<start-page name="editClient" view-id="/views/client/editClient.jspx"> <redirect/> <transition name="save" to="recapClient"> <action expression="#{editClient.saveClient}" /> </transition> </start-page>
When a technical error arises in saveClient method, the redirection to page /error.jpsw works well, but the resolution of the message doesn't work.
By the way, in the console, the following jBPM error is logged:[10/10/07 18:10:35:171 CEST] 00000024 SystemOut O ERROR - SeamPhaseListener.afterPhase(125) | uncaught exception java.lang.IllegalStateException: pageflow has not yet started at org.jboss.seam.core.Pageflow.getNode(Pageflow.java:156) at org.jboss.seam.core.Pageflow.getPage(Pageflow.java:189) at org.jboss.seam.core.Pageflow.validatePageflow(Pageflow.java:99) at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRestoreView(AbstractSeamPhaseListener.java:61) at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:95) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:92)
For information, i run under JBoss Seam-1.2.1.ga and jbpm-3.1.1
Thanks a lot for any tip on this subject. -
8. Re: Default Exception Handler doesn't work
igx89 Oct 17, 2007 4:55 PM (in response to gingming)I have the exact same problem, using Seam 2.0.0.CR2 and jbpm-jpdl 3.2.1.
It would be VERY nice if this could be fixed. -
9. Re: Default Exception Handler doesn't work
igx89 Oct 17, 2007 5:05 PM (in response to gingming)It seems that others have also encountered the same problem before, without resolution: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=112982
-
10. Re: Default Exception Handler doesn't work
igx89 Oct 22, 2007 3:27 PM (in response to gingming)JIRA issue created: http://jira.jboss.com/jira/browse/JBSEAM-2139