Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
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.