[ 
https://issues.apache.org/jira/browse/VELOCITY-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998264#comment-14998264
 ] 

Philip Reimer edited comment on VELOCITY-866 at 11/10/15 8:50 AM:
------------------------------------------------------------------

Got the same issue.

Caused by: org.apache.velocity.exception.VelocityException: Failed to 
initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with 
the current runtime configuration.
        at 
org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:206)
        at 
org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255)
        at 
org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795)
        at 
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)
        at 
org.apache.velocity.runtime.RuntimeInstance.requireInitialization(RuntimeInstance.java:290)
        ... 45 more
Caused by: java.lang.RuntimeException: Error configuring Log4JLogChute : 
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at 
org.apache.velocity.util.ExceptionUtils.createWithCause(ExceptionUtils.java:67)
        at 
org.apache.velocity.util.ExceptionUtils.createRuntimeException(ExceptionUtils.java:45)
        at 
org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:133)
        at 
org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)
        at 
org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
        ... 49 more
Caused by: java.io.FileNotFoundException: velocity.log (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
        at 
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
        at org.apache.log4j.FileAppender.<init>(FileAppender.java:110)
        at 
org.apache.log4j.RollingFileAppender.<init>(RollingFileAppender.java:79)
        at 
org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:118)
        ... 51 more


Ubuntu 14.04.3 LTS 
java version "1.7.0_85"
OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-5ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)

it's working on my local dev machine though (Ubuntu 15.10, java 8)


was (Author: philipreimer):
Got the same issue.

Ubuntu 14.04.3 LTS 
java version "1.7.0_85"
OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-5ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)

it's working on my local dev machine though (Ubuntu 15.10, java 8)

> 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

Reply via email to