Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-2280

Null/Duplicate constraint violation for Topic Draft

VotersWatchers
    XMLWordPrintable

    Details

    • Sprint:
      3.6 Larks, 3.8 Larks

      Description

      In logs I could find:

      2015-12-26 09:50:46 [WARN ][io-8080-exec-722][suhara][           org.jtalks.jcommune] - Handler execution resulted in exception
      org.springframework.dao.DataIntegrityViolationException: could not insert: [org.jtalks.jcommune.model.entity.PostDraft]; SQL [insert into POST_DRAFT (UUID, CONTENT, LAST_SAVED, TOPI
      C_ID, USER_ID) values (?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [org.jtalks.jcommune.model.ent
      ity.PostDraft]
              at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:643)
              at org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:794)
              at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:665)
              at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:755)
              at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724)
              at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:475)
              at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:270)
              at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
              at com.sun.proxy.$Proxy103.saveOrUpdateDraft(Unknown Source)
              at org.jtalks.jcommune.web.controller.PostController.saveDraft(PostController.java:400)
      ...
      Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '48317-137129' for key 'TOPIC_ID'
      

      We need to find the reason and fix it.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  ctapobep Stanislav Bashkyrtsev
                  Reporter:
                  ctapobep Stanislav Bashkyrtsev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel