com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException

Duplicate entry 'Gleißner-A.-0' for key 'PRIMARY'

Solutions on the web655

  • Duplicate entry 'Gleißner-A.-0' for key 'PRIMARY'
  • via Oracle Community by Ronald Randon, 1 year ago
    Duplicate entry 'o150001-0' for key 'PRIMARY'
  • via spring.io by Unknown author, 1 year ago
    Duplicate entry '0' for key 'PRIMARY'
  • Stack trace

    • com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'Gleißner-A.-0' for key 'PRIMARY' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) at com.mysql.jdbc.Util.getInstance(Util.java:387) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2526) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2673) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2503) at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:839) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:739) at mySQLInsert.InsertPerson.main(InsertPerson.java:111)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 4 days ago
    9 times, 1 week ago
    19 times, 2 months ago
    12 times, 7 months ago
    2 times, 10 months ago
    63 more bugmates