File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes HSQLDB and Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "HSQLDB and Eclipse" Watch "HSQLDB and Eclipse" New topic

HSQLDB and Eclipse

Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
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@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(): Permission denied
at Method)
at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
at org.hsqldb.Server.openServerSocket(Unknown Source)
at Source)
at org.hsqldb.Server.access$000(Unknown Source)
at org.hsqldb.Server$ Source)

Any ideas?

Marco Ehrentreich
best scout

Joined: Mar 07, 2007
Posts: 1294


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!

I agree. Here's the link:
subject: HSQLDB and Eclipse
It's not a secret anymore!