As a general rule, developers should always include exception handling in their code to catch and output error message details to help with troubleshooting. For example:
try { // some logic here } catch (Exception e) { System.out.println("Exception caught in mycomponent/mymethod: “ + e.getExplanation() + e.toString()); // depending on exception type, you may want a stack trace e.printStackTrace(); // return or retry as appropriate }
The sections below provide information about handling exceptions for different EAServer component modes.
A listing of commonly encountered server errors appears
in Chapter 5, “Common Error Messages.”