From issues-return-33086-archive-asf-public=cust-asf.ponee.io@struts.apache.org Tue Feb 5 11:09:06 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 65D7C18067C for ; Tue, 5 Feb 2019 12:09:06 +0100 (CET) Received: (qmail 20385 invoked by uid 500); 5 Feb 2019 11:09:05 -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 20375 invoked by uid 99); 5 Feb 2019 11:09:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2019 11:09:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EB2D5C2964 for ; Tue, 5 Feb 2019 11:09:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id V0AJ8G2QFQiR for ; Tue, 5 Feb 2019 11:09:03 +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 EFFD96243D for ; Tue, 5 Feb 2019 11:09:02 +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 B5925E26F3 for ; Tue, 5 Feb 2019 11:09:01 +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 2A60A24419 for ; Tue, 5 Feb 2019 11:09:01 +0000 (UTC) Date: Tue, 5 Feb 2019 11:09:01 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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=3D1676068= 7#comment-16760687 ]=20 ASF subversion and git services commented on WW-5009: ----------------------------------------------------- Commit 0323795d67ae4fa1c9964e7cf5c0865f2deb250d in struts's branch refs/hea= ds/struts-2-5-x from Aleksandr Mashchenko [ https://gitbox.apache.org/repos/asf?p=3Dstruts.git;h=3D0323795 ] WW-5009 EmptyStackException in JSON plugin due to concurrency > 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 > Assignee: Aleksandr Mashchenko > 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)