Issue1866049

classification
Title: Jython interpreter not thread safe when run using BSF
Type: Severity: normal
Components: Core Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: bflorian, fwierzbicki, zyasoft
Priority: normal Keywords:

Created on 2008-01-07.17:54:46 by bflorian, last changed 2014-05-22.02:34:11 by zyasoft.

Messages
msg2054 (view) Author: bflorian (bflorian) Date: 2008-01-07.17:54:46
The Jython interpreter is not thread safe, at least not when run using the Bean Scripting Framework from within an application server.  All of the interpreters seem to share the same PySystemState object. When multiple pages are requested at the same time the interpreters start stepping on one another, creating spurious errors.
msg5014 (view) Author: Jim Baker (zyasoft) Date: 2009-08-11.05:53:32
We probably need to create our own BSF engine and embed it, similar to
what we did for JSR 223 support. The existing engine
org.apache.bsf.engines.jython.JythonEngine is about 275 LOC, so it
should be a trivial effort.
msg8559 (view) Author: Jim Baker (zyasoft) Date: 2014-05-22.02:34:10
BSF 3 now uses JSR 223 (https://commons.apache.org/proper/commons-bsf/), so this looks like a non issue. We have good experience with JSR 223 against Jython, so I think it's safe to close this out now.
History
Date User Action Args
2014-05-22 02:34:11zyasoftsetstatus: open -> closed
resolution: out of date
messages: + msg8559
2013-02-26 18:52:02fwierzbickisetnosy: + fwierzbicki
2009-08-11 05:53:34zyasoftsetnosy: + zyasoft
messages: + msg5014
2008-01-07 17:54:46bfloriancreate