...
Printing the stack trace can also result in unintentionally leaking information about the structure and state of the process to an attacker. When a Java program that is run within a console terminates because of an uncaught exception, the exception's message and stack trace are displayed on the console; the stack trace may itself leak contain sensitive information about the program's internal structure. Consequently, command-line programs any program that may be run on an untrusted user's console must never abort because of due to an uncaught exception.
Noncompliant Code Example (Leaks from Exception Message and Type)
...