Tags: application, argument, attempting, catch, debug, decided, developers, exception, generic, hence, hotspot, java, jvm, log, machine, root, stack, throw, trace, virtual
jvm argument to log exception stack trace?
I am attempting to debug an application where the developers decided to catch the root exception and throw a generic application exception. Hence the original exception is lost. Is there any arguement that can be passed to the JVM during startup that would tell the JVM's exception handler to write the root exception to standard out?
Leave a comment...
- 1 Comments
You should to fix the application.
An application may produce exceptions in the normal running of the application. If the application is catching the exception, the JVM would not know which one you didn't want to catch it.
You could try running the application in a debugger. In many debuggers you can trap on exception. As I my previous point you may need to get through a few irrelevant exceptions.
Another option is to decompile (e.g. jad) the application main class (one class should be enough) Change it and run with the changed class. You will then see the exception.#1; Tue, 03 Jul 2007 10:32:00 GMT