This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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: 29287
    
140

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: H2 database - Connection is broken
 
Similar Threads
Oracle Connection in WSAD 5.0
How to check whether DB is alive
Seam In Action - Question to Dan Allen
Trouble Connecting to MSSQL Server 2005 (Struts+Hibernate): TCP/IP Error
connection to mssql server database