|
From: Leif M. <le...@ta...> - 2007-02-02 18:45:49
|
Hubert, You have gotten into an unexpected state. It looks like you are running in console mode and have invoked the shutdown using CTRL-C. That is triggering the wrapper shutdown process. Your WrapperListener.stop method is being started and completing normally. The problem happens after that. What is happening in that stop method? Is it triggering another thread that may be calling System.exit? The shutdown thread expects to be able to unregister the shutdown hook, but another thread has already initiated the shutdown of the JVM. Could you post your WrapperListener implementation? I am going to need to see it to understand exactly what is going on here. Cheers, Leif Hubert Felber wrote: > Hi, > > I made a skeleton of integration method 3 to play with wrapper. > Shutdown the service gives me curious errors. Could anybody please > take a look at the attached log file and tell me, what's going wrong? > > I get a "Unable to unregister shutdown hook: > java.lang.IllegalStateException: Shutdown in progress > I didn't register one, so it must be one of used by wrapper. > > And a "System.exit appears to have been called from within the > WrapperListener.stop() method", > which I would never do, of course. My stop method is called and I > return 0. > > I'm using the latest trunk wrapper 3.2.4-a, my app ist just a > skeleton wich doesn't do anything but starting a thread which prints > dots on stdout, and is closed properly. There is no difference running > it as console app or as service. > The application exits, but I would like to know what these errors are > and how to avoid them. > > Can anybody help please? > > Thank you > Hubert |