com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 1Error Code: 1062 Call:INSERT INTO client (CNo, CName, CUserName, CAddr1, CAddr2, CAddr3, CEmail, CPassword, CTitle, CTelNo, CCreditCard, CSName) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) bind => [1, null, null, null, null, null, null, null, null, 0, 0, null] Query:InsertObjectQuery(1)

Oracle Community | infonote | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    EJB3 @generatedvalue not working

    Oracle Community | 1 decade ago | infonote
    com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 1Error Code: 1062 Call:INSERT INTO client (CNo, CName, CUserName, CAddr1, CAddr2, CAddr3, CEmail, CPassword, CTitle, CTelNo, CCreditCard, CSName) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) bind => [1, null, null, null, null, null, null, null, null, 0, 0, null] Query:InsertObjectQuery(1)

    Root Cause Analysis

    1. com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException

      Duplicate entry '1' for key 1Error Code: 1062 Call:INSERT INTO client (CNo, CName, CUserName, CAddr1, CAddr2, CAddr3, CEmail, CPassword, CTitle, CTelNo, CCreditCard, CSName) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) bind => [1, null, null, null, null, null, null, null, null, 0, 0, null] Query:InsertObjectQuery(1)

      at oracle.toplink.essentials.exceptions.DatabaseException.sqlException()
    2. oracle.toplink.essentials
      DatabaseAccessor.executeDirectNoSelect
      1. oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:295)
      2. oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:639)
      2 frames