|
From: Leif M. <le...@ta...> - 2006-08-10 01:25:35
|
Winston,
Your application appears to be starting up correctly, but the
Wrapper's shutdown
hook is being started by the JVM. This is most likely happing because
something is
calling System.exit.
Can you review your application source, add some debug output and trace
what is going on?
From what I can see, your application's main method is being called and
completes normally. What happens inside, I am not able to see from this
output.
Make sure that your even thread is NOT a daemon thread. Make sure that
the top level run method of that thread is catching all errors and
logging them.
Cheers,
Leif
Win...@je... wrote:
>
> I am running in console mode right now and am unable to get the
> application running using the WrapperSimpleApp. Below is my log file.
> Does anyone have an idea what's happening?
>
> The main() method of my application simply instantiates itself and
> calls another method to get into the event loop (it's a GUI application).
>
> Thanks in advance.
> -wr
>
> wrapper | --> Wrapper Started as Console
> wrapper | Using tick timer.
> wrapperp | server listening on port 32000.
> wrapper | Launching a JVM...
> wrapper | command: "C:\jdk\jdk1.5.0_05\bin\java.exe"
> -Djava.library.path="../lib" -classpath
> "../lib/wrapper.jar;../comfyj-2.1.jar;../jniwrap-3.1.jar;../winpack-3.0.jar;../ddm-cda-desktop-4.0-app.jar"
> -Dwrapper.key="5iHZKaFwxhyjtBT_" -Dwrapper.port=32000
> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999
> -Dwrapper.debug="TRUE" -Dwrapper.pid=3640 -Dwrapper.version="3.2.1"
> -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10"
> -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp
> com.jeppesen.ebiz.ddm.cda.desktop.ui.DesktopApp
> wrapper | JVM started (PID=2220)
> jvm 1 | WrapperManager class initialized by thread: main Using
> classloader: sun.misc.Launcher$AppClassLoader@133056f
> jvm 1 | Wrapper (Version 3.2.1) http://wrapper.tanukisoftware.org
> jvm 1 |
> jvm 1 | Wrapper Manager: JVM #1
> jvm 1 | Running a 32-bit JVM.
> jvm 1 | Wrapper Manager: Registering shutdown hook
> jvm 1 | Wrapper Manager: Using wrapper
> jvm 1 | Load native library. One or more attempts may fail if
> platform specific libraries do not exist.
> jvm 1 | Loading native library failed: wrapper-windows-x86-32.dll
> Cause: java.lang.UnsatisfiedLinkError: no wrapper-windows-x86-32 in
> java.library.path
> jvm 1 | Loaded native library: wrapper.dll
> jvm 1 | Calling native initialization method.
> jvm 1 | Initializing WrapperManager native library.
> jvm 1 | Java Executable: C:\jdk\jdk1.5.0_05\bin\java.exe
> jvm 1 | Windows version: 5.1.2600
> jvm 1 | Java Version : 1.5.0_05-b05 Java HotSpot(TM) Client VM
> jvm 1 | Java VM Vendor : Sun Microsystems Inc.
> jvm 1 |
> jvm 1 | Control event monitor thread started.
> jvm 1 | Startup runner thread started.
> jvm 1 |
> WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@16a55fa,
> args[]) called by thread: main
> jvm 1 | Communications runner thread started.
> jvm 1 | Open socket to wrapper...Wrapper-Connection
> jvm 1 | Failed attempt to bind using local port 31000
> jvm 1 | Opened Socket from 31001 to 32000
> jvm 1 | Send a packet KEY : 5iHZKaFwxhyjtBT_
> jvm 1 |
> handleSocket(Socket[addr=localhost/127.0.0.1,port=32000,localport=31001])
> wrapperp | accepted a socket from 127.0.0.1 on port 31001
> wrapperp | read a packet KEY : 5iHZKaFwxhyjtBT_
> wrapper | Got key from JVM: 5iHZKaFwxhyjtBT_
> wrapperp | send a packet LOW_LOG_LEVEL : 1
> wrapperp | send a packet PING_TIMEOUT : 30
> wrapperp | send a packet PROPERTIES : (Property Values)
> wrapper | Start Application.
> wrapperp | send a packet START : start
> jvm 1 | Received a packet LOW_LOG_LEVEL : 1
> jvm 1 | Wrapper Manager: LowLogLevel from Wrapper is 1
> jvm 1 | Received a packet PING_TIMEOUT : 30
> jvm 1 | PingTimeout from Wrapper is 30000
> jvm 1 | Received a packet PROPERTIES : (Property Values)
> jvm 1 | Received a packet START : start
> jvm 1 | calling WrapperListener.start()
> jvm 1 | Waiting for WrapperListener.start runner thread to complete.
> jvm 1 | WrapperListener.start runner thread started.
> jvm 1 | WrapperSimpleApp: start(args) Will wait up to 2 seconds for
> the main method to complete.
> jvm 1 | WrapperSimpleApp: invoking main method
> jvm 1 | WrapperSimpleApp: main method completed
> jvm 1 | WrapperSimpleApp: start(args) end. Main Completed=true,
> exitCode=null
> jvm 1 | WrapperListener.start runner thread stopped.
> jvm 1 | returned from WrapperListener.start()
> jvm 1 | Send a packet STARTED :
> jvm 1 | Startup runner thread stopped.
> jvm 1 | Wrapper Manager: ShutdownHook started
> jvm 1 | WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook
> jvm 1 | Send a packet STOP : 0
> wrapperp | read a packet STARTED :
> wrapper | JVM signalled that it was started.
> wrapperp | read a packet STOP : 0
> wrapper | JVM requested a shutdown. (0)
> wrapper | wrapperStopProcess(0) called.
> wrapper | Sending stop signal to JVM
> wrapperp | send a packet STOP : NULL
> jvm 1 | Received a packet STOP :
> jvm 1 | Thread, Wrapper-Shutdown-Hook, 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 STOPPED : 0
> wrapperp | read a packet STOPPED : 0
> wrapper | JVM signalled that it was stopped.
> jvm 1 | Closing socket.
> jvm 1 | Closed socket: java.net.SocketException: socket closed
> wrapperp | socket read no code (closed?).
> wrapperp | server listening on port 32001.
> jvm 1 | Server daemon shut down
> jvm 1 | Wrapper Manager: ShutdownHook complete
> wrapper | JVM process exited with a code of 0, leaving the wrapper
> exit code set to 0.
> wrapper | JVM exited normally.
> wrapper | <-- Wrapper Stopped
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|