Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

H2 database - Connection is broken

 
moshi cochem
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If someone here is working with H2 db and can give me any advice, i'll very appreciate it.
I'm working with H2 db and suddenly I started to get : Connection is broken [90067-122] stack trace
When I invoke my java application.
I have the database, and I'm connecting it with the H2 console successfuly.
Any idea ?
Just to clarify it: I'm connecting with tcp like this: jdbc:h2:tcp://localhost//C://myDB;FILE_LOCK=NO
Thanks.
 
moshi cochem
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
the problem was probably because I tried to create a new db on the disk and there was a security problem.
To solve it, i run the h2 db as a service, and then give permitions thru the service.
Thanks anyways.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting the solution Moshi!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic