Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-3114

PluginSettingsFactory does not create transactions

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.6.1
    • None
    • None
    • None

      Using a PluginSettingsFactory in a Crowd plugin fails on modification attempts:

      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)
      

      The PluginPropertyManager needs an interceptor configured to set the appropriate transaction behaviour for that session.

          Form Name

            [CWD-3114] PluginSettingsFactory does not create transactions

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1511033 ] New: JAC Bug Workflow v3 [ 3365394 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1392991 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1511033 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 461638 ] New: Simplified Crowd Development Workflow v2 [ 1392991 ]
            Diego Berrueta made changes -
            Remote Link New: This issue links to "Wiki Page (Extranet)" [ 38059 ]
            joe made changes -
            Fix Version/s New: 2.6.1 [ 30697 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Technical Review [ 10028 ] New: Resolved [ 5 ]
            joe made changes -
            Status Original: In Progress [ 3 ] New: Technical Review [ 10028 ]
            joe made changes -
            Status Original: Verified [ 10005 ] New: In Progress [ 3 ]
            joe made changes -
            Assignee New: joe [ jwalton ]
            joe made changes -
            Rank New: Ranked higher
            joe made changes -
            Sprint New: Sprint 11 [ 370 ]

              jwalton joe
              jwalton joe
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: