From issues-return-33025-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Wed Jan 30 16:13:04 2019 Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92C6510A3E for ; Wed, 30 Jan 2019 16:13:04 +0000 (UTC) Received: (qmail 1242 invoked by uid 500); 30 Jan 2019 16:13:04 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 1208 invoked by uid 500); 30 Jan 2019 16:13:04 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 1198 invoked by uid 99); 30 Jan 2019 16:13:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2019 16:13:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BA22CC0ADF for ; Wed, 30 Jan 2019 16:13:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7Ru9BWimLfTg for ; Wed, 30 Jan 2019 16:13:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 44F27623CA for ; Wed, 30 Jan 2019 16:13:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 738A3E0E04 for ; Wed, 30 Jan 2019 16:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 27D93243B7 for ; Wed, 30 Jan 2019 16:13:00 +0000 (UTC) Date: Wed, 30 Jan 2019 16:13:00 +0000 (UTC) From: "Eduardo Quintanilla (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (WW-5009) EmptyStackException in JSON plugin due to concurrency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-5009?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1675588= 9#comment-16755889 ]=20 Eduardo Quintanilla edited comment on WW-5009 at 1/30/19 4:12 PM: ------------------------------------------------------------------ The example is with the published (not-modified) Struts. The workaround was= applied in a local app with a custom Interceptor extending=C2=A0JSONInterc= eptor. Something like: {code:java} =C2=A0 =C2=A0 {code} was (Author: eduardo quintanilla): The example is with the published (not-modified) Struts. The workaround was= applied in a local app > EmptyStackException in JSON plugin due to concurrency > ----------------------------------------------------- > > Key: WW-5009 > URL: https://issues.apache.org/jira/browse/WW-5009 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - JSON > Affects Versions: 2.5.20 > Environment: JDK 1.8_0_191 > Tomcat 9.0.12 > Reporter: Eduardo Quintanilla > Priority: Critical > Labels: json, json-rpc > Fix For: 2.5.21, 2.6 > > Attachments: logs.txt, struts-json-example-master.zip > > > EmptyStackException in JSON plugin due to concurrency > Note: The issue was found in an app that was upgraded from=C2=A0version 2= .3.34=C2=A0 > Logs:=C2=A0[^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 d= ifferent browsers / sessions. > As a workaround I have overridden the JSONInterceptor so a new instance o= f JSONUtil is used with every request and the issue is not happening anymor= e. I suppose there is a performance cost with that change but for now it wo= rks. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)