From: Jose M. P. <jm...@cr...> - 2004-03-23 12:01:07
|
Hi, I'm trying to upgradte from 1.7.2 R C 1 to R C 4. My application launchs a hsqldb server at the beginning, I'am using the next code to launch the server and it works fine with R C 1. public boolean launchDBServer() { final String[] args = new String[] { "-no_system_exit", "true", "-database", "..\\database\\klmanagerdb" }; // create new server final Server server = new Server(); // start server in its own thread Thread serverThread = new Thread(new Runnable() { public void run() { try { server.main(args); } catch (Exception ex) { ex.printStackTrace(); } } }); serverThread.start(); return true; } when i have upgraded to 1.7.2 R C 4 this code does not work, i got the next exception: [Server@1de17f4]: [Thread[Thread-1,5,main]]: checkRunning(false) entered [Server@1de17f4]: [Thread[Thread-1,5,main]]: checkRunning(false) exited [Server@1de17f4]: Startup sequence initiated from main() method [Server@1de17f4]: Loaded properties from [C:\TRABAJO\SOFTWARE\TELEVIGILANCIA\KLMANAGER\v0.00_17022003\FUENTE\KLManage r\server.properties] [Server@1de17f4]: Initiating startup sequence... [Server@1de17f4]: Server socket opened successfully in 0 ms. cache_scale: 14 cache_size_scale: 20 NIO next enlargeBuffer(): 4194304 NIO file instance created. mode: false writeScript Cache.saveRow() total row save time in 0 ms. Cache.saveRow() total row save count = 0 Cache.makeRow() total row load time in 0 ms. Cache.makeRow() total row load count = 2 Cache.sort() total time in 0 ms. Cache.rank() total time in 0 ms. NIO next close() - fileLength = 4194304 NIO next buffer.force() NIO next channel.close() NIO next file.close() NIO next enlargeBuffer(): 4194304 NIO file instance created. mode: false [Server@1de17f4]: Database [index=0, id=0, db=file:..\database\klmanagerdb, alias=] opened sucessfully in 703 ms. [Server@1de17f4]: Startup sequence completed in 734 ms. [Server@1de17f4]: 2004-03-23 12:55:46.218 HSQLDB server 1.7.2 is online [Server@1de17f4]: To close normally, connect and execute SHUTDOWN SQL [Server@1de17f4]: From command line, use [Ctrl]+[C] to abort abruptly java.lang.NullPointerException at org.hsqldb.Session.close(Unknown Source) at org.hsqldb.Session.execute(Unknown Source) at org.hsqldb.ServerConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:534) file sync interval: 58609 file sync: 31 Can you help me, please? Thanks in advance. Regards. JM |