JDK-8048933 : -XX:+TraceExceptions output should include the message
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-07-01
  • Updated: 2020-10-12
  • Resolved: 2014-07-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9 Other
8u270Fixed 9 b25Fixed openjdk8u272Fixed
Related Reports
Relates :  
Description
The tracing output of TraceExceptions includes the exception message in some of its uses; 
it would be very useful if the output would include it always.

For example, when tracking down ClassNotFoundExceptions seeing the classname wold be useful.

Exception <a 'java/lang/ClassNotFoundException'> (0x00007fffe228e1a0)
 thrown in interpreter method <{method} {0x00007fff8aa18530} 'loadClass' '(Ljava/lang/String;Z)Ljava/lang/Class;' in 'java/lang/Cl>
 at bci 70 for thread 0x0000000000423800

Comments
Fix Request (8u) I would like to backport this to 8u for parity with Oracle 8u271. The original patch applies cleanly.
30-07-2020

We can print the detail message in with the exception from the interpreter: how about: Exception <a 'java/lang/ClassNotFoundException': Queens> (0x00000000d7054d40) thrown in interpreter method <{method} {0x00007f31bb815410} 'run' '()Ljava/lang/Class;' in 'java/net/URLClassLoader$1'> at bci 72 for thread 0x00007f31d000b800 Exception <a 'java/lang/ClassNotFoundException': Queens> (0x00000000d7054d40) thrown in interpreter method <{method} {0x00007f31bb8154b0} 'run' '()Ljava/lang/Object;' in 'java/net/URLClassLoader$1'> at bci 1 for thread 0x00007f31d000b800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d7054f88) thrown [/scratch/cphillim/hg/rt.exception-message/src/share/vm/prims/jvm.cpp, line 1278] for thread 0x00007f31d000b800 Exception <a 'java/security/PrivilegedActionException': null> (0x00000000d7054f88) thrown in interpreter method <{method} {0x00007f31bb6cc3d0} 'doPrivileged' '(Ljava/security/PrivilegedExceptionAction;Ljava/secur> at bci 0 for thread 0x00007f31d000b800
01-07-2014