Hallo,
Ik krijg af en toe de volgende melding:
Caused by: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@7ea11d46[file =D:\Project\Test\dbTest.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: The process cannot access the file because another process has locked a portion of the file : D:\Project\Test\dbTest.lck
De foutmelding is vrij duidelijk alleen weet ik niet wat ik hieraan kan doen. Ik gebruik de laatste versie van hsqldb en hibernate3.
hibernate.cfg.xml
Graag hulp.
Ik krijg af en toe de volgende melding:
Caused by: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@7ea11d46[file =D:\Project\Test\dbTest.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: The process cannot access the file because another process has locked a portion of the file : D:\Project\Test\dbTest.lck
De foutmelding is vrij duidelijk alleen weet ik niet wat ik hieraan kan doen. Ik gebruik de laatste versie van hsqldb en hibernate3.
hibernate.cfg.xml
XML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.driver_class"> org.hsqldb.jdbcDriver </property> <property name="connection.url"> jdbc:hsqldb:file:dbTest </property> <property name="connection.username">sa</property> <property name="connection.password"> </property> <property name="pool_size">5</property> <property name="show_sql">true</property> <property name="dialect"> org.hibernate.dialect.HSQLDialect </property> <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> <property name="hibernate.current_session_context_class">thread</property> <mapping resource="Product.hbm.xml" /> </session-factory> </hibernate-configuration> |
Graag hulp.
Al het goeie.......