This blog will give you an overview on how you can successfully deal with unhandled Runtime exceptions in an ADF application. This will give you an idea of: How to catch the unhandled exceptions. Write a separate log file with stacktrace and thread dumps. Redirect the user to an static error page #1. Catch unhandled exceptions : Create a class "MyExceptionHandler" which extends : oracle.adf.view.rich.context.ExceptionHandler. Override handleException() method. public void handleException(FacesContext facesContext, Throwable throwable, PhaseId phaseId) throws Throwable { // this method is going to create a separate file with stacktrace and thread dumps writeException(throwable); // redirect to error page redirectToErrorPage(facesContext); } Create a fo...
About anything and everything from my daily consulting life. ADF, Java, Weblogic, Unix shell scripting, Mobile technology..etc. etc.. The views expressed on this blog are my own and do not necessarily reflect the views of my employer.