Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 56153 invoked from network); 2 Feb 2009 16:41:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 16:41:21 -0000 Received: (qmail 41459 invoked by uid 500); 2 Feb 2009 16:41:19 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 41428 invoked by uid 500); 2 Feb 2009 16:41:19 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 41417 invoked by uid 99); 2 Feb 2009 16:41:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 08:41:19 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 16:41:12 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LU1qt-0000VI-Na for dev@struts.apache.org; Mon, 02 Feb 2009 08:40:51 -0800 Message-ID: <21793068.post@talk.nabble.com> Date: Mon, 2 Feb 2009 08:40:51 -0800 (PST) From: stanlick To: dev@struts.apache.org Subject: Changing log level generates NPE MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: stanlick@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org I added a file appender last night and set all logging to DEBUG. Today I started getting a NullPointerException at runtime. I isolated the but to the XWorkMapPropertyAccessor class where public void setProperty(Map context, Object target, Object name, Object value) throws OgnlException { if (LOG.isDebugEnabled()) { LOG.debug("Entering setProperty("+context+","+target+","+name+","+value+")"); } does not test the concatenated args against null. I can avoid the bug by modifying my log4j.properties, but this was a real brainteaser to discover. Peace, Scott -- View this message in context: http://www.nabble.com/Changing-log-level-generates-NPE-tp21793068p21793068.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org