In JBoss 4.2.2 (on JDK5), I'm noticing this behavior. Is there a configuration or other way to prevent it?
If I have code like this:
try {
doSomething();
} catch (Exception e) {
throw new EJBException(e);
}
The resulting stack trace (when caught and logged) will be:
EJBException ....
at(.....
at(.....
caused by: NullPointerException
There is no stack trace for the NullPointerException. Is there a way to prevent that swallowing of the stack trace and to actually have the full stack trace as part of the caused by?