The environment is a Java program deployed in WildFly 11.0.0.Final and a terminal window that started standalone.sh
and remains open showing the output.
Explicit output such as PrintStream#println
and Throwable#printStackTrace
is printed as expected, but when runtime exceptions such as ArrayIndexOutOfBoundsException
are thrown which naturally are not caught and thus not explicitly printed, nothing is printed. Right now I am forced to catch runtime exceptions and print them, which obviously is bothersome.
Is there a way to make WildFly print the stack trace of runtime exceptions automatically as one would expect it to do?