com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'James-Healey' for key 'UNQ_players_0' Error Code: 1062 Call: INSERT INTO players (email, dob, lastname, firstname, photo, birthcertificate, version, user) VALUES (?, ?, ?, ?, ?, ?, ?, ?) bind => [james@james.com, 1998-08-12, Healey, James, null, null, 1, 1] Query: InsertObjectQuery(uk.co.sportquest.entities.Player[id=null])

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 Oracle Community by healeyb, 1 year ago
Duplicate entry 'James-Healey' for key 'UNQ_players_0' Error Code: 1062 Call: INSERT INTO players (email, dob, lastname, firstname, photo, birthcertificate, version, user) VALUES (?, ?, ?, ?, ?, ?, ?, ?) bind => [james@james.com, 1998-08-12, Healey, James, null, null, 1, 1] Query: InsertObjectQuery(uk.co.sportquest.entities.Player[id=null])
via eclipse.org by Unknown author, 1 year ago
Duplicate entry '12345462-2279-4516-af7d-cf9716f7748a' for key 1 Error Code: 1062 Call: INSERT INTO BATCH (BATCH_ID, MESSAGE, STATUS, UPLOAD_DATE) VALUES (?, ?, ?, ?) bind => [4 parameters bound] Query: InsertObjectQuery(BatchID=12345462-2279-4516-af7d-cf9716f7748a;Status=new;Message=null)
via Coderanch by Jay Tai, 11 months ago
Duplicate entry '2' for key 'PRIMARY' Error Code: 1062 Call: INSERT INTO projects_beta2b_projects_beta2b (projects_PROJECTID) VALUES (?) bind => [1 parameter bound] Query: DataModifyQuery(name="projects" sql="INSERT INTO projects_beta2b_projects_beta2b (projects_PROJECTID) VALUES (?)")
via coderanch.com by Unknown author, 1 year ago
Duplicate entry '2' for key 'PRIMARY' Error Code: 1062 Call: INSERT INTO projects_beta2b_projects_beta2b (projects_PROJECTID) VALUES (?) bind => [1 parameter bound] Query: DataModifyQuery(name="projects" sql="INSERT INTO projects_beta2b_projects_beta2b (projects_PROJECTID) VALUES (?)")
via Stack Overflow by marcelocbf
, 2 years ago
Duplicate entry '01809552-4f552-4f87-45b0-afff-2c6f0730a3be' for key 'GLOBAL_ID' Error Code: 1062 Call: INSERT INTO ARTIST (MYID, ANNOTATION, COMMENT, COUNTRY, GENDER, LASTDATANORMALIZATIONDATE, LASTUPDATEDON, LIKES, GLOBAL_ID, NAME, SINCEDATE, TAGS
via Coderanch by Asme Williams, 11 months ago
Column 'address_addressid' cannot be null Error Code: 1048 Call: INSERT INTO STUDENT (STUDENTID, LASTNAME, FIRSTNAME, YEARLEVEL, ADDRESS_ADDRESSID) VALUES (?, ?, ?, ?, ?) bind => [18, 8, 8, 8, null] Query: InsertObjectQuery(com.cheikh.model.Student@b84c8b)
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'James-Healey' for key 'UNQ_players_0' Error Code: 1062 Call: INSERT INTO players (email, dob, lastname, firstname, photo, birthcertificate, version, user) VALUES (?, ?, ?, ?, ?, ?, ?, ?) bind => [james@james.com, 1998-08-12, Healey, James, null, null, 1, 1] Query: InsertObjectQuery(uk.co.sportquest.entities.Player[id=null])
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:800)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:866)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:586)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:529)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeCall(AbstractSession.java:914)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:205)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:191)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:334)
at org.eclipse.persistence.internal.queries.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:162)
at org.eclipse.persistence.internal.queries.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:177)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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