Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not reopen database #81

Open
Ravi8055 opened this issue Oct 5, 2017 · 1 comment
Open

could not reopen database #81

Ravi8055 opened this issue Oct 5, 2017 · 1 comment

Comments

@Ravi8055
Copy link

Ravi8055 commented Oct 5, 2017

Hi Everyone,

I am running this framework through Eclipse by using Gradle, Junit and feature file.

frequently I am getting below problem. If am deleting manually untitled1.lck file , its runs but only once. For next execution again below problem is accruing

10706 [main] FATAL hsqldb.db..ENGINE - could not reopen database
org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@d0ec271b[file =Z:\newWorkspaceForBDD\bdd-security-master\zap\tmp\session\untitled1.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat read: 2017-10-05 07:28:24 heartbeat - read: -763 ms.

@stephendv1
Copy link
Contributor

Hi @Ravi8055, I have not tried to run using Eclipse or JUnit. The lock file is generated by OWASP ZAP and could mean that ZAP doesn't shutdown between executions. Check that ZAP isn't already running between different executions. If it isn't, then a quick fix would be to add a line to the "generateReport" task in build.gradle to try and delete the lck file if it exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants