Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF Exception handling (including RENDER RESPNSE PHASE)

837736Mar 13 2011 — edited Jul 9 2011
We are facing a scenario in which at times when trying to go to a page in a webcenter application user is redirected to a blank page with a status 200.

On checking log we see error being logged (error is related to a resource bundle not loaded properly in application class).
Basically , while trying to load resource bundle in the render response phase of ADF we can see exception in app logic and the user is redirected to a blank page . Though it is an exceptional scenario and should not happen in normal flow but how can we make sure that if anything like this occurs user is taken to a error page in application and not a blank page.

The page which the user gets is a blank page and the status code (checked using bugzila) is 200 .

Tried out the following without success :-

1. We have defined error pages in web.xml but the control does not go there
2. Tried defining a error page in the Unbounded task flow in lines of http://www.gebs.ro/blog/oracle/exception-handling-in-adf-11g/ bit does not work and still get the blank page
3. Tried extending the class AdfcExceptionHandler as suggested in the forums , 2146350 . The flow comes to the custom class but not able to handle the exception because the ADFExceptionHandler class supposedly handles exception before Render response phase . And the exception we are getting is in Render response phase.

Any help appreciated. We basicaly want to make sure in full proof manner that in case of any exception the user is taken to a application erro page and not a blank page or 500 internal server error page (which also comes at times but not able to reproduce it) . The error page should be shown for all the exception across phases including render response phase.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2011
Added on Mar 13 2011
6 comments
1,142 views