Hi there
Lately, I am getting the following error when trying to run the H2 database server on Mac OS X 10.6.8:
$ java -cp Downloads/h2-1.3.157.jar org.h2.tools.Server -trace
java.net.ConnectException: Cannot allocate memory
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at org.h2.util.NetUtils.createSocket(NetUtils.java:110)
at org.h2.util.NetUtils.createSocket(NetUtils.java:91)
at org.h2.util.NetUtils.createLoopbackSocket(NetUtils.java:49)
at org.h2.server.web.WebServer.isRunning(WebServer.java:354)
at org.h2.tools.Server.isRunning(Server.java:415)
at org.h2.tools.Server.start(Server.java:374)
at org.h2.tools.Server.runTool(Server.java:215)
at org.h2.tools.Server.main(Server.java:115)
The Web Console server could not be started. Possible cause: another server is already running at
http://192.168.2.1:8082Exception in thread "main" org.h2.jdbc.JdbcSQLException: Exception opening port "H2 Console Server (
http://192.168.2.1:8082)" (port may be in use), cause: "timeout" [90061-157]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.tools.Server.start(Server.java:377)
at org.h2.tools.Server.runTool(Server.java:215)
at org.h2.tools.Server.main(Server.java:115)
Furthermore, the yellow icon in the menu bar is missing.
Would be glad about any help because I am really stuck. I cannot remember having this problem ever before.
Oh, and the last thing I did concerning Java is install Apple’s recent Update. Could this be related? How could I revert to the previous version, anyway?
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)