org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-176]

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 WimVerhaert
, 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 Google Groups by kongf...@gmail.com, 2 years ago
Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-174]
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 user1432980
, 10 months ago
The object is already closed [90007-170]
via Stack Overflow by Buns of Aluminum
, 2 years ago
Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-170]
org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-176]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)
at org.h2.message.DbException.get(DbException.java:178)
at org.h2.message.DbException.get(DbException.java:154)
at org.h2.message.DbException.get(DbException.java:143)
at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1468)
at org.h2.jdbc.JdbcStatement.checkClosed(JdbcStatement.java:987)
at org.h2.jdbc.JdbcPreparedStatement.checkClosed(JdbcPreparedStatement.java:1621)
at org.h2.jdbc.JdbcStatement.checkClosed(JdbcStatement.java:961)
at org.h2.jdbc.JdbcResultSet.checkClosed(JdbcResultSet.java:3179)
at org.h2.jdbc.JdbcResultSet.getMetaData(JdbcResultSet.java:143)
at com.j256.ormlite.jdbc.JdbcDatabaseResults.(JdbcDatabaseResults.java:32)
at com.j256.ormlite.jdbc.JdbcCompiledStatement.runQuery(JdbcCompiledStatement.java:55)
at com.j256.ormlite.stmt.SelectIterator.(SelectIterator.java:55)
at com.j256.ormlite.stmt.StatementExecutor.buildIterator(StatementExecutor.java:247)
at com.j256.ormlite.stmt.StatementExecutor.query(StatementExecutor.java:196)
at com.j256.ormlite.dao.BaseDaoImpl.query(BaseDaoImpl.java:265)
at com.j256.ormlite.stmt.QueryBuilder.query(QueryBuilder.java:361)
at org.mycontroller.standalone.db.dao.MetricsDoubleTypeDeviceDaoImpl.getAggregationRequiredVariableIds(MetricsDoubleTypeDeviceDaoImpl.java:128)
at org.mycontroller.standalone.metrics.MetricsAggregationBase.aggregateForBucketSensorVariable(MetricsAggregationBase.java:56)
at org.mycontroller.standalone.metrics.MetricsAggregationBase.executeBucketByBucket(MetricsAggregationBase.java:220)
at org.mycontroller.standalone.metrics.MetricsAggregationBase.runAggregation(MetricsAggregationBase.java:312)
at org.mycontroller.standalone.metrics.jobs.MetricsAggregationJob.doRun(MetricsAggregationJob.java:35)
at org.knowm.sundial.Job.execute(Job.java:57)
at org.quartz.core.JobRunShell.run(JobRunShell.java:178)

Users with the same issue

Once, 1 week ago
Once, 1 week ago
4 times, 1 week ago
Once, 3 weeks ago
4 times, 1 month ago

Write tip

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