Hi everyone,
I have Hibernate, hsqldb, 3 junits ant and eclipse. When i run tests in eclipse everything is ok, but if i run tests via ant, then i have some exceptions:
1) In the first test:
[ERROR] failed batch
[ERROR] Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)...
2)In the second test java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@44c0266f[file =D:\New Folder\my\testdb.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [D:\New Folder\my\testdb.lck] is presumably locked by another process.
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)...
Third test works sometimes, sometimes not.
Maybe somebody can help me, please?
Thnx
|