|
From: Stas O. <sta...@gm...> - 2008-09-13 10:11:57
|
Hi. I'm trying to get my app packaged in jar to work with the Java Wrapper, and have set up all correctly.When I launch the service in console mode, all works correctly. When I do the same with service mode - the service shuts down after a few seconds, and has the following errors in the log: INFO | jvm 1 | 2008/09/13 00:05:01 | java.sql.SQLException: java.lang.ThreadDeath INFO | jvm 1 | 2008/09/13 00:05:01 | at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) INFO | jvm 1 | 2008/09/13 00:05:01 | at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) INFO | jvm 1 | 2008/09/13 00:05:01 | at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) INFO | jvm 1 | 2008/09/13 00:05:01 | at com.mysql.jdbc.Util.handleNewInstance(Util.java:430) INFO | jvm 1 | 2008/09/13 00:05:01 | at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302) INFO | jvm 1 | 2008/09/13 00:05:01 | at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282) INFO | jvm 1 | 2008/09/13 00:05:01 | at java.sql.DriverManager.getConnection(DriverManager.java:582) INFO | jvm 1 | 2008/09/13 00:05:01 | at java.sql.DriverManager.getConnection(DriverManager.java:185) (Below it my own functions exceptions - but this is a standard JDBC connector for MySQL). And this comes next (where I have function launching external process via exec function): INFO | jvm 1 | 2008/09/13 00:05:03 | java.lang.InterruptedException INFO | jvm 1 | 2008/09/13 00:05:03 | at java.lang.Object.wait(Native Method) INFO | jvm 1 | 2008/09/13 00:05:03 | at java.lang.Object.wait(Object.java:485) INFO | jvm 1 | 2008/09/13 00:05:03 | at java.lang.UNIXProcess.waitFor(UNIXProcess.java:165) Any idea what different between the console and start modes, and why the basic functionality doesn't work in this mode? Regards. |