javax.persistence.PersistenceException: ERROR executing DML bindLog[] error[Duplicate entry '19' for key 'PRIMARY']

GitHub | Vilican | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    MySQL exception

    GitHub | 8 months ago | Vilican
    javax.persistence.PersistenceException: ERROR executing DML bindLog[] error[Duplicate entry '19' for key 'PRIMARY']
  2. 0

    Exception on server switch.

    GitHub | 1 year ago | Flash2over
    org.apache.commons.lang.UnhandledException: Plugin PlayerSQL v2.0-SNAPSHOT generated an exception while executing task 1143
  3. 0

    ManyToMany mapping on same object throwing exception while update

    Stack Overflow | 3 years ago | Rembo
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '19' for key 'PRIMARY'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Current culprits of multiple simultaneous saves

    GitHub | 7 months ago | ProgrammerDan
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '23068d2b-9421-44a4-8db5-745ff921bad9-1' for key 'PRIMARY'
  6. 0

    java.sql.SQLException: Unable to run insert stmt on object ...

    GitHub | 6 months ago | Typhome
    java.sql.SQLException: Unable to run insert stmt on object me.confuser.banmanager.data.PlayerMuteData@7642aa2d: INSERT INTO `bm_player_mutes` (`player_id` ,`reason` ,`actor_id` ,`created` ,`updated` ,`expires` ,`soft` ) VALUES (?,?,?,?,?,?,?)
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.jdbc4.MySQLIntegrityConstraintViolationException

    Duplicate entry '19' for key 'PRIMARY'

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  3. MySQL jdbc
    PreparedStatement.executeUpdate
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
    2. com.mysql.jdbc.Util.getInstance(Util.java:387)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)
    4. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806)
    6. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2470)
    7. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617)
    8. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550)
    9. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
    10. com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
    11. com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
    12. com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5094)
    13. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994)
    13 frames
  4. avaje-ebeanorm
    DefaultServer.save
    1. com.avaje.ebeaninternal.server.lib.sql.ExtendedPreparedStatement.executeUpdate(ExtendedPreparedStatement.java:164)
    2. com.avaje.ebeaninternal.server.type.DataBind.executeUpdate(DataBind.java:74)
    3. com.avaje.ebeaninternal.server.persist.dml.InsertHandler.execute(InsertHandler.java:158)
    4. com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:105)
    5. com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.insert(DmlBeanPersister.java:76)
    6. com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeInsertBean(DefaultPersistExecute.java:91)
    7. com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:500)
    8. com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:530)
    9. com.avaje.ebeaninternal.server.persist.DefaultPersister.insert(DefaultPersister.java:406)
    10. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaInsert(DefaultPersister.java:377)
    11. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaRecurse(DefaultPersister.java:361)
    12. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:308)
    13. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveAssocOne(DefaultPersister.java:1229)
    14. com.avaje.ebeaninternal.server.persist.DefaultPersister.update(DefaultPersister.java:432)
    15. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveEnhanced(DefaultPersister.java:343)
    16. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:315)
    17. com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:282)
    18. com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1629)
    19. com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1619)
    19 frames
  5. com.lenis0012.bukkit
    PlayerSession$1.run
    1. com.lenis0012.bukkit.loginsecurity.session.PlayerSession$1.run(PlayerSession.java:48)
    1 frame
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames