org.json.simple.parser.JSONParser is not thread safe

Steps to reproduce

http://juliusdavies.ca/json-simple-1.1.1-javadocs/org/json/simple/parser/JSONParser.html

Steps to reproduce:
1. have a slow pc running opencast
2. fire off multiple parallel requests to endpoint which parses Strings to JSONObjects (e.g. conflict checking, create events)

Actual Results:
Endpoint is unable to parse String to JSONObject, throwing various exceptions including ArrayIndexOutOfBoundsException and NoSuchElementException.

Expected Results:
Endpoint should parse String to JSONObject and proceed with method.

Workaround (if any):
have a fast pc run opencast

Activity

Show:
Stephen Marquard
October 19, 2017, 1:41 PM

PR has been merged into 3.x.

Fixed and reviewed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

duncan smith

Reporter

duncan smith

Severity

Incorrectly Functioning Without Workaround