org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.

Atlassian JIRA | Joseph Walton | 4 years ago
  1. 0

    [CWD-3114] PluginSettingsFactory does not create transactions - Atlassian JIRA

    atlassian.com | 11 months ago
    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
  2. 0

    Using a PluginSettingsFactory in a Crowd plugin fails on modification attempts: {noformat} org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition. at org.springframework.orm.hibernate3.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1175) at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:739) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406) at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:737) at com.atlassian.crowd.util.persistence.hibernate.HibernateDao.update(HibernateDao.java:63) at com.atlassian.crowd.dao.property.PropertyDAOHibernate.update(PropertyDAOHibernate.java:62) at com.atlassian.crowd.manager.property.PluginPropertyManagerGeneric.setProperty(PluginPropertyManagerGeneric.java:64) at com.atlassian.sal.crowd.pluginsettings.CrowdPluginSettings.putActual(CrowdPluginSettings.java:54) at com.atlassian.sal.core.pluginsettings.AbstractStringPluginSettings.put(AbstractStringPluginSettings.java:76) at group.ExampleServlet.doGet(ExampleServlet.java:44) {noformat} The PluginPropertyManager needs an interceptor configured to set the appropriate transaction behaviour for that session.

    Atlassian JIRA | 4 years ago | Joseph Walton
    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
  3. 0

    Using a PluginSettingsFactory in a Crowd plugin fails on modification attempts: {noformat} org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition. at org.springframework.orm.hibernate3.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1175) at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:739) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406) at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:737) at com.atlassian.crowd.util.persistence.hibernate.HibernateDao.update(HibernateDao.java:63) at com.atlassian.crowd.dao.property.PropertyDAOHibernate.update(PropertyDAOHibernate.java:62) at com.atlassian.crowd.manager.property.PluginPropertyManagerGeneric.setProperty(PluginPropertyManagerGeneric.java:64) at com.atlassian.sal.crowd.pluginsettings.CrowdPluginSettings.putActual(CrowdPluginSettings.java:54) at com.atlassian.sal.core.pluginsettings.AbstractStringPluginSettings.put(AbstractStringPluginSettings.java:76) at group.ExampleServlet.doGet(ExampleServlet.java:44) {noformat} The PluginPropertyManager needs an interceptor configured to set the appropriate transaction behaviour for that session.

    Atlassian JIRA | 4 years ago | Joseph Walton
    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring and Hibernate suddenly set the transaction to readonly

    Stack Overflow | 6 years ago | aseesing
    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
  6. 0

    HIbernate InvalidDataAccessApiUsageException - read-only mode

    Stack Overflow | 6 years ago | Nathan Spears
    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.dao.InvalidDataAccessApiUsageException

      Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.

      at org.springframework.orm.hibernate3.HibernateTemplate.checkWriteOperationAllowed()
    2. Hibernate
      HibernateTemplate.saveOrUpdate
      1. org.springframework.orm.hibernate3.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1175)
      2. org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:739)
      3. org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
      4. org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
      5. org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:737)
      5 frames
    3. com.atlassian.crowd
      PluginPropertyManagerGeneric.setProperty
      1. com.atlassian.crowd.util.persistence.hibernate.HibernateDao.update(HibernateDao.java:63)
      2. com.atlassian.crowd.dao.property.PropertyDAOHibernate.update(PropertyDAOHibernate.java:62)
      3. com.atlassian.crowd.manager.property.PluginPropertyManagerGeneric.setProperty(PluginPropertyManagerGeneric.java:64)
      3 frames
    4. com.atlassian.sal
      AbstractStringPluginSettings.put
      1. com.atlassian.sal.crowd.pluginsettings.CrowdPluginSettings.putActual(CrowdPluginSettings.java:54)
      2. com.atlassian.sal.core.pluginsettings.AbstractStringPluginSettings.put(AbstractStringPluginSettings.java:76)
      2 frames
    5. group
      ExampleServlet.doGet
      1. group.ExampleServlet.doGet(ExampleServlet.java:44)
      1 frame