Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 56849 invoked from network); 15 Feb 2005 09:59:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Feb 2005 09:59:00 -0000 Received: (qmail 14693 invoked by uid 500); 15 Feb 2005 09:58:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 14625 invoked by uid 500); 15 Feb 2005 09:58:56 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 14610 invoked by uid 99); 15 Feb 2005 09:58:56 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 10.21.96-84.rev.gaoland.net (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Feb 2005 01:58:55 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id BE959347A3 for ; Tue, 15 Feb 2005 11:01:49 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26963-05 for ; Tue, 15 Feb 2005 11:01:47 +0100 (CET) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 15E9034795 for ; Tue, 15 Feb 2005 11:01:47 +0100 (CET) Message-ID: <4211C7D9.6020008@apache.org> Date: Tue, 15 Feb 2005 10:58:49 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: cocoon-reload bug References: <42117D28.5070201@apache.org> In-Reply-To: <42117D28.5070201@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Stefano Mazzocchi wrote: > latest checkout from 2.2, turn "allow-reload" true in web.xml and when > I hit a page with 'cocoon-reload=true' I get an IllegalStateException: > > The cocoon-ehcache-4 Cache is not alive. > > which goes away as soon as I reload it. > > I can't be the only one hitting this.... how do you guys develop on > cocoon without reloading? I hit this also a few weeks ago and invistaged a bit: the problem comes from EH's CacheManager which is a singleton that holds all caches (only one for Cocoon). When Cocoon is reloaded, CacheManager.shutdown() [1] is called which invalidates the cache instance. I suspect a race condition where the cache is still used when shutdown() has already been called. I hadn't time to investigate further though. Sylvain [1] http://cvs.sourceforge.net/viewcvs.py/ehcache/ehcache/src/java/net/sf/ehcache/CacheManager.java?rev=1.21&view=auto -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }