Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 607EF9FBD for ; Fri, 8 Jun 2012 08:37:59 +0000 (UTC) Received: (qmail 26132 invoked by uid 500); 8 Jun 2012 08:37:58 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 25852 invoked by uid 500); 8 Jun 2012 08:37:56 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 25829 invoked by uid 99); 8 Jun 2012 08:37:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 08:37:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 08:37:53 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id D286B572D; Fri, 8 Jun 2012 08:37:32 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 53381] NPE at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2963) Date: Fri, 08 Jun 2012 08:37:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: randd@lucierna.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=53381 --- Comment #2 from Lucierna --- Hi Konstantin yes to both questions. Aspectj uses lazy initialization and JreMemoryLeakPreventionListener is enabled Thanks! (In reply to comment #1) > The stacktrace mentions > > org.apache.catalina.loader.WebappClassLoader. > clearReferencesStaticFinal(WebappClassLoader.java:2034) > org.apache.catalina.loader.WebappClassLoader. > clearReferences(WebappClassLoader.java:1929) > org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java: > 1833) > > 1. So it happens during cleanup of static fields on web application > shutdown. It is one of those features to remedy memory leaks in stopped > applications. > > This particular cleanup can be turned off in Tomcat 6 by setting the > following system property to the value of false (e.g. in > conf/catalina.properties file): > > org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES > > See http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html > > Maybe this feature does not play well with > org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter > > Do you use some form of lazy initialization/loading of classes? > > > 2. Looking at WebappClassLoader.stop() line 1833, closing the JARs happens > later than this call to clearReferences(). So it is unclear why JARs appear > to be closed. > > To exclude bug 53225, a question: do you have > "JreMemoryLeakPreventionListener" in your server.xml? It should not be an > issue in 6.0.x - just confirming. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org