Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 34908 invoked from network); 23 Nov 2005 21:18:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Nov 2005 21:18:02 -0000 Received: (qmail 60877 invoked by uid 500); 23 Nov 2005 21:17:59 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 60803 invoked by uid 500); 23 Nov 2005 21:17:59 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 60791 invoked by uid 99); 23 Nov 2005 21:17:59 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2005 13:17:57 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 492B8E0 for ; Wed, 23 Nov 2005 22:17:36 +0100 (CET) Message-ID: <492077074.1132780656238.JavaMail.jira@ajax.apache.org> Date: Wed, 23 Nov 2005 22:17:36 +0100 (CET) From: "Pier Fumagalli (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON-1694) Error decommissioning component: org.apache.cocoon.components.store.impl.EHDefaultStore In-Reply-To: <1772185437.1132695941633.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1694?page=all ] Pier Fumagalli updated COCOON-1694: ----------------------------------- Attachment: patch.txt The previous patch wouldn't have fixed the problem in all cases: a race condition might have occurred between checking the status, and actually shutting down the CacheManager. This patch synchronizes on the Cache instance and prevents this from happening. > Error decommissioning component: org.apache.cocoon.components.store.impl.EHDefaultStore > --------------------------------------------------------------------------------------- > > Key: COCOON-1694 > URL: http://issues.apache.org/jira/browse/COCOON-1694 > Project: Cocoon > Type: Bug > Components: * Cocoon Core > Versions: 2.1.8 > Reporter: Pier Fumagalli > Attachments: patch.txt > > Every time Cocoon is shut down, I can see this exception: > [2005/11/22 21:38:34.063] WARN [manager] Error decommissioning component: org.apache.cocoon.components.store.impl.EHDefaultStore > java.lang.IllegalStateException: The cocoon-ehcache-1 Cache is not alive. > at net.sf.ehcache.Cache.checkStatus(Cache.java:713) > at net.sf.ehcache.Cache.dispose(Cache.java:618) > at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:382) > at org.apache.cocoon.components.store.impl.EHDefaultStore.dispose(EHDefaultStore.java:229) > at org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:306) > at org.apache.avalon.excalibur.component.DefaultComponentFactory.decommission(DefaultComponentFactory.java:356) > at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.dispose(ThreadSafeComponentHandler.java:165) > at org.apache.avalon.excalibur.component.ExcaliburComponentManager.dispose(ExcaliburComponentManager.java:623) > at org.apache.cocoon.components.CocoonComponentManager.dispose(CocoonComponentManager.java:509) > at org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:306) > at org.apache.cocoon.Cocoon.dispose(Cocoon.java:536) > at org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:306) > at org.apache.cocoon.servlet.CocoonServlet.disposeCocoon(CocoonServlet.java:1554) > at org.apache.cocoon.servlet.CocoonServlet.destroy(CocoonServlet.java:518) > at org.mortbay.jetty.servlet.ServletHolder.stop(Unknown Source) > at org.mortbay.jetty.servlet.ServletHandler.doStop(Unknown Source) > at org.mortbay.jetty.servlet.WebApplicationHandler.doStop(Unknown Source) > at org.mortbay.util.Container.stop(Unknown Source) > at org.mortbay.http.HttpContext.doStop(Unknown Source) > at org.mortbay.jetty.servlet.ServletHttpContext.doStop(Unknown Source) > at org.mortbay.jetty.servlet.WebApplicationContext.doStop(Unknown Source) > at org.mortbay.util.Container.stop(Unknown Source) > at org.mortbay.http.HttpContext.stop(Unknown Source) > at org.mortbay.http.HttpServer.doStop(Unknown Source) > at org.mortbay.util.Container.stop(Unknown Source) > at org.mortbay.jetty.Server$ShutdownHookThread.run(Unknown Source) > Any clue about what's going on? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira