Closed GoogleCodeExporter closed 9 years ago
Ran test target multiple times: sometimes i get test to successfully run
(rarely),
sometimes i don't. When it fails, it is for a db locking issue.
Original comment by max.cald...@gmail.com
on 4 Nov 2009 at 1:47
Attaching more verbose log. Errors are:
javax.persistence.PersistenceException:
org.hibernate.exception.JDBCConnectionException: Cannot open connection
and
Caused by: java.sql.SQLException: The database is already in use by another
process:
org.hsqldb.persist.NIOLockFile@2b3625fe[file =C:\temp\hsql.lck, exists=true,
locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat():
lock
file [C:\temp\hsql.lck] is presumably locked by another process.
Original comment by max.cald...@gmail.com
on 4 Nov 2009 at 2:11
Attachments:
Yea, try using the in memory version of hypersonic (I think the property is
mem:
instead of file:). Even otherwise we probably need to update the teardown to
call
shutdown() on PersistenceService.
Original comment by dha...@gmail.com
on 4 Nov 2009 at 4:16
It works, thanks. Just had to change 'file:C:/temp/hsql' into 'mem:persistence'
in
file test\META-INF\persistence.xml (patch attached).
Original comment by max.cald...@gmail.com
on 4 Nov 2009 at 5:40
Attachments:
This issue was closed by revision r327.
Original comment by robbie.v...@gmail.com
on 4 Nov 2009 at 7:01
Original issue reported on code.google.com by
max.cald...@gmail.com
on 3 Nov 2009 at 11:03Attachments: