forTEXT / catma

Computer Assisted Text Markup and Analysis
https://www.catma.de
GNU General Public License v3.0
88 stars 8 forks source link

jsonIter causes classloading and multithreading problems #205

Closed mpetris closed 4 years ago

mpetris commented 4 years ago

jsonIter is not fully threadsafe or at least it is hard to ensure threadsafety due to the use of a lot of static fields (e. g. JsonIterator.isStreamingEnabled). The classloading problem might be an incompatibility with the javassist version. Most of the times it disappears after a reboot. We're going to replace jsonIter with gson which seems to be easier to work with in multithreaded environments.

mpetris commented 4 years ago

seems to be related to https://github.com/json-iterator/java/issues/227