javax.persistence.PersistenceException

ERROR executing DML bindLog[] error[[SQLITE_CONSTRAINT] Abort due to constraint violation (PRIMARY KEY must be unique)]

Solutions on the web1796

  • via GitHub by HashSploit
    , 1 year ago
    ERROR executing DML bindLog[] error[[SQLITE_CONSTRAINT] Abort due to constraint violation (PRIMARY KEY must be unique)]
  • ERROR executing DML bindLog[] error[[SQLITE_CONSTRAINT] Abort due to constraint violation (PRIMARY KEY must be unique)]
  • ERROR executing DML bindLog[] error[[SQLITE_CONSTRAINT] Abort due to constraint violation (column name is not unique)]
  • Stack trace

    • javax.persistence.PersistenceException: ERROR executing DML bindLog[] error[[SQLITE_CONSTRAINT] Abort due to constraint violation (PRIMARY KEY must be unique)] at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:116)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.insert(DmlBeanPersister.java:76)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeInsertBean(DefaultPersistExecute.java:91)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:500)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:530)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.DefaultPersister.insert(DefaultPersister.java:406)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaInsert(DefaultPersister.java:377)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaRecurse(DefaultPersister.java:361)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:308)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:282)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1820)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1806)[patched_1.10.2.jar:git-Paper-864] at com.github.games647.scoreboardstats.pvpstats.Database.lambda$setupDatabase$2(Database.java:227)[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_101] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[?:1.8.0_101] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[?:1.8.0_101] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[?:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_101] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_101] Caused by: java.sql.SQLException: [SQLITE_CONSTRAINT] Abort due to constraint violation (PRIMARY KEY must be unique) at org.sqlite.DB.newSQLException(DB.java:383)[patched_1.10.2.jar:git-Paper-864] at org.sqlite.DB.newSQLException(DB.java:387)[patched_1.10.2.jar:git-Paper-864] at org.sqlite.DB.execute(DB.java:342)[patched_1.10.2.jar:git-Paper-864] at org.sqlite.DB.executeUpdate(DB.java:363)[patched_1.10.2.jar:git-Paper-864] at org.sqlite.PrepStmt.executeUpdate(PrepStmt.java:85)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.lib.sql.ExtendedPreparedStatement.executeUpdate(ExtendedPreparedStatement.java:164)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.type.DataBind.executeUpdate(DataBind.java:74)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.dml.InsertHandler.execute(InsertHandler.java:158)[patched_1.10.2.jar:git-Paper-864] at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:105)[patched_1.10.2.jar:git-Paper-864] ... 19 more

    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

    36 times, 7 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago