Page tree
Skip to end of metadata
Go to start of metadata

Capturing Uncaught Exceptions

One important note on XPages custom error pages. Never use XPages events on an error page. For example, a Section control on an XPage adds events to expand / collapse the section. The section will work as normal if the error page is triggered from a full refresh. But if the error page is triggered from a partial refresh, the XSP Command Manager only prints HTML to the browser, it doesn't attach events. So your section will not work. Error is the custom error page in this application and gives an example of an XPage with only standard HTML.

Requires ExtLib

NOTE: The project requires the XPages Extension Library to be installed on the server.

M2 - M5 included versions that did not require the XPages Extension Library. However, I do not recommend XPages development without using the XPages Extension Library - it is a significantly weaker subset of functionality.

Upgrade Notes

Java error logging calls will need amending for when migrating to 6.0.x. All OpenLogItem static calls have been replaced with com.paulwithers.openLog.OpenLogUtil methods.

Variants of OpenLogItem.logError() and OpenLogItem.logEvent() need changing to OpenLogUtil.logError() and OpenLogUtil.logEvent(). Any other method calls to OpenLogItem will need amending to OpenLogUtil.getOpenLogItem(). Using DDE's Search functionality will allow a “find and replace”.

SSJS error / event logging requires no amendments.

 

1 Comment

    1. You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.