This content has been marked as final.
Show 4 replies
-
1. Re: RunTime Exception never gets caught by Seam in pages.xml
mmichalek.mmichalek.micros-retail.com Jun 20, 2008 8:36 PM (in response to infinity2heaven)Does Seam's debug setting control this?
-
2. Re: RunTime Exception never gets caught by Seam in pages.xml
infinity2heaven Jun 20, 2008 9:06 PM (in response to infinity2heaven)No. That's nothing to do with this. Like I said, I got this working a few days back.
-
3. Re: RunTime Exception never gets caught by Seam in pages.xml
infinity2heaven Jun 20, 2008 9:35 PM (in response to infinity2heaven)This is interesting, as I can recreate this.
My save method is
@FlushMode(value=FlushModeType.COMMIT) public void save() { FofPerformance fofPerformance = fofPerformanceDetail.getFofPerformance(); entityManager.merge(fofPerformance); //entityManager.flush(); facesMessages.add("Monthly Data updated successfully by "+fofPerformanceDetail.getUpdatedBy()); } }
If I comment uncomment entityManager.flush(), the opimtisticLockException doesn't propagate through pages.xml and I never get the error page. However without this, it works perfectly fine.
Any idea why?
-
4. Re: RunTime Exception never gets caught by Seam in pages.xml
ellis2323.lmallet.oxalya.com Jun 21, 2008 2:57 AM (in response to infinity2heaven)RunTime exceptions have a different behaviour than Checked Exceptions (inherit from Exception). There is an interceptor of RunTime Exceptions in Seam which generate Rollbacks. RunTime exceptions could be managed as checked Exceptions if there is a @ApplicationException annotation on the runtime class.
I'm probably offtopic...