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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Steve Lancashire [Atlassian], 1 year ago
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
via Atlassian JIRA by Steve Lancashire [Atlassian], 1 year ago
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.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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.