Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 46260 invoked from network); 10 Dec 2005 09:33:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Dec 2005 09:33:32 -0000 Received: (qmail 51914 invoked by uid 500); 10 Dec 2005 09:33:30 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 51866 invoked by uid 500); 10 Dec 2005 09:33:29 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 51855 invoked by uid 99); 10 Dec 2005 09:33:29 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL 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; Sat, 10 Dec 2005 01:33:29 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 45663186 for ; Sat, 10 Dec 2005 10:33:08 +0100 (CET) Message-ID: <1138525303.1134207188246.JavaMail.jira@ajax.apache.org> Date: Sat, 10 Dec 2005 10:33:08 +0100 (CET) From: "Aaron Mulder (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Resolved: (GERONIMO-1200) HotDeployer gets IllegalStateExceptions during a non-hot deploy deploy of an app In-Reply-To: <543438682.1132365821331.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/GERONIMO-1200?page=all ] Aaron Mulder resolved GERONIMO-1200: ------------------------------------ Resolution: Fixed Fixed in HEAD (revision 355729) and 1.0 branch (revision 355730) > HotDeployer gets IllegalStateExceptions during a non-hot deploy deploy of an app > -------------------------------------------------------------------------------- > > Key: GERONIMO-1200 > URL: http://issues.apache.org/jira/browse/GERONIMO-1200 > Project: Geronimo > Type: Bug > Components: deployment > Versions: 1.0 > Environment: Win XP/1.4.2 > Reporter: Kevan Miller > Assignee: Aaron Mulder > Priority: Minor > Fix For: 1.0 > Attachments: HotDeploy.patch > > During a deploy of DayTrader, I get several (2 or 3) of the following warnings sent to STDOUT: > 19:27:12,259 WARN [DirectoryHotDeployer] Hot deployer unable to determine whether kernel is started > java.lang.IllegalStateException: Cannot retrieve the value for non-persistent attribute kernelFullyStarted when GBeanInstance is DESTROYED > at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:668) > at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:166) > at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.isServerRunning(DirectoryHotDeployer.java:176) > at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java:141) > at java.lang.Thread.run(Thread.java:534) > The problem must be in HotDeployer.isServerRunning(). It's getting a list of PersistentConfiguration GBeans and querying each one to see if it's active. Only when all are active is the server determined to be "active". During a deploy, there must be GBeans which are destroyed, probably as a replacement is created? (e.g. LocalAttributeManager). > I have a patch (will post shortly) that sets a boolean to true once a server is detected as "running". After it's set to true, we'll never check the GBeans again... Clearly we're in need of a better way of determining server "state", any bright ideas? However, the boolean fixes the problem at hand... -- 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