• Post Reply Bookmark Topic Watch Topic
  • New Topic

HSQLDB and Eclipse  RSS feed

Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to run HSQLDB using Eclipse after some configurations I made, I get the following in the console:

[WebServer@cd2c3c]: [Thread[main,5,main]]: checkRunning(false) entered
[WebServer@cd2c3c]: [Thread[main,5,main]]: checkRunning(false) exited
[WebServer@cd2c3c]: Startup sequence initiated from main() method
[WebServer@cd2c3c]: Loaded properties from [/Users/abder-rahmanali/Documents/workspace/Hello/junkdb/webserver.properties]
[WebServer@cd2c3c]: Initiating startup sequence...
[WebServer@cd2c3c]: Initiating shutdown sequence...
[WebServer@cd2c3c]: Shutdown sequence completed in 5 ms.
[WebServer@cd2c3c]: 2009-02-01 13:13:04.872 SHUTDOWN : System.exit() is called next
[WebServer@cd2c3c]: [Thread[HSQLDB Server @cd2c3c,5,main]]: run()/openServerSocket():
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
at org.hsqldb.Server.openServerSocket(Unknown Source)
at org.hsqldb.Server.run(Unknown Source)
at org.hsqldb.Server.access$000(Unknown Source)
at org.hsqldb.Server$ServerThread.run(Unknown Source)

Any ideas?

best scout
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

from this BindException which gets thrown, I guess the problem is the (TCP) port HSQLDB should listen on!

If you configured a TCP port <1024 for the HSQLDB server then you have to start the database server with a privileged user account (usually root/administrator).

Alternatively you can just configure HSQLDB to use a non-privileged port above 1023 during development although I personally don't know how this is done with HSQLDB. But I'm sure you will find help on how to change the server port in the documentation ;-)

Hope this helps!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!