Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HSQL problem

 
Matt Sall
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have started a HSQL server on a linux machine. I can reach it with the database manager, and do select and update querys and everything works fine. However when trying to use the SELECT statment from java code in eclipse an exception is thrown; java.sql.SQLEXception: Connection is broken : Transfer corrupt. But I can do UPDATE, no problem with that.



Server is started with "java org.hsqldb.Server -database dataBase -dbname db -address 192.168.0.2 -port 9001 -silent false -trace true"
Wher dataBase is the name in dataBase.lck, dataBase.script, dataBase.properties, dataBase.log.
The table data is loaded from the script-file when the server starts, could this be the problem?

I can see on my server that user SA is trying to connect, but is the disconnected, any ideas or better still, solutions?

Kind regards,
Mattias
 
Matt Sall
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem solved, it was a driver mismatch between server and client.
 
G.T. Reddy
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Problem solved, it was a driver mismatch between server and client.


could you please elaborate the above solution.

Thanks,
Reddy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic