[
https://issues.apache.org/jira/browse/VELOCITY-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024720#comment-15024720
]
Philip Reimer edited comment on VELOCITY-866 at 11/24/15 4:00 PM:
------------------------------------------------------------------
When initializing VelocityEngine correctly as described here
(http://velocity.apache.org/engine/releases/velocity-1.7/developer-guide.html),
the default log location is replaced by your custom log file location as
desired and including the "velocity.properties" into your war file is *not*
needed anymore. For example, like this:
{code:java}
Velocity.setProperty(RuntimeConstants.RUNTIME_LOG,
"path_to_my_velocity_log_file");
Velocity.init();
{code}
was (Author: philipreimer):
When initializing VelocityEngine correctly as described here
(http://velocity.apache.org/engine/releases/velocity-1.7/developer-guide.html),
the default log location is replaced by your custom log file location as
desired. For example, like this:
{code:java}
Velocity.setProperty(RuntimeConstants.RUNTIME_LOG,
"path_to_my_velocity_log_file");
Velocity.init();
{code}
> 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: [email protected]
For additional commands, e-mail: [email protected]