org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.confluence.core.BodyContent#10322006]; SQL []; integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT; nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT

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 Vladimir, 1 year ago
Hibernate operation: could not insert: [com.atlassian.confluence.core.BodyContent#10322006]; SQL []; integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT; nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT
via Atlassian JIRA by Vladimir, 1 year ago
Hibernate operation: could not insert: [com.atlassian.confluence.core.BodyContent#10322006]; SQL []; integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT; nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT
via Atlassian JIRA by Vladimir, 1 year ago
Hibernate operation: could not insert: com.atlassian.confluence.core.BodyContent#10322018; SQL []; integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT; nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT
via Kuali JIRA by Mike Riley, 1 year ago
OJB operation; SQL []; Cannot add or update a child row: a foreign key constraint fails (`kms`.`kms_doc_t`, CONSTRAINT `FK_FIL_DOC_ID` FOREIGN KEY (`DOC_ID`) REFERENCES `kms_fil_nm_t` (`DOC_ID`)); nested exception is com.mysql.jdbc.exceptions.jdbc4
via Kuali JIRA by Mike Riley, 1 year ago
OJB operation; SQL []; Cannot add or update a child row: a foreign key constraint fails (`kms`.`kms_doc_t`, CONSTRAINT `FK_FIL_DOC_ID` FOREIGN KEY (`DOC_ID`) REFERENCES `kms_fil_nm_t` (`DOC_ID`)); nested exception is com.mysql.jdbc.exceptions.jdbc4
via Stack Overflow by javatechnology
, 1 year ago
PreparedStatementCallback; SQL [insert into Address (id, address,country) values (?,?,?)]; Data truncation: Data too long for column 'address' at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'address' at row 1
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.confluence.core.BodyContent#10322006]; SQL []; integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT; nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:100)
at org.springframework.orm.hibernate.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:364)
at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:351)
at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:375)
at com.atlassian.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:350)
at com.atlassian.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:320)
at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateDraftDao.getDraft(HibernateDraftDao.java:72)
at com.atlassian.confluence.pages.DefaultDraftManager.findDraft(DefaultDraftManager.java:77)
at com.atlassian.confluence.pages.DefaultDraftManager.removeDraft(DefaultDraftManager.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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