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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2, 1.6.x
    • Fix Version/s: 1.6.x, 1.7, 2.0
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: