Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 86038 invoked from network); 14 Nov 2009 14:33:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Nov 2009 14:33:15 -0000 Received: (qmail 37128 invoked by uid 500); 14 Nov 2009 14:33:15 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 37064 invoked by uid 500); 14 Nov 2009 14:33:14 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 37053 invoked by uid 99); 14 Nov 2009 14:33:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2009 14:33:14 +0000 X-ASF-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pfarrell@pfarrell.com designates 70.184.242.241 as permitted sender) Received: from [70.184.242.241] (HELO www.pfarrell.com) (70.184.242.241) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2009 14:33:12 +0000 Received: by www.pfarrell.com (Postfix, from userid 1009) id 8474A31C422F; Sat, 14 Nov 2009 09:32:51 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on www.pfarrell.com X-Spam-Level: Received: from [172.16.4.72] (mrfdfwvn03.rd.dc.cox.cci [172.16.4.72]) by www.pfarrell.com (Postfix) with ESMTP id 0948431C40CF for ; Sat, 14 Nov 2009 09:32:51 -0500 (EST) Message-ID: <4AFEBF90.6090004@pfarrell.com> Date: Sat, 14 Nov 2009 09:32:48 -0500 From: Pat Farrell User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Log4J Users List Subject: Re: bizarre NPE exception References: <4AFD8C3D.9090602@pfarrell.com> <4AFDD432.7080004@iki.fi> <4AFDFA87.5020207@pfarrell.com> <4AFE9EFB.9030706@iki.fi> <4AFEB27D.1040000@iki.fi> In-Reply-To: <4AFEB27D.1040000@iki.fi> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Old-Spam-Status: No, score=-4.4 required=6.0 tests=ALL_TRUSTED,BAYES_00 autolearn=no version=3.2.5 Juha Laiho wrote: >> Which exact log4j version are you using? You are correct, 1.2.15 Hmmm, I thought I was using Sun's 1.6 but java -version java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu12) OpenJDK Server VM (build 14.0-b08, mixed mode) I'll switch to Sun's and see if that makes a difference > That being said, I'm somewhat at loss as to how a NullPointerException > would be thrown in this. Drilling down through the stack trace, the NPE > is initially thrown by System.arrayCopy, which is documented to throw it > when either source or destination arrays are null. > .... so, I feel I'm getting out of my depth: I don't see how either of > these could be null. While i haven't dove into the log4j code as you did, I too think this is more likely to be a log4j bug than in my calling code, just because I've kept adding more guards to make sure than none of the things I pass or use are null. More once I try the sun JVM Pat -- Pat Farrell http://www.pfarrell.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org