6 Replies Latest reply on Jun 10, 2010 4:18 AM by jfclere

    meet Error 1053 when stop JBOSS Windows services

      I use JBoss Web Native Connectors 2.0.9 to install my JBoss as Windows service. Windows default shutdown time to stop a service is 20s. It is too short in my case. My JBoss cannot be stopped in 20s, so Windows will kill my JBoss java process which is unacceptable to me. I increase the shutdown time to 100s by way in http://support.microsoft.com/kb/Q146092.

       

      After that, my JBoss can be shutdown gracefully by stopping the windows service, but Windows pop up an error after 125s as below :

      Error 1053: The service did not respond to the start or control request    in a timely fashion.

      It seems relative with http://support.microsoft.com/kb/307806/.

       

      It seems Windows service does not know that the JBoss is already be shutdown. Then after 125s, it is timed out.

       

      Can anyone give me some help?

       

       

       

      Thanks!

        • 1. Re: meet Error 1053 when stop JBOSS Windows services

          Addition: the jbosssvc.exe process also exists with the jboss java process. It seems the Windows Service Management does not know the service has been stopped.

           

           

          Thanks!

          • 2. Re: meet Error 1053 when stop JBOSS Windows services
            jfclere

            hm it seems your jboss shutdown hangs. You should start it in the console and stop it to see what goes wrong.

            Also check the server.log file may be there is some clues there too.

            • 3. Re: meet Error 1053 when stop JBOSS Windows services

              No. My JBoss did not hang. the JBoss java process and the jbosssvc.exe process both exit in 100s. But after 125s, windows service managment console pop up the error.

              • 4. Re: meet Error 1053 when stop JBOSS Windows services
                jfclere

                Check in event logs. If jboss finishes ok your will have "Stopping service ..."

                if you have "Service terminated..." or nothing there is something wrong.

                 

                Probably 100 sec is still not enough for a clean shutdown and the processes are terminated by jboss service, the service terminates too and you get the error message.

                • 5. Re: meet Error 1053 when stop JBOSS Windows services

                  My last lines are below. Will the exception cause the error? I find the jboss java process and jbosssvc.exe exit in 40s, so they are terminated by jboss service.

                   

                  2010-06-10 09:26:44,639 INFO  [org.apache.catalina.core.StandardService] Stopping service jboss.web
                  2010-06-10 09:26:44,655 INFO  [org.apache.coyote.http11.Http11Protocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0-8080
                  2010-06-10 09:26:44,655 INFO  [org.apache.coyote.ajp.AjpProtocol] Stopping Coyote AJP/1.3 on ajp-0.0.0.0-8009
                  2010-06-10 09:26:44,686 WARN  [org.jboss.resource.adapter.mail.inflow.NewMsgsWorker] Interrupted waiting for new msg check
                  java.lang.InterruptedException
                      at java.lang.Object.wait(Native Method)
                      at java.lang.Object.wait(Object.java:485)
                      at EDU.oswego.cs.dl.util.concurrent.Semaphore.acquire(Semaphore.java:108)
                      at EDU.oswego.cs.dl.util.concurrent.SemaphoreControlledChannel.take(SemaphoreControlledChannel.java:131)
                      at org.jboss.resource.adapter.mail.inflow.NewMsgsWorker.run(NewMsgsWorker.java:75)
                      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
                      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
                      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
                      at java.lang.Thread.run(Thread.java:619)

                   

                   

                  Thanks!

                  • 6. Re: meet Error 1053 when stop JBOSS Windows services
                    jfclere

                    Will the exception cause the error?

                    I don't think it should , but you should check your code to make sure the exception doesn't cause other troubles in application.