Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-234

GroovyScripEngine is broken for Threads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-4
    • None
    • None

    Description

      I just noticed that GroovyScriptEngine will not work in a multi-threaded system. This is because it reuses the same script object from the cache. This object may be running in another thread. The problem is with the scipts bindings and it's members. Scripts, the way they are designed, cannot be run in two threads at the same time (see javax.servlet.SingleThreadModel).

      I'm working on a fix for this problem (along with implementing translators and file extension mapping), so please assign this issue to me, or give me permissions to do this myself.

      Attachments

        Activity

          People

            spullara Sam Pullara
            troyh Troy Heninger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified