org.springframework.dao.InvalidDataAccessApiUsageException

Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your S ession into FlushMode.AUTO or remove 'readOnly' marker from transaction definition. @4000000052fba75d0837c08c at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000) @4000000052fba75d0837eb84 at org.springframework.orm.hibernate.HibernateTemplate$11.doInHibernate(HibernateTemplate.java:590) @4000000052fba75d0837ef6c at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) @4000000052fba75d0837ef6c at org.springframework.orm.hibernate.HibernateTemplate.update(HibernateTemplate.java:588) @4000000052fba75d0837f354 at org.springframework.orm.hibernate.HibernateTemplate.update(HibernateTemplate.java:584) @4000000052fba75d0837f73c at bucket.user.persistence.dao.hibernate.BucketPropertySetDAO.setImpl(BucketPropertySetDAO.java:35) @4000000052fba75d0837fb24 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @4000000052fba75d083806dc at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @4000000052fba75d08380ac4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @4000000052fba75d08380eac at java.lang.reflect.Method.invoke(Method.java:597) @4000000052fba75d08380eac at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @4000000052fba75d08381294 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @4000000052fba75d0838167c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @4000000052fba75d08381a64 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @4000000052fba75d083831d4 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @4000000052fba75d083835bc at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @4000000052fba75d083839a4 at $Proxy84.setImpl(Unknown Source) @4000000052fba75d083839a4 at bucket.user.propertyset.BucketPropertySet.setImpl(BucketPropertySet.java:170) @4000000052fba75d0838455c at com.opensymphony.module.propertyset.AbstractPropertySet.set(AbstractPropertySet.java:570) @4000000052fba75d0838455c at com.opensymphony.module.propertyset.AbstractPropertySet.setString(AbstractPropertySet.java:368) @4000000052fba75d08384944 at com.atlassian.confluence.core.DefaultContentPropertyManager.setStringProperty(DefaultContentPropertyManager.java:94) @4000000052fba75d08384d2c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @4000000052fba75d08385114 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @4000000052fba75d08385114 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @4000000052fba75d083854fc at java.lang.reflect.Method.invoke(Method.java:597) @4000000052fba75d083854fc at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by Steve Lancashire [Atlassian],
  • via Unknown by Steve Lancashire [Atlassian],
  • Stack trace

    • org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your S ession into FlushMode.AUTO or remove 'readOnly' marker from transaction definition. @4000000052fba75d0837c08c at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000) @4000000052fba75d0837eb84 at org.springframework.orm.hibernate.HibernateTemplate$11.doInHibernate(HibernateTemplate.java:590) @4000000052fba75d0837ef6c at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) @4000000052fba75d0837ef6c at org.springframework.orm.hibernate.HibernateTemplate.update(HibernateTemplate.java:588) @4000000052fba75d0837f354 at org.springframework.orm.hibernate.HibernateTemplate.update(HibernateTemplate.java:584) @4000000052fba75d0837f73c at bucket.user.persistence.dao.hibernate.BucketPropertySetDAO.setImpl(BucketPropertySetDAO.java:35) @4000000052fba75d0837fb24 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @4000000052fba75d083806dc at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @4000000052fba75d08380ac4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @4000000052fba75d08380eac at java.lang.reflect.Method.invoke(Method.java:597) @4000000052fba75d08380eac at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @4000000052fba75d08381294 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @4000000052fba75d0838167c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @4000000052fba75d08381a64 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @4000000052fba75d083831d4 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @4000000052fba75d083835bc at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @4000000052fba75d083839a4 at $Proxy84.setImpl(Unknown Source) @4000000052fba75d083839a4 at bucket.user.propertyset.BucketPropertySet.setImpl(BucketPropertySet.java:170) @4000000052fba75d0838455c at com.opensymphony.module.propertyset.AbstractPropertySet.set(AbstractPropertySet.java:570) @4000000052fba75d0838455c at com.opensymphony.module.propertyset.AbstractPropertySet.setString(AbstractPropertySet.java:368) @4000000052fba75d08384944 at com.atlassian.confluence.core.DefaultContentPropertyManager.setStringProperty(DefaultContentPropertyManager.java:94) @4000000052fba75d08384d2c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @4000000052fba75d08385114 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @4000000052fba75d08385114 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @4000000052fba75d083854fc at java.lang.reflect.Method.invoke(Method.java:597) @4000000052fba75d083854fc at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.