Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 50503 invoked from network); 8 Jul 2005 16:48:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2005 16:48:22 -0000 Received: (qmail 7879 invoked by uid 500); 8 Jul 2005 16:48:15 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 7833 invoked by uid 500); 8 Jul 2005 16:48:14 -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 7820 invoked by uid 99); 8 Jul 2005 16:48:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 09:48:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [64.14.202.141] (HELO mgd.gluecode.com) (64.14.202.141) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 09:48:13 -0700 Received: from [192.168.15.101] (68-171-62-46.vnnyca.adelphia.net [68.171.62.46]) (authenticated bits=0) by mgd.gluecode.com (8.12.10/8.12.10) with ESMTP id j68GlJCW002802 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Fri, 8 Jul 2005 09:47:19 -0700 Mime-Version: 1.0 (Apple Message framework v730) In-Reply-To: <1427178829.1120838833438.JavaMail.jira@ajax.apache.org> References: <1427178829.1120838833438.JavaMail.jira@ajax.apache.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1A1A8B4E-66E1-41EC-896C-1C26F03DEE32@iq80.com> Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: [jira] Updated: (GERONIMO-729) Startup tries to start failed service? Date: Fri, 8 Jul 2005 09:48:18 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.730) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Aaron, What is the first stack trace you get. That will help find the bad logic in the state machine. At the point of the first failure, we should be cleaning up and exiting from the attempFullStart method. -dain On Jul 8, 2005, at 9:07 AM, Aaron Mulder (JIRA) wrote: > [ http://issues.apache.org/jira/browse/GERONIMO-729?page=all ] > > Aaron Mulder updated GERONIMO-729: > ---------------------------------- > > Description: > If you start the server and Jetty can't bind to it's port, you get > a variety of exceptions from Jetty, followed by: > > 12:04:06,655 WARN [GBeanSingleReference] Exception occured while > attempting to fully start: > objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/ > apache/geronimo/ > Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector > java.lang.IllegalStateException: Cannot transition to running state > from failed > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.setStateInstance( > GBeanInstanceState.java:496) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( > GBeanInstanceState.java:351) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start > (GBeanInstanceState.java:111) > at org.apache.geronimo.gbean.runtime.GBeanInstance.start > (GBeanInstance.java:486) > at > org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStar > t(GBeanSingleReference.java:154) > at > org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded > (GBeanSingleReference.java:127) > at > org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget > (AbstractGBeanReference.java:242) > at org.apache.geronimo.gbean.runtime.GBeanSingleReference > $1.running(GBeanSingleReference.java:163) > at > org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEven > t(BasicLifecycleMonitor.java:155) > at > org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300 > (BasicLifecycleMonitor.java:38) > at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor > $RawLifecycleBroadcaster.fireRunningEvent > (BasicLifecycleMonitor.java:231) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( > GBeanInstanceState.java:352) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start > (GBeanInstanceState.java:111) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive > (GBeanInstanceState.java:133) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive > (GBeanInstance.java:503) > at > org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean > (BasicKernel.java:207) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive > (GBeanInstanceState.java:141) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive > (GBeanInstance.java:503) > at > org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean > (BasicKernel.java:207) > at org.apache.geronimo.system.main.Daemon.doStartup > (Daemon.java:247) > at org.apache.geronimo.system.main.Daemon. > (Daemon.java:81) > at org.apache.geronimo.system.main.Daemon.main(Daemon.java: > 320) > > It's not obvious to me what is happening -- it sounds kind of like > the service failed to load or start but the kernel goes on and > tries to start it again anyway. Perhaps it should notice that the > GBean is in the failed state and not try to start it in that case. > > was: > If you start the server and Jetty can't bind to it's port, you get > a variety of exceptions from Jetty, followed by: > > 12:04:06,655 WARN [GBeanSingleReference] Exception occured while > attempting to fully start: > objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/ > apache/geronimo/ > Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector > java.lang.IllegalStateException: Cannot transition to running state > from failed > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.setStateInstance( > GBeanInstanceState.java:496) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( > GBeanInstanceState.java:351) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start > (GBeanInstanceState.java:111) > at org.apache.geronimo.gbean.runtime.GBeanInstance.start > (GBeanInstance.java:486) > at > org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStar > t(GBeanSingleReference.java:154) > at > org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded > (GBeanSingleReference.java:127) > at > org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget > (AbstractGBeanReference.java:242) > at org.apache.geronimo.gbean.runtime.GBeanSingleReference > $1.running(GBeanSingleReference.java:163) > at > org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEven > t(BasicLifecycleMonitor.java:155) > at > org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300 > (BasicLifecycleMonitor.java:38) > at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor > $RawLifecycleBroadcaster.fireRunningEvent > (BasicLifecycleMonitor.java:231) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( > GBeanInstanceState.java:352) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start > (GBeanInstanceState.java:111) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive > (GBeanInstanceState.java:133) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive > (GBeanInstance.java:503) > at > org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean > (BasicKernel.java:207) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive > (GBeanInstanceState.java:141) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive > (GBeanInstance.java:503) > at > org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean > (BasicKernel.java:207) > at org.apache.geronimo.system.main.Daemon.doStartup > (Daemon.java:247) > at org.apache.geronimo.system.main.Daemon. > (Daemon.java:81) > at org.apache.geronimo.system.main.Daemon.main(Daemon.java: > 320) > > It's not obvious to me what is happening -- it sounds kind of like > the service failed to load or start but the kernel goes on and > tries to start it again anyway. Perhaps it should notice that the > GBean is in the failed state and not try to start it in that case. > > > >> Startup tries to start failed service? >> -------------------------------------- >> >> Key: GERONIMO-729 >> URL: http://issues.apache.org/jira/browse/GERONIMO-729 >> Project: Geronimo >> Type: Bug >> Components: kernel >> Versions: 1.0-M3 >> Reporter: Aaron Mulder >> > > >> >> If you start the server and Jetty can't bind to it's port, you get >> a variety of exceptions from Jetty, followed by: >> 12:04:06,655 WARN [GBeanSingleReference] Exception occured while >> attempting to fully start: >> objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/ >> apache/geronimo/ >> Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector >> java.lang.IllegalStateException: Cannot transition to running >> state from failed >> at >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.setStateInstance >> (GBeanInstanceState.java:496) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart >> (GBeanInstanceState.java:351) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start >> (GBeanInstanceState.java:111) >> at org.apache.geronimo.gbean.runtime.GBeanInstance.start >> (GBeanInstance.java:486) >> at >> org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullSta >> rt(GBeanSingleReference.java:154) >> at >> org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded >> (GBeanSingleReference.java:127) >> at >> org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget >> (AbstractGBeanReference.java:242) >> at org.apache.geronimo.gbean.runtime.GBeanSingleReference >> $1.running(GBeanSingleReference.java:163) >> at >> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEve >> nt(BasicLifecycleMonitor.java:155) >> at >> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300 >> (BasicLifecycleMonitor.java:38) >> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor >> $RawLifecycleBroadcaster.fireRunningEvent >> (BasicLifecycleMonitor.java:231) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart >> (GBeanInstanceState.java:352) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start >> (GBeanInstanceState.java:111) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive >> (GBeanInstanceState.java:133) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive >> (GBeanInstance.java:503) >> at >> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean >> (BasicKernel.java:207) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive >> (GBeanInstanceState.java:141) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive >> (GBeanInstance.java:503) >> at >> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean >> (BasicKernel.java:207) >> at org.apache.geronimo.system.main.Daemon.doStartup >> (Daemon.java:247) >> at org.apache.geronimo.system.main.Daemon. >> (Daemon.java:81) >> at org.apache.geronimo.system.main.Daemon.main(Daemon.java: >> 320) >> It's not obvious to me what is happening -- it sounds kind of like >> the service failed to load or start but the kernel goes on and >> tries to start it again anyway. Perhaps it should notice that the >> GBean is in the failed state and not try to start it in that case. >> > > -- > 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 >