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
|