com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '273f91ba-4d9d-42a2-94a3-1ce6efc2ab23' for key 'PRIMARY'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Check whether privilege has the "not null" restriction. If so it always has to have a value and can never be null.

A different reason could be a wrong implementation of a foreign key. Check whether you always correctly insert/update in both tables.

Solutions on the web

via GitHub by Eredrim
, 2 months ago
Duplicate entry '273f91ba-4d9d-42a2-94a3-1ce6efc2ab23' for key 'PRIMARY'
via GitHub by Eredrim
, 9 months ago
Duplicate entry '273f91ba-4d9d-42a2-94a3-1ce6efc2ab23' for key 'PRIMARY'
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '273f91ba-4d9d-42a2-94a3-1ce6efc2ab23' for key 'PRIMARY'
at sun.reflect.GeneratedConstructorAccessor304.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
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.StatementImpl.executeUpdateInternal(StatementImpl.java:1540)
at com.mysql.jdbc.StatementImpl.executeLargeUpdate(StatementImpl.java:2595)
at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1468)
at eu.reborn_minecraft.zhorse.database.SQLDatabaseConnector.executeUpdate(SQLDatabaseConnector.java:55)
at eu.reborn_minecraft.zhorse.managers.DataManager.registerHorseStats(DataManager.java:319)
at eu.reborn_minecraft.zhorse.utils.DelayedChunckUnload$1.run(DelayedChunckUnload.java:25)
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353)
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:730)
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399)
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675)
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
69 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.