[xwiki-users] Uncaught Exceptions
by Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Application Server: Tomcat 5.5
Xwiki version: 2.7.33656
I'm encountering several different exceptions that apparently go uncaught, and therefore get logged to Tomcat's standard out log. This causes the standard out log to get filled with a lot of garbage, even though the wiki seemingly runs fine.
An example:
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/xwikivars.vm]
...
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'hasAccessLevel' in class com.xpn.xwiki.api.XWiki threw exception java.lang.NullPointerException at /templates/xwikivars.vm[line 4, column 25]
I would really like to know if anyone can suggest a way to get these uncaught exceptions to be logged to a different file instead. I'm not seeing any way to do so with log4j etc.
Thanks,
Lenny