Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-750

org.apache.velocity.runtime.RuntimeInstance initialization is not ThreadSafe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2, 1.6.x
    • 1.6.x, 1.7, 2.0
    • Engine
    • None
    • Vista, Java 1.6

    Description

      Two threads call Velocity.evaluate() method.
      Call RuntimeInstance.parse() and requireInitialization() method.
      One thread trying make initialization, set "initializing" to true and the other thread does not wait until initialization is done and go on.
      At next line Parser parser = (Parser) parserPool.get() is NullPointerException thrown.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cenek.rauscher Cenek Rauscher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: