|
From: Leif M. <le...@ta...> - 2002-10-01 09:09:21
|
Ralf, Looking at Marc's patch more carefully, I see that I missed a change. :-( It should be working now. Could you give it another try? I placed a new build up on the server: http://wrapper.sourceforge.net/wrapper_win32_2.2.9b.zip Thanks, Leif WrapperManager.java 1218c1231,1239 < Thread[] threads = new Thread[Thread.activeCount() * 2]; --- > // Locate the top thread group. > ThreadGroup topGroup = Thread.currentThread().getThreadGroup(); > while (topGroup.getParent() != null ) { > topGroup = topGroup.getParent(); > } > > // Get a list of all threads. Use an array that is twice the total number of > // threads as the number of running threads may be increasing as this runs. > Thread[] threads = new Thread[topGroup.activeCount() * 2]; Could you please send me your modified file? I have not heard back from Marc. Ralf Weber wrote: >i had the same problems how with the old version, here is the screenshot: > >wrapper | --> Wrapper Started as Console >wrapper | Launching a JVM... >jvm 1 | Wrapper (Version 2.2.9a) >..... >..... >..... >jvm 1 | WrapperSimpleApp: main method completed >wrapperp | sent 6 bytes >jvm 1 | Received a packet 103 : ping >jvm 1 | Send a packet 103 : ok >jvm 1 | All non-daemon threads have stopped. Exiting. >jvm 1 | Send a packet 101 : 0 >wrapperp | read a packet 103 : ok >wrapper | Got ping response from JVM >wrapperp | read a packet 101 : 0 >wrapper | JVM requested a shutdown. (0) >wrapper | wrapperStopProcess(0) called. >wrapper | Sending stop signal to JVM >wrapperp | sent 2 bytes >jvm 1 | Thread, Wrapper-Connection, handling the shutdown process. >jvm 1 | calling listener.stop() >jvm 1 | WrapperSimpleApp: stop(0) >jvm 1 | returned from listener.stop() >jvm 1 | Send a packet 107 : 0 >jvm 1 | Closing socket. >wrapperp | read a packet 107 : 0 >wrapper | JVM signalled that it was stopped. >wrapperp | socket read no code (closed?). >jvm 1 | calling System.exit(0) >wrapper | JVM exited normally. >wrapper | <-- Wrapper Stopped > >so i will use the wrapper.jar which one i changed and compiled after i got >the mail from marc! >here is the screenshot, it works. > >jvm 1 | WrapperSimpleApp: main method completed >wrapperp | sent 6 bytes >jvm 1 | Received a packet 103 : ping >jvm 1 | Send a packet 103 : ok >wrapperp | read a packet 103 : ok >wrapper | Got ping response from JVM >wrapperp | sent 6 bytes >jvm 1 | Received a packet 103 : ping >jvm 1 | Send a packet 103 : ok >wrapperp | read a packet 103 : ok >wrapper | Got ping response from JVM >wrapperp | sent 6 bytes >jvm 1 | Received a packet 103 : ping >jvm 1 | Send a packet 103 : ok > > > > |