File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes HSQLDB and Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "HSQLDB and Eclipse" Watch "HSQLDB and Eclipse" New topic
Author

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.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?

Thanks.
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

Hi,

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!

Marco
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HSQLDB and Eclipse