aspose file tools*
The moose likes JDBC and the fly likes H2 database - Connection is broken Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "H2 database - Connection is broken" Watch "H2 database - Connection is broken" New topic
Author

H2 database - Connection is broken

moshi cochem
Ranch Hand

Joined: Nov 10, 2009
Posts: 91
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

Joined: Nov 10, 2009
Posts: 91
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

Joined: May 26, 2003
Posts: 30957
    
158

Thanks for posting the solution Moshi!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Don't get me started about those stupid light bulbs.
 
subject: H2 database - Connection is broken