org.json.simple.parser.JSONParser is not thread safe
Steps to reproduce
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)
Endpoint is unable to parse String to JSONObject, throwing various exceptions including ArrayIndexOutOfBoundsException and NoSuchElementException.
Endpoint should parse String to JSONObject and proceed with method.
Workaround (if any):
have a fast pc run opencast
PR has been merged into 3.x.