java.io.IOException: Error writing to the database: Duplicate entry 'xxx-10142-xxx' for key 'cru_source_name'

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 Felipe Kraemer, 1 year ago
Error writing to the database: Duplicate entry 'xxx-10142-xxx' for key 'cru_source_name'
via Atlassian JIRA by Felipe Kraemer, 1 year ago
Error writing to the database: Duplicate entry 'xxx-10142-xxx' for key 'cru_source_name'
via Atlassian JIRA by Dylan Hansen [Atlassian], 1 year ago
Error talking to database: Problem opening create tables script
via Atlassian JIRA by Dylan Hansen [Atlassian], 1 year ago
Error talking to database: Problem opening create tables script
via atlassian.com by Unknown author, 1 year ago
Error talking to database: Problem with constraints script /opt/fisheye_home/sql/POSTGRESQL/schema/constraints_76.sql
via Atlassian JIRA by Cezary Zawadka, 1 year ago
Error talking to database: Problem with constraints script /opt/webservers/fecru-2.6.0_initial/sql/MYSQL/schema/constraints_73.sql
java.io.IOException: Error writing to the database: Duplicate entry 'xxx-10142-xxx' for key 'cru_source_name'
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2007)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1443)
at com.atlassian.crucible.migration.item.DBImporter$BatchInserter.flush(DBImporter.java:313)
at com.atlassian.crucible.migration.item.DBImporter$BatchInserter.executePS(DBImporter.java:308)
at com.atlassian.crucible.migration.item.DBImporter$BaseInserter.execute(DBImporter.java:456)
at com.atlassian.crucible.migration.item.DBImporter.importTable(DBImporter.java:182)
at com.atlassian.crucible.migration.item.DBImporter.importData(DBImporter.java:134)
at com.atlassian.crucible.migration.item.SQLBackup.restore(SQLBackup.java:188)
at com.atlassian.crucible.migration.item.SQLBackup$1.restore(SQLBackup.java:169)
at com.cenqua.fisheye.ctl.Restore.run(Restore.java:191)
at com.cenqua.fisheye.ctl.Restore.main(Restore.java:267)
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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:99)
at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42)

Users with the same issue

166 times, 5 months ago
32 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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