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: junits
PostPosted: Thu Jul 10, 2008 2:22 am 
Newbie

Joined: Thu Jul 10, 2008 1:59 am
Posts: 2
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


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.