java.sql.SQLException: Protocol violation caught while accessing a page and Oracle DB is used

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.


Users are not able to access particular pages in Confluence.

The following appears in the atlassian-confluence.log

2015-09-02 08:38:58,612 ERROR [http-bio-8090-exec-24258] [sf.hibernate.collection.PersistentCollection] initialize Failed to lazily initialize a collection
 -- url: /display/webservices/CMS+Essentials | page: 52895049 | userName: mh993 | referer: https://<URL>/display/webservices/Home | action: viewpage
net.sf.hibernate.exception.GenericJDBCException: could not initialize collection: [com.atlassian.confluence.core.ContentEntityObject.bodyContents#52895049]
        at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(
        at net.sf.hibernate.exception.ErrorCodeConverter.convert(
Caused by: java.sql.SQLException: Protocol violation: [ 14, 34, ]
        at oracle.jdbc.driver.T4CTTIfun.receive(
        at oracle.jdbc.driver.T4CTTIfun.doRPC(
        at oracle.jdbc.driver.T4CConnection.getChars(
        at oracle.sql.CLOB.getChars(
        at oracle.sql.CLOB.getSubString(
2015-09-02 08:38:58,628 ERROR [http-bio-8090-exec-24258] [sf.hibernate.transaction.JDBCTransaction] rollback Rollback failed
 -- url: /display/webservices/CMS+Essentials | userName: mh993 | referer: https://<URL>/display/webservices/Home
java.sql.SQLException: Protocol violation: [ 0, ]
        at oracle.jdbc.driver.T4CTTIfun.receive(
        at oracle.jdbc.driver.T4CTTIfun.doRPC(
        at oracle.jdbc.driver.T4C7Ocommoncall.doOROLLBACK(



  • As SQLException: Protocol violation itself is normally caused by the Oracle driver. Therefore, first please ensure that you've used the correct Database JDBC Driver in your Confluence instance.

  • Your Confluence instance is configured to use Oracle ojdbc7.jar version to connect to your Oracle 12c Database.


Should the issue still persist after you use the correct JDBC Driver and indeed you're using Oracle ojdbc7.jar version for your Oracle 12c Database, you are then hitting a known bug in Oracle ojdbc7.jar version driver itself as discussed in this StackOverflow post.


  1. Stop Confluence
  2. Download ojdbc7.jar version
  3. Update your JDBC driver by copying the driver JAR file to the <Confluence-Installation>/confluence/WEB-INF/lib folder in your Confluence installation.
  4. Restart Confluence.

DescriptionUsers are not able to access particular pages in Confluence.
Last modified on Nov 2, 2018

Was this helpful?

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