Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 84881 invoked from network); 12 Nov 2004 10:07:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Nov 2004 10:07:51 -0000 Received: (qmail 41656 invoked by uid 500); 12 Nov 2004 10:07:36 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 41591 invoked by uid 500); 12 Nov 2004 10:07:36 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 41573 invoked by uid 99); 12 Nov 2004 10:07:35 -0000 Received-SPF: pass (hermes.apache.org: domain of remy.maucherat@gmail.com designates 216.239.56.243 as permitted sender) Received: from [216.239.56.243] (HELO mproxy.gmail.com) (216.239.56.243) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 12 Nov 2004 02:07:35 -0800 Received: by mproxy.gmail.com with SMTP id q44so161807cwc for ; Fri, 12 Nov 2004 02:07:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=MFn4ElSbhMhkm3pUoJIgXo6ktwUwG6aEUVajYHyG/faO4NaLJhuJd16bESxtE9gi8w2PoKyE2qFaiY6QtSqta/uwYJjFKl0TWJL/kWepaKm/JEL6euyFH7ovDTxCS7/iybKThiI0gWC3TlNr2sfI43MvWYE//Rz6AdIIvs2KBRA= Received: by 10.11.118.39 with SMTP id q39mr6129cwc; Fri, 12 Nov 2004 02:07:27 -0800 (PST) Received: by 10.11.99.45 with HTTP; Fri, 12 Nov 2004 02:07:27 -0800 (PST) Message-ID: <6d959d48041112020761d39765@mail.gmail.com> Date: Fri, 12 Nov 2004 11:07:27 +0100 From: Remy Maucherat Reply-To: Remy Maucherat To: Tomcat Users List Subject: Re: Tomcat 5.5.4, Logging and the death of my friend localhost_log In-Reply-To: <5684A7E6FB10504393A2806C1F4C021003E0EE96@orion.qas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <5684A7E6FB10504393A2806C1F4C021003E0EE96@orion.qas.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Fri, 12 Nov 2004 09:55:20 -0000, Allistair Crossley wrote: > Hi, >=20 > I have some new information on this for my case. I created a small JSP th= at had a scriplet error and ran it. I am definately using 5.5.4 with Java 5= .0. In this case, I got the error stack trace in stdout. This used to come = out in localhost_log. That's fine, at least I got it. >=20 > However, there is an error produced by my application on startup that is = *not* being dumped anywhere, and I do not believe either that any amount of= log4j/commons configuration would get it because log4j/commons logging is = only useful where the developer chooses to notify the logging subsystem whi= ch is not runtime errors fromt the JRE. >=20 > This is part of the stack trace in 5.0.28's localhost_log >=20 > 2004-11-08 09:29:32 StandardContext[/iq]Exception sending context initial= ized event to listener instance of class com.qas.newmedia.intranet.iq.IQCon= textListener > java.lang.NullPointerException > at com.qas.newmedia.intranet.iq.logic.core.CoreLogic.getDepartmen= tsByCategory(CoreLogic.java:234) > at com.qas.newmedia.intranet.iq.IQContextListener.contextInitiali= zed(IQContextListener.java:86) > at org.apache.catalina.core.StandardContext.listenerStart(Standar= dContext.java:3805) > at org.apache.catalina.core.StandardContext.start(StandardContext= .java:4321) >=20 > Therefore a NullPointerException is being thrown in 5.5.4 but not being r= eported anywhere which is a little unhelpful for me :( >=20 > So I am back to my original question really ... how on earth would I get = this NPE logged by Tomcat 5.5.4. This should go to the logger category for the Context, logged as ERROR level, as it will be logged through the servlet context. Maybe there's a problem somewhere, but I find it hard to believe. You can look at the code in StandardContext.listenerStart, ApplicationContext.log and in ContainerBase.getLogger: this looks very straightforward. You can send me a test war if you think it doesn't work. --=20 xxxxxxxxxxxxxxxxxxxxxxxxx R=E9my Maucherat Developer & Consultant JBoss Group (Europe) S=E0RL xxxxxxxxxxxxxxxxxxxxxxxxx --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org