• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HSQLDB and Eclipse

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

Thanks.
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
machines help you to do more, but experience less. Experience this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic