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
  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)
  2. 0

    javatalks.ru / EJB+JPA+AspectJ, MySQLIntegrityConstraintViolationException

    javatalks.ru | 4 months ago
    com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '16' for key 'PRIMARY' Error Code: 1062 Call: INSERT INTO unit (id, addr_street, addr_building, admin_email, version, addr_postcode, addr_room, addr_city, name, descr, admin_phone, winDomain, dynamicEnabled, authority_id, organization_id, aup_policy_id, alert_policy_id, image_policy_id, monitor_policy_id, audit_event_policy_id, parent_id, access_policy_id, lib_policy_id, web_policy_id, ldap_sync_policy_id, TYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) bind => [16, null, null, , 1, null, null, null, USER GROUP, null, null, null, false, 2, 3, 16, 16, 16, 16, 16, 15, 16, 16, 16, 16, 5] Query: WriteObjectQuery(UserGroup:16 USER GROUP)
  3. 0

    javatalks.ru / EJB+JPA+AspectJ, MySQLIntegrityConstraintViolationException

    javatalks.ru | 4 months ago
    com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '16' for key 'PRIMARY' Error Code: 1062 Call: INSERT INTO unit (id, addr_street, addr_building, admin_email, version, addr_postcode, addr_room, addr_city, name, descr, admin_phone, winDomain, dynamicEnabled, authority_id, organization_id, aup_policy_id, alert_policy_id, image_policy_id, monitor_policy_id, audit_event_policy_id, parent_id, access_policy_id, lib_policy_id, web_policy_id, ldap_sync_policy_id, TYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) bind => [16, null, null, , 1, null, null, null, USER GROUP, null, null, null, false, 2, 3, 16, 16, 16, 16, 16, 15, 16, 16, 16, 16, 5] Query: WriteObjectQuery(UserGroup:16 USER GROUP)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Duplicate primary key error while inserting data in mysql

    Stack Overflow | 2 years ago
    com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 'PRIMARY' Error Code: 1062 Call: INSERT INTO ReceivedPacketsStats (id, CodeRate, DataRate, Frequency, Signalisation, Lsnr, NodeMacAddress, MessageID, Modulation, Nature, Rssi, Size, Status, Time, timestamp, TypeMessage) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) bind => [16 parameters bound] Query: InsertObjectQuery(eu.telecombretagne.loraFabian.KPI.KPI@7a363633)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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