Error formatting macro: snippet: java.lang.NullPointerException
Parameters
Error formatting macro: snippet: java.lang.NullPointerException
Extending the Interceptor
Error formatting macro: snippet: java.lang.NullPointerException
Examples
Error formatting macro: snippet: java.lang.NullPointerException
3 Comments
Alex Funk
See also http://cwiki.apache.org/confluence/display/WW/Exception+Configuration
shridhar upadhyaya
I found the following way to use the ExceptionInterceptor in my application:
public class ExceptionInterceptor extends ExceptionMappingInterceptor {
private Logger logger = Logger.getLogger(ExceptionInterceptor.class);
private ExceptionHandler exceptionHandler;
protected void publishException(ActionInvocation invocation, ExceptionHolder exceptionHolder)
}
I take the exceptionholder object and put it in the valuestack.
I configure this custom Interceptor in the interceptor.xml. I also created a Error.jsp to be invoked once this exceptionInterceptor traps an exception to display the exception stack trace
in a window.
Dave Newton
The exception and exceptionStack are already made available on the stack, thus on the error page the exception is mapped to--what additional benefit does this provide? See Exception Configuration for details.