net.sf.hibernate.HibernateException: identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405

Atlassian JIRA | John Watson | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Occasionally and very difficult to reproduce, when resuming a draft, it cannot be saved again. Log shows: {noformat} org.springframework.orm.hibernate.HibernateSystemException: identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405; nested exception is net.sf.hibernate.HibernateException: identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405 at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) at org.springframework.orm.hibernate.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:607) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:518) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy108.saveDraftFromEditor(Unknown Source) {noformat}

    Atlassian JIRA | 4 years ago | John Watson
    net.sf.hibernate.HibernateException: identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405
  2. 0

    Occasionally and very difficult to reproduce, when resuming a draft, it cannot be saved again. Log shows: {noformat} org.springframework.orm.hibernate.HibernateSystemException: identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405; nested exception is net.sf.hibernate.HibernateException: identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405 at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) at org.springframework.orm.hibernate.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:607) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:518) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy108.saveDraftFromEditor(Unknown Source) {noformat}

    Atlassian JIRA | 4 years ago | John Watson
    net.sf.hibernate.HibernateException: identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405

    Root Cause Analysis

    1. net.sf.hibernate.HibernateException

      identifier of an instance of com.atlassian.confluence.pages.Draft altered from 18448406 to 18448405

      at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException()
    2. Hibernate
      HibernateTransactionManager.doCommit
      1. org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597)
      2. org.springframework.orm.hibernate.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:607)
      3. org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:518)
      3 frames
    3. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732)
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)
      3. org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321)
      4. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
      4 frames
    4. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    5. com.sun.proxy
      $Proxy108.saveDraftFromEditor
      1. com.sun.proxy.$Proxy108.saveDraftFromEditor(Unknown Source)
      1 frame