My Oracle Support Banner

How To Override "Error invoking class_name.Function_name" When Catching Exception In Java Code And Show Some Meaningful Exception Message To The User In ADF Mobile Application ? (Doc ID 1534749.1)

Last updated on OCTOBER 21, 2022

Applies to:

Oracle JDeveloper - Version to [Release Oracle11g]
Information in this document applies to any platform.


In ADF Mobile application, try-catch block is defined to handle exceptions as shown below :

When the application raises an exception, it displays "Error invoking method '<METHOD_NAME>' in '<PACKAGE>.<CLASS_NAME>' " from the associated java code class and method, but not the new thrown exception message as above ("Error with the server. Please try later.").

How to override this error invoking method '<METHOD_NAME>' in '<PACKAGE>.<CLASS_NAME>' " and show some meaningful exception message to the user ?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.