org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch update; SQL []; Batch entry 0 insert into IMAGEDETAILS (HEIGHT, WIDTH, MIMETYPE, ATTACHMENTID) values (482, 630, 'image/jpeg', 17137749) was aborted. Call getNextException to see the cause.; nested exception is java.sql.BatchUpdateException: Batch entry 0 insert into IMAGEDETAILS (HEIGHT, WIDTH, MIMETYPE, ATTACHMENTID) values (482, 630, 'image/jpeg', 17137749) was aborted. Call getNextException to see the cause.

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Atlassian JIRA by Rachel Fuerst [Atlassian], 1 year ago
Hibernate operation: Could not execute JDBC batch update; SQL []; Batch entry 0 insert into IMAGEDETAILS (HEIGHT, WIDTH, MIMETYPE, ATTACHMENTID) values (482, 630, 'image/jpeg', 17137749) was aborted. Call getNextException to see the cause.; nested
via Atlassian JIRA by Adalberto Schneider [Atlassian], 1 year ago
Hibernate operation: could not delete: [com.atlassian.confluence.pages.Attachment#5799948]; SQL []; ERROR: update or delete on table "content" violates foreign key constraint "fka768048734a4917e" on table "imagedetails" Detail: Key (contentid
via Atlassian JIRA by Adalberto Schneider, 1 year ago
Hibernate operation: could not delete: [com.atlassian.confluence.pages.Attachment#5799948]; SQL []; ERROR: update or delete on table "content" violates foreign key constraint "fka768048734a4917e" on table "imagedetails" Detail: Key (contentid
via Atlassian JIRA by Pavel Dreger, 1 year ago
Hibernate operation: could not insert: [com.atlassian.confluence.pages.Page#721295]; SQL []; Duplicate entry '721295' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '721295' for key 'PRIMARY'
via Atlassian JIRA by Pavel Dreger, 1 year ago
Hibernate operation: could not insert: [com.atlassian.confluence.pages.Page#721295]; SQL []; Duplicate entry '721295' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '721295' for key 'PRIMARY'
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch update; SQL []; Batch entry 0 insert into IMAGEDETAILS (HEIGHT, WIDTH, MIMETYPE, ATTACHMENTID) values (482, 630, 'image/jpeg', 17137749) was aborted. Call getNextException to see the cause.; nested exception is java.sql.BatchUpdateException: Batch entry 0 insert into IMAGEDETAILS (HEIGHT, WIDTH, MIMETYPE, ATTACHMENTID) values (482, 630, 'image/jpeg', 17137749) was aborted. Call getNextException to see the cause.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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