java.sql.SQLException

The database is already in use by another process: org.hsqldb.NIOLockFile@d80fd9e8\[file =C:\Projects\JavaNetBeans\DBtest\db\officer.lck.lck, exists=true, locked=false, valid=false, fl =null\]: java.lang.Exception: checkHeartbeat(): lock file \[C:\Projects\JavaNetBeans\DBtest\db\officer.lck.lck\] is presumably locked by another process.

Solutions on the web11623

  • via hsqldb by garoad
    , 11 months ago
    The database is already in use by another process: org.hsqldb.NIOLockFile@d80fd9e8\[file =C:\Projects\JavaNetBeans\DBtest\db\officer.lck.lck, exists=true, locked=false, valid=false, fl =null\]: java.lang.Exception: checkHeartbeat(): lock file \[C:\Projects\JavaNetBeans\DBtest\db\officer.lck.lck\] is presumably locked by another process.
  • [file =D:\Program Files\Openfire\embedded-db\openfire.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [D:\Program Files\Openfire\embedded-db\openfire.lck] is presumably locked by another process.
  • The database is already in use by another process: org.hsqldb.persist.NIOLockFile@af9db647\[file =C:\prog\xplanner-0.7b7-standalone\hsqldb\xplanner.lck, exists=true, locked=false, valid=false, fl =null\]: java.lang.Exception: checkHeartbeat(): lock file \[C:\prog\xplanner-0.7b7-standalone\hsqldb\xplanner.lck\] is presumably locked by another process.
  • Stack trace

    • java.sql.SQLException: The database is already in use by another process: org.hsqldb.NIOLockFile@d80fd9e8\[file =C:\Projects\JavaNetBeans\DBtest\db\officer.lck.lck, exists=true, locked=false, valid=false, fl =null\]: java.lang.Exception: checkHeartbeat(): lock file \[C:\Projects\JavaNetBeans\DBtest\db\officer.lck.lck\] is presumably locked by another process. at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67) at org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2427) at org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:188) at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:166) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at testdb.Testdb.<init>(Testdb.java:38) at testdb.Testdb.main(Testdb.java:123)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 more bugmates