[ https://issues.apache.org/jira/browse/VELOCITY-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998427#comment-14998427 ]
Philip Reimer commented on VELOCITY-866: ---------------------------------------- im my case, velocity is used from within a webapp running on a tomcat. it seems that velocity cannot be initialised because it does not have permission to write "velocity.log" I tried to override the default setting "runtime.log = velocity.log" by providing Properties when initialising VelocityContext in my code. That did not have any effect. The properties were being ignored. The only thing that worked was copying "velocity.properties" from velocity.jar to "WEB-INF/classes/org/apache/velocity/runtime/defaults/velocity.properties" and changing the setting of "runtime.log" to e.g. "/tmp/velocity.log" > org.apache.velocity.runtime.RuntimeInstance Null Pointer at parserpool > ---------------------------------------------------------------------- > > Key: VELOCITY-866 > URL: https://issues.apache.org/jira/browse/VELOCITY-866 > Project: Velocity > Issue Type: Bug > Components: Engine > Affects Versions: 1.7 > Environment: Linux, Java 1.7 > Reporter: Umang Kedia > Priority: Critical > > Getting null pointer at parserpool.get() > Caused by: java.lang.NullPointerException > at > org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1198) > at > org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1181) > at > org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1297) > at org.apache.velocity.app.Velocity.evaluate(Velocity.java:254) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org