'Connection readOnly mode is not enforceable after the connection has been established' Error Messages

Still need help?

The Atlassian Community is here for you.

Ask the community

This article applies to the DB2 database, which is no longer supported as of March 13, 2012. For more details see End of Support Announcements for Confluence.

Symptoms

The following warning appears in the logs:

[4/3/09 8:00:00:051 CDT] 00000615 JDBCException W net.sf.hibernate.util.JDBCExceptionReporter logWarnings Connection readOnly mode is not enforcable after the connection has been established. To enforce a read only connection, set the readOnly data source or connection property.

 Cause

The JDBC driver is not able to switch the connection to true read-only mode and logs a corresponding warning. So far, we have found this issue with Type 4 DB2 JDBC drivers (com.ibm.db2.jcc.DB2ConnectionPoolDataSource). There may be others as well.

Resolution

You can ignore these messages, as we have not found any adverse effects of this message. If you find an adverse effect please let us know by adding a comment to this page. Please also check the Hibernate forum for a more detailed discussion.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.