-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hsqldb database permanent lock
PostPosted: Wed Jun 04, 2008 4:59 am 
Beginner
Beginner

Joined: Tue Aug 29, 2006 8:08 am
Posts: 34
Problem description
The problem is that using a local embeded DB (hsqldb) when the app is running it mantains
a lock file called local.lck but when the app closes right, that file remains ant the only
workaround for subsequent executions is to manually remove such file. ┬┐shoudn't it be
automatic?

Hibernate version:
3.2.6GA
Mapping documents:
N/A
Code between sessionFactory.openSession() and session.close():

For this subject no code at all runs, as it is just open the app, close it ant the problem arise it.
No DB operations at all done but the error arises anyway.
So only code applying would be initialization:::

final Configuration cfg = new Configuration()
.setProperty("hibernate.connection.driver_class",
"org.hsqldb.jdbcDriver")
.setProperty("hibernate.connection.url", url)
.setProperty("hibernate.connection.username", "sa")
.setProperty("hibernate.connection.password", "")
.setProperty("hibernate.connection.shutdown", "true")
.setProperty("hibernate.dialect",
"org.hibernate.dialect.HSQLDialect")
.setProperty("hibernate.current_session_context_class", "thread")
.setProperty("hibernate.cache.provider_class",
"org.hibernate.cache.NoCacheProvider")
.setProperty("hibernate.show_sql", "false")
.setProperty("hibernate.hbm2ddl.auto", "update")
.addClass(RemoteObject.class)
.addClass(Service.class)
.addClass(Permissions.class);


Full stack trace of any exception that occurs:
Not an exception, just the permanence of a database lock file (local.lck)

Name and version of the database you are using:
HSQLDB


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.