java.lang.IllegalStateException: Cannot retrieve template as Velocity was not initialized. at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:972)

velocity-user | Charles Harvey III | 1 decade ago
  1. 0

    velocity-tools-1.2 merge template question

    velocity-user | 1 decade ago | Charles Harvey III
    java.lang.IllegalStateException: Cannot retrieve template as Velocity was not initialized. at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:972)
  2. 0

    velocity-tools-1.2 merge template question

    velocity-user | 1 decade ago | Charles Harvey III
    java.lang.IllegalStateException: Cannot retrieve template as Velocity was not initialized. at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:972)
  3. 0

    Spring Boot - Publication - Default Job 2088: Job result summary - Spring CI

    spring.io | 7 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'velocityAutoConfiguration': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot find template location: class path resource [does-not-exist/] (please add some templates, check your Velocity configuration, or set spring.velocity.checkTemplateLocation=false)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Boot - Publication - pom-fix 1: Build result summary - Spring CI

    spring.io | 6 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'velocityAutoConfiguration': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot find template location: class path resource [does-not-exist/] (please add some templates, check your Velocity configuration, or set spring.velocity.checkTemplateLocation=false)
  6. 0

    app isn't running as it requires templates as classpath resource

    GitHub | 2 years ago | philnate
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.velocity.VelocityAutoConfiguration': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot find template location: class path resource [templates/] (please add some templates, check your Velocity configuration, or set spring.velocity.checkTemplateLocation=false)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot retrieve template as Velocity was not initialized. at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:972)

      at org.apache.velocity.runtime.RuntimeSingleton.getTemplate()
    2. Apache Velocity
      Velocity.mergeTemplate
      1. org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:296)
      2. org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:441)
      2 frames