'Connection readOnly mode is not enforceable after the connection has been established' Error Messages
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
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:
1
[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.
Was this helpful?