Hi list,
WO 5.2.2 is giving me a really hard time, hiding exceptions thrown in
direct actions. I managed to isolate the problem to the following
provoking code:
public final WOComponent testWOExceptionPageAction() {
try {
throw new NullPointerException();
} catch (NullPointerException ex) {
logger.log(Level.WARNING, "about to return WOExceptionPage",
ex);
return new WOExceptionPage(context());
}
}
Instead of the Exception Page, I get the following response:
<html><head><title>Error</title></head><body>Your request produced an
error.</body></html>
This response is generated in WODirectActionRequestHandler (according to
a decompiler).
In this case, I get a stack trace in the log, but in many other cases I
don't.
Can anyone tell me why I can't get a sensible Exception page?