|
From: Sue E. <sue...@ic...> - 2003-04-30 19:09:28
|
Appologies, I didn't read far enough down the existing e-mails (or the documentation). It still doesn't work properly but I've got over the first hump. Sue -----Original Message----- From: Sue Emery [mailto:sue...@ic...] Sent: Wednesday, April 30, 2003 18:36 To: 'wra...@li...' Subject: Java Service Wrapper will not start my program Windows 2000: I have a java program which works fine on its own but won't work properly with the wrapper, either as a console or service. The program has a main method which starts two new daemon threads. One thread runs many timer tasks, the other waits for incoming snmp traps on port 162. The main method then sleeps for a few seconds in an infinite loop. Running as a console, the program starts OK, creates the new threads and then sleeps OK (I've got lots of logging so I know this is happening). The problem is that after some seconds I get the following messages wrapper | Startup failed: Timed out waiting for signal from JVM. wrapper | Java Virtual Machine did not exit on request, terminated wrapper | JVM was only running for 31 seconds leading to a failed restart count of 1 It then restarts and the whole process is repeated. If I do CNTL+C I get this wrapper | CTRL-C trapped. Shutting down. wrapper | wrapperStopProcess(0) called. wrapper | Sending stop signal to JVM wrapper | Shutdown failed: Timed out waiting for signal from JVM. wrapper | Java Virtual Machine did not exit on request, terminated wrapper | <-- Wrapper Stopped There is almost nothing else running on my system - task manager shows the system idle process using 95%+ of CPU. It appears that the wrapper is unable to communicate with my JVM even though it has started it successfully. I assume I have done something stupid but can anyone tell me what? Thanks, Sue Emery |