|
From: Leif M. <le...@ta...> - 2008-09-15 19:27:04
|
Stas, What platform and version are you running on? I see a reference to a UNIXProcess so I assume it is not Windows. On UNIX versions, there is really no difference in the way the Wrapper launches the JVM between running in Console or Started as a daemon process. There could be differences in the environment variables available to the Wrapper when it launches however. For example, the PATH, or LD_LIBRARY_PATH. There could also be file permission issues if they are not being run as the same user. Either way however, the Wrapper and JVM appear to be working. Most likely something in the application is failing for one of the above reasons which is leading to it being in an unstable state, thus causing the exceptions. As these appear to be JDBC driver related, I would guess that maybe a native component of your driver is failing to load. Does MySQL have a native driver? I have used the pure Java driver. I tried Googling and found your question but not much else. I would be happy to help out with more information. Cheers, Leif On Sat, Sep 13, 2008 at 7:11 PM, Stas Oskin <sta...@gm...> wrote: > 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. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |