This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: H2 database - Connection is broken
 
Similar Threads
connection to mssql server database
Trouble Connecting to MSSQL Server 2005 (Struts+Hibernate): TCP/IP Error
Oracle Connection in WSAD 5.0
Seam In Action - Question to Dan Allen
How to check whether DB is alive