Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 52545 invoked by uid 500); 8 Oct 2001 13:40:41 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 52521 invoked from network); 8 Oct 2001 13:40:41 -0000 From: "Christian Ribeaud" To: Subject: [winNT, tomcat 3.2.3, jdk1.3.0_01]this.getServletContext(); Date: Mon, 8 Oct 2001 15:35:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I have been trying to find out why I suddenly get a NullPointException = in the service() function with the following lines of code: ServletContext context =3D this.getServletContext(); (and any = varation) and why this: ServletContext context =3D config.getServletContext(); works fine in the init() function. Do I have forgotten something? Any = help would be gratefully appreciated. Have a nice day, christian