The title contains the entire question. I would be also grateful for a link to documentation holding an answer.
Asked
Active
Viewed 1,025 times
4
-
I think both places, assuming your server is websphere. – kosa Aug 12 '12 at 17:44
-
depends on how you are using the JVM. For the command line, it's stderr. For Tomcat, it would be the error log. For other environment, like application servers, it would also be some kind of a log file. You need to give more specifics to get a better answer. – Dmitry B. Aug 12 '12 at 17:47
-
Thanks, clarified the question. – Konrad Jamrozik Aug 12 '12 at 17:50
1 Answers
6
In Java unhandled exceptions perculate to the top of the thread in which they were thrown. Java allows you to install a thread-level uncaught exception handler. The behavior when there is no default exception handler specified, as far as I know, is not defined by the Java specification. Sun's JDK observed default behavior is to print the exception message and its stack trace to stderr.

Dmitry B.
- 9,107
- 3
- 43
- 64