org.h2.jdbc.JdbcSQLException: The database has been closed [90098-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 GitHub by 1inuxoid
, 1 year ago
Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-176]
via GitHub by bmason42
, 1 year ago
Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-191]
via Stack Overflow by Unknown author, 2 years ago
Объект уже закрыт The object is already closed [90007-167]
via nabble.com by Unknown author, 2 years ago
The database has been closed [90098-162]
via Stack Overflow by user1432980
, 10 months ago
The object is already closed [90007-170]
org.h2.jdbc.JdbcSQLException: The database has been closed [90098-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.message.DbException.get(DbException.java:144)
at org.h2.engine.Session.getTransaction(Session.java:1451)
at org.h2.engine.Session.getStatementSavepoint(Session.java:1461)
at org.h2.engine.Session.setSavepoint(Session.java:690)
at org.h2.command.Command.executeUpdate(Command.java:248)
at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:198)
at flextrade.flexfixj.warehouse.impl.statements.UpdateSessionStatement.execute(UpdateSessionStatement.java:45)
at flextrade.flexfixj.persistence.AsynchronousPersisterImpl.executeStatement(AsynchronousPersisterImpl.java:46)
at flextrade.flexfixj.persistence.AsynchronousPersisterImpl.enqueueStatement(AsynchronousPersisterImpl.java:37)
at flextrade.flexfixj.warehouse.impl.JdbcWarehouse.updateSession(JdbcWarehouse.java:227)
at flextrade.flexfixj.warehouse.impl.JdbcWarehouse.incrNextTargetMsgSeqNum(JdbcWarehouse.java:588)
at quickfix.SessionState.incrNextTargetMsgSeqNum(SessionState.java:370)
at quickfix.Session.nextHeartBeat(Session.java:1602)
at quickfix.Session.next(Session.java:1002)
at quickfix.ThrottleableThreadPerSessionEventHandlingStrategy$MessageDispatchConsumer.run(ThrottleableThreadPerSessionEventHandlingStrategy.java:151)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

4 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Once, 1 week ago

Write tip

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