You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Boyce, James" <JB...@fnf.com> on 2004/06/29 22:14:41 UTC
AvalonLogSystem NullPointer
I searched the archive and found people with similar problems but none that
seem to be exactly what my problem is. I'm getting this:
java.lang.Exception: Unable to configure AvalonLogSystem :
java.lang.NullPointerException
I'm on a WinXP box, and have included the regular velocity and the
velocity-dep.jar files in my classpath.
I am also not extending VelocityServlet, and am using the singleton instance
in a class with static methods. When I do extend VelocityServlet,
everything works fine, Avalon init's and the templates are found. What I'm
wondering is why it only works when I extend VelocityServlet. I would
prefer to use it without extending this class, but can use it that way if I
must. I'm also running under WSAD, if that makes a difference.
Thoughts?? Here's more of the stack trace:
java.lang.Exception: Unable to configure AvalonLogSystem :
java.lang.NullPointerException
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
java.lang.Throwable.<init>(Throwable.java:54)
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
java.lang.Throwable.<init>(Throwable.java:68)
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
org.apache.velocity.runtime.log.AvalonLogSystem.init(AvalonLogSystem.java:92
)
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:1
27)
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance
.java:553)
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:226)
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:114)
[6/29/04 14:01:00:890 CDT] 76c276c2 SystemErr R at
org.apache.velocity.app.Velocity.init(Velocity.java:80)