|
From: Prashant R. <pra...@pr...> - 2003-10-13 04:51:29
|
Hello Group, I am experiencing similar (?) problem. I would appreciate if Leif could confirm if this a known issue. when I configure two instances of my application as service, we encounter this problem. Settings :OS:Windows 2000, jdk : 1.3.1_03, wrapper 3.5 version 1. when i start the serivice with net start <serivce_name> Windows throws up a dialog box saying "java.exe has performed an illeagal operation and will be shutdown by windows". This happens when two instances of application are installed as NT services, and then started. 2. Following this wrapper restarts the jvm and then everything goes smoothly. 3. In wrapper.log this is the snippet that is written STATUS | wrapper | 2003/10/09 15:02:20 | --> Wrapper Started as Service INFO | wrapperp | 2003/10/09 15:02:21 | port 1777 already in use, using port 1778 instead. DEBUG | wrapperp | 2003/10/09 15:02:21 | server listening on port 1778. STATUS | wrapper | 2003/10/09 15:02:22 | Launching a JVM... DEBUG | wrapper | 2003/10/09 15:02:22 | command: "------" DEBUG | wrapper | 2003/10/09 15:02:22 | Java Virtual Machine started (PID=2484) INFO | jvm 1 | 2003/10/09 15:02:23 | Wrapper Manager: JVM #1 INFO | jvm 1 | 2003/10/09 15:02:23 | Wrapper Manager: Registering shutdown hook INFO | jvm 1 | 2003/10/09 15:02:23 | Wrapper Manager: Using wrapper INFO | jvm 1 | 2003/10/09 15:02:23 | Calling native initialization method. INFO | jvm 1 | 2003/10/09 15:02:23 | Initializing WrapperManager native library. INFO | jvm 1 | 2003/10/09 15:02:23 | Java Executable: D:\jdk1.3.1_03\bin\java.exe INFO | jvm 1 | 2003/10/09 15:02:23 | Java Version : 1.3.1_03-b03 Java HotSpot(TM) Server VM INFO | jvm 1 | 2003/10/09 15:02:23 | Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2003/10/09 15:02:23 | INFO | jvm 1 | 2003/10/09 15:02:23 | Wrapper (Version 3.0.5) INFO | jvm 1 | 2003/10/09 15:02:23 | INFO | jvm 1 | 2003/10/09 15:02:23 | Open socket to wrapper... INFO | jvm 1 | 2003/10/09 15:02:23 | Opened Socket INFO | jvm 1 | 2003/10/09 15:02:23 | Send a packet KEY : kcHXnO44A11Oe6bV INFO | jvm 1 | 2003/10/09 15:02:23 | handleSocket(Socket[addr=127.0.0.1/127.0.0.1,port=1778,localport=3311]) DEBUG | wrapperp | 2003/10/09 15:02:23 | accepted a socket from 127.0.0.1 on port 3311 DEBUG | wrapperp | 2003/10/09 15:02:23 | read a packet KEY : kcHXnO44A11Oe6bV DEBUG | wrapper | 2003/10/09 15:02:23 | Got key from JVM: kcHXnO44A11Oe6bV DEBUG | wrapperp | 2003/10/09 15:02:23 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2003/10/09 15:02:23 | send a packet PING_TIMEOUT : 30 DEBUG | wrapper | 2003/10/09 15:02:23 | Start Application. DEBUG | wrapperp | 2003/10/09 15:02:23 | send a packet START : start INFO | jvm 1 | 2003/10/09 15:02:23 | Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2003/10/09 15:02:23 | Wrapper Manager: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2003/10/09 15:02:23 | Received a packet PING_TIMEOUT : 30 INFO | jvm 1 | 2003/10/09 15:02:23 | Wrapper Manager: PingTimeout from Wrapper is 30000 INFO | jvm 1 | 2003/10/09 15:02:23 | Received a packet START : start INFO | jvm 1 | 2003/10/09 15:02:23 | calling listener.start() INFO | jvm 1 | 2003/10/09 15:02:23 | WrapperSimpleApp: start(args) INFO | jvm 1 | 2003/10/09 15:02:23 | WrapperSimpleApp: invoking main method DEBUG | wrapperp | 2003/10/09 15:02:24 | send a packet PING : ping INFO | jvm 1 | 2003/10/09 15:02:24 | Received a packet PING : ping INFO | jvm 1 | 2003/10/09 15:02:24 | Send a packet PING : ok DEBUG | wrapperp | 2003/10/09 15:02:24 | read a packet PING : ok DEBUG | wrapper | 2003/10/09 15:02:24 | Got ping response from JVM DEBUG | wrapperp | 2003/10/09 15:02:30 | send a packet PING : ping INFO | jvm 1 | 2003/10/09 15:02:30 | Received a packet PING : ping INFO | jvm 1 | 2003/10/09 15:02:30 | Send a packet PING : ok DEBUG | wrapperp | 2003/10/09 15:02:30 | read a packet PING : ok DEBUG | wrapper | 2003/10/09 15:02:30 | Got ping response from JVM ERROR | wrapper | 2003/10/09 15:02:31 | JVM exited while starting the application. Thank You Prashant 0xCAFEBABE ----- Original Message ----- From: <sna...@gm...> To: <wra...@li...> Sent: Saturday, October 11, 2003 8:51 PM Subject: [Wrapper-user] Problem with Java service in Windows 2000 > I am experiencing a weird problem using Wrapper service to install a Java app as System service. I installed the sample service application provided in the binary distribution. Restart the system, the service starts. Now if I try to start a different JAVA GUI (Swing) program, the program holds up at startup and never comes up. I appears to have never entered the program that I am trying to run, it looks like to be struck in java.exe somewhere in initialization. Has anyone seem this? > Now if I were to stop the "test ..." service and run the swing program, it works fine. After that start the service everything works fine. It appears to be related to starting the Java service for the first time after a system boot. > Not all machines have this problem. > Another interesting thing is, if one goes to the Services control panel, double click on the installed test service and in the "log on" tab force the service to be run as "Administrator" everything works fine. > I am totally clueless as to where the problem is. Any help in this regard is appreciated > thanks > sona > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |