org.springframework.jdbc.support.MetaDataAccessException

Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Connection has already been closed.


Solutions on the web109

Solution icon of stackoverflow
Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Connection has already been closed.

Solution icon of web
Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Closed Connection

Solution icon of web
Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Closed Connection

Solution icon of web
Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Closed Connection

Solution icon of stackoverflow
Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Closed Connection

Solution icon of stackoverflow
Error while extracting DatabaseMetaData; nested exception is org.postgresql.util.PSQLException: This connection has been closed.

Solution icon of web
Error while extracting DatabaseMetaData; nested exception is org.postgresql.util.PSQLException: This connection has been closed.

Solution icon of web
Error while extracting DatabaseMetaData; nested exception is org.postgresql.util.PSQLException: This connection has been closed.

Solution icon of stackoverflow
Error while extracting DatabaseMetaData; nested exception is org.postgresql.util.PSQLException: This connection has been closed.

Solution icon of oraclecommunity
Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Closed Connection java.sql.SQLException: Closed Connection

Stack trace

  • org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Connection has already been closed. at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:305) at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:329) at org.springframework.jdbc.support.SQLErrorCodesFactory.getErrorCodes(SQLErrorCodesFactory.java:214) at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:134) at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>(SQLErrorCodeSQLExceptionTranslator.java:97) at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:99) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:645) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757) at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192)

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

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago