Title: ArrayIndexOutOfBoundsException in PyStringMap
Type: behaviour Severity: major
Components: Library Versions: Jython 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jeff.allen, vigneshkumarsadasivam
Priority: normal Keywords:

Created on 2019-02-14.12:21:28 by vigneshkumarsadasivam, last changed 2019-02-18.22:41:54 by jeff.allen.

File name Uploaded Description Edit Remove
jython_error.log vigneshkumarsadasivam, 2019-02-14.12:21:27 Error Log
msg12346 (view) Author: Vigneshkumar Sadasivam (vigneshkumarsadasivam) Date: 2019-02-14.12:21:27
ArrayIndexOutOfBoundsException is thrown while calling from EASE scripting engine

- Load Python scripting engine
- Execute some scripts
- Exception will be thrown
- It is not reproducible always
msg12348 (view) Author: Jeff Allen (jeff.allen) Date: 2019-02-18.22:41:54
Might this be a concurrency problem?

The logic of org.python.core.PyStringMap.stringmap_keys seems to me to be thread-unsafe. It gets a collection size, to size the destination array, then iterates the collection on the assumption the size has not changed. This is only based on a cursory inspection of the method named. It would be worth questioning other methods of this class too.
Date User Action Args
2019-02-18 22:41:54jeff.allensetpriority: normal
nosy: + jeff.allen
messages: + msg12348
milestone: Jython 2.7.0 ->
2019-02-14 12:21:28vigneshkumarsadasivamcreate