From issues-return-32975-archive-asf-public=cust-asf.ponee.io@struts.apache.org Mon Jan 21 09:00:17 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 7CBE0180627 for ; Mon, 21 Jan 2019 09:00:16 +0100 (CET) Received: (qmail 46757 invoked by uid 500); 21 Jan 2019 08:00:15 -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 46747 invoked by uid 99); 21 Jan 2019 08:00:15 -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; Mon, 21 Jan 2019 08:00:15 +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 DF822C661B for ; Mon, 21 Jan 2019 08:00:14 +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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id tt4R9G_cG2o9 for ; Mon, 21 Jan 2019 08:00:13 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BB1D95F359 for ; Mon, 21 Jan 2019 08:00:13 +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 314ACE2687 for ; Mon, 21 Jan 2019 08:00:13 +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 B726B2567D for ; Mon, 21 Jan 2019 08:00:12 +0000 (UTC) Date: Mon, 21 Jan 2019 08:00:12 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4999) Can't get OgnlValueStack log even if enable logMissingProperties 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-4999?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1674773= 1#comment-16747731 ]=20 Lukasz Lenart commented on WW-4999: ----------------------------------- Yes, it has something to do with changes in OGNL as it throws {{OgnlExcepti= on}} instead of {{NoSuchMethodException}} > Can't get OgnlValueStack log even if enable logMissingProperties > ---------------------------------------------------------------- > > Key: WW-4999 > URL: https://issues.apache.org/jira/browse/WW-4999 > Project: Struts 2 > Issue Type: Bug > Components: Value Stack > Affects Versions: 2.5.17 > Reporter: Quincy Qu > Priority: Major > Fix For: 2.5.21, 2.6 > > > I'm in devMode, enabled=C2=A0logMissingProperties and expect to see missi= ng property warning in the log. I was surprised that I can't get the missin= g property log even if=C2=A0logMissingProperties is set true. The applicati= on run smoothly and skip the missing property - as expected though. > In another run, I enabled both=C2=A0logMissingProperties and=C2=A0throwEx= ceptionOnFailure. This time the application crash at the missing property a= nd I can get both logs and exception. > After I dive deeper using debugger, I convince myself the config is good,= since devMode and=C2=A0logMissingProperties are true at runtime in OgnlVal= ueStack. > I was confused, why we can't get missing property log without throwing Og= nlException?=C2=A0 > Are we able to enter handleOgnlException(String expr, boolean throwExcept= ionOnFailure, OgnlException e)=C2=A0 at all if=C2=A0throwExceptionOnFailure= is false, in which my expected log is written? -- This message was sent by Atlassian JIRA (v7.6.3#76005)