Could you enable the log when start the new version?
java org.h2.tools.Server -web -log true
This should print a stack trace with more information.
Regards,
Thomas
> "java -jar h2.jar org.h2.tools.Server -webPort 12345 -tcpPort 12346 -
> pgPort 12347 -web -log true"
When using -jar Java will not actually start Server but the Console.
Also you didn't add -tcp. Could you try again with:
java -cp h2.jar org.h2.tools.Server -tcpPort 12346 -tcp -log true
This will just start the TCP Server (to make it simpler). And if you
have time, could you run the H2 unit tests and post the result? It
will take about one hour. To start it, use 'ant test'.
Thanks,
Thomas
This looks like a networking problem of the system: The listener port
is opened, but it is not possible to connect to it. Unfortunately H2
doesn't print the right exception... Could you change the isRunning()
method of org.h2.server.TcpServer as follows and then try again using:
java org.h2.tools.Server -tcpPort 12346 -tcp -log true
public synchronized boolean isRunning() {
if (serverSocket == null) {
return false;
}
try {
Socket s = NetUtils.createLoopbackSocket(port, ssl);
s.close();
return true;
} catch (Exception e) {
traceError(e); // <<< new
return false;
}
}
Of course I will change this in the next release.
Thanks a lot for your help!
Regards,
Thomas
Sorry, in the last version the method is called 'logError' not 'traceError'.
Regards,
Thomas
This sounds like the process can not connect to the socket it opened.
Can you connect to this port? Maybe something with the networking
configuration is broken?
Can you start other tools that open a network socket, like Tomcat?
Regards,
Thomas
That's strange. What does this return for you?
java.net.InetAddress.getLocalHost().toString();
Regards,
Thomas
stnt067/192.168.0.1
computer is in domain, MS Windows 2000 sp4
--
WBR, Yaroslav Kavenchuk.