|
From: Kathir <kat...@gm...> - 2013-07-09 05:13:42
|
Thanks for you reply Leif. ~Kathir On Wed, Jul 3, 2013 at 7:28 AM, Leif Mortenson-3 [via Java Service Wrapper] <ml-...@n3...> wrote: > Kathir, > First of all, please consider upgrading to a new version. 3.2.0 was > released way back in 2006. There have been many many improvements, > including support for more modern versions of Windows. > http://wrapper.tanukisoftware.com/doc/english/versions.jsp > > The shutdown is not happening due to a System.exit call. Java works by > keeping track of how many non-daemon threads (Threads without their daemon > flag set) are still running. When the last non-daemon thread exits, the > JVM assumes that the application is "complete" and launches all of the > shutdown hooks. You can see that from the following message: > > > INFO | jvm 1 | 2013/06/21 14:11:02 | All non-daemon threads have > stopped. Exiting. > > This appears to be happening right after startup, The main method passed > to WrapperSimpleApp appears to be exiting immediate as seen here: > > > INFO | jvm 1 | 2013/06/21 14:10:58 | WrapperSimpleApp: start(args) > end. Main Completed=true, exitCode=null > INFO | jvm 1 | 2013/06/21 14:10:58 | returned from listener.start() > > Please give this a try with 3.5.19 and also look into what your main > method is doing in this case. > > Cheers, > Leif > > > On Tue, Jul 2, 2013 at 7:15 PM, Kathir <[hidden email]<http://user/SendEmail.jtp?type=node&node=2913&i=0> > > wrote: > >> Hi, >> I am using the Java Service Wrapper version 3.2.0 to invoke my Java >> application and seeing this issue of wrapper getting started then stopping >> in few seconds. >> >> I am seeing this only with the Windows 7 Spanish Version. I am not sure >> whether it is a known issue so posting on this forum. >> >> JDK Version which we use with our application is 1.6.0_20. >> >> Here, JVM is requesting for its shutdown which would happens when there >> is a >> call to System.exit() since I do not see this issue with other platform >> even >> with the Windows7 English version this issue does not exist. >> >> It would be great if you can suggest me to what should I look for on this >> front. >> >> Please find the debug enabled logs for the Wrapper, >> >> INFO | jvm 1 | 2013/06/21 14:10:58 | WrapperSimpleApp: main method >> completed >> INFO | jvm 1 | 2013/06/21 14:10:58 | WrapperSimpleApp: start(args) >> end. >> Main Completed=true, exitCode=null >> INFO | jvm 1 | 2013/06/21 14:10:58 | returned from listener.start() >> INFO | jvm 1 | 2013/06/21 14:10:58 | Send a packet STARTED : >> DEBUG | wrapperp | 2013/06/21 14:10:58 | read a packet STARTED : >> DEBUG | wrapper | 2013/06/21 14:10:58 | JVM signalled that it was >> started. >> DEBUG | wrapperp | 2013/06/21 14:11:02 | send a packet PING : ping >> INFO | jvm 1 | 2013/06/21 14:11:02 | Received a packet PING : ping >> INFO | jvm 1 | 2013/06/21 14:11:02 | Send a packet PING : ok >> INFO | jvm 1 | 2013/06/21 14:11:02 | Non-daemon thread count = 1 - >> 1(system) = 0 >> INFO | jvm 1 | 2013/06/21 14:11:02 | All non-daemon threads have >> stopped. Exiting. >> INFO | jvm 1 | 2013/06/21 14:11:02 | WrapperManager.stop(0) called by >> thread: Wrapper-Connection >> INFO | jvm 1 | 2013/06/21 14:11:02 | Send a packet STOP : 0 >> DEBUG | wrapperp | 2013/06/21 14:11:02 | read a packet PING : ok >> DEBUG | wrapper | 2013/06/21 14:11:02 | Got ping response from JVM >> DEBUG | wrapperp | 2013/06/21 14:11:02 | read a packet STOP : 0 >> DEBUG | wrapper | 2013/06/21 14:11:02 | JVM requested a shutdown. (0) >> DEBUG | wrapper | 2013/06/21 14:11:02 | wrapperStopProcess(0) called. >> DEBUG | wrapper | 2013/06/21 14:11:02 | Sending stop signal to JVM >> DEBUG | wrapperp | 2013/06/21 14:11:02 | send a packet STOP : NULL >> INFO | jvm 1 | 2013/06/21 14:11:03 | Thread, Wrapper-Connection, >> handling the shutdown process. >> INFO | jvm 1 | 2013/06/21 14:11:03 | calling listener.stop() >> INFO | jvm 1 | 2013/06/21 14:11:03 | WrapperSimpleApp: stop(0) >> INFO | jvm 1 | 2013/06/21 14:11:03 | returned from listener.stop() >> INFO | jvm 1 | 2013/06/21 14:11:03 | Send a packet STOPPED : 0 >> DEBUG | wrapperp | 2013/06/21 14:11:03 | read a packet STOPPED : 0 >> DEBUG | wrapper | 2013/06/21 14:11:03 | JVM signalled that it was >> stopped. >> INFO | jvm 1 | 2013/06/21 14:11:03 | Closing socket. >> DEBUG | wrapperp | 2013/06/21 14:11:03 | socket read no code (closed?). >> DEBUG | wrapperp | 2013/06/21 14:11:03 | server listening on port 32001. >> INFO | jvm 1 | 2013/06/21 14:11:03 | calling System.exit(0) >> DEBUG | wrapper | 2013/06/21 14:11:04 | JVM process exited with a code >> of >> 0, leaving the wrapper exit code set to 0. >> DEBUG | wrapper | 2013/06/21 14:11:04 | JVM exited normally. >> STATUS | wrapper | 2013/06/21 14:11:04 | <-- Wrapper Stopped >> >> > -- > Leif Mortenson > Tanuki Software, Ltd. > 6-16-7-1001 Nishi-Kasai, Edogawa-ku > Tokyo 134-0088 Japan > Tel: +81-3-3878-3211 > Fax: +81-3-3878-0313 > http://www.tanukisoftware.com > [hidden email] <http://user/SendEmail.jtp?type=node&node=2913&i=1> > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Wrapper-user mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=2913&i=2> > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://java-service-wrapper.996253.n3.nabble.com/JSW-starts-and-stops-in-few-Seconds-tp2912p2913.html > To unsubscribe from JSW starts and stops in few Seconds, click here<http://java-service-wrapper.996253.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2912&code=a2F0aGlyODVAZ21haWwuY29tfDI5MTJ8MjAwNzkxODAxMQ==> > . > NAML<http://java-service-wrapper.996253.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://java-service-wrapper.996253.n3.nabble.com/JSW-starts-and-stops-in-few-Seconds-tp2912p2916.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |