Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.5.20
-
JDK 1.8_0_191
Tomcat 9.0.12
Description
EmptyStackException in JSON plugin due to concurrency
Note: The issue was found in an app that was upgraded from version 2.3.34
Logs: logs.txt
I created a sample application that should help reproducing the error.
struts-json-example-master.zip
The error happened opening the app (localhost/struts-json-example) in 4 different browsers / sessions.
As a workaround I have overridden the JSONInterceptor so a new instance of JSONUtil is used with every request and the issue is not happening anymore. I suppose there is a performance cost with that change but for now it works.
Attachments
Attachments
Issue Links
- relates to
-
WW-4034 Allow to use custom JSONwriter
- Closed
- links to