org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-187]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you're not creating unused SQL entities, as it might cause this exception.

Solutions on the web

via userecho.com by Unknown author, 1 year ago
Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-187]
via sourceforge.net by Unknown author, 1 year ago
Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode
via gmane.org by Unknown author, 2 years ago
Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-173]
via git.net by Unknown author, 2 years ago
Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-173]
via Google Groups by Samuel Wang, 2 years ago
Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-173]
via Google Groups by Samuel Wang, 2 years ago
Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-173]
org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-187]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:179)
at org.h2.message.DbException.get(DbException.java:155)
at org.h2.store.FileLock.getExceptionAlreadyInUse(FileLock.java:461)
at org.h2.store.FileLock.lockFile(FileLock.java:355)
at org.h2.store.FileLock.lock(FileLock.java:135)
at org.h2.engine.Database.open(Database.java:634)
at org.h2.engine.Database.openDatabase(Database.java:266)
at org.h2.engine.Database.(Database.java:260)
at org.h2.engine.Engine.openSession(Engine.java:60)
at org.h2.engine.Engine.openSession(Engine.java:167)
at org.h2.engine.Engine.createSessionAndValidate(Engine.java:145)
at org.h2.engine.Engine.createSession(Engine.java:128)
at org.h2.engine.Engine.createSession(Engine.java:26)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:347)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:108)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:92)
at org.h2.Driver.connect(Driver.java:72)
at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:190)
at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:353)
at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:385)
at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:227)
at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)
at com.ubooquity.data.database.c.h(SourceFile:144)
at com.ubooquity.data.database.c.(SourceFile:48)
at com.ubooquity.Ubooquity.main(SourceFile:258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.ubooquity.e.c.a(SourceFile:823)
at com.ubooquity.Launcher.main(SourceFile:10)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Once, 5 days ago
Once, 1 week ago
151 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.