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

  1. ,

    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.

  2. ,

    Nothing is wrong with the database. When it gives you those errors, it's telling you that you are trying to input "nothing" (null) into a column that doesn't allow it. Fix it by removing the not null constraint or by passing a value to that field.

Solutions on the web

via GitHub by Eredrim
, 9 months ago
Duplicate entry '273f91ba-4d9d-42a2-94a3-1ce6efc2ab23' for key 'PRIMARY'
via GitHub by Eredrim
, 1 year 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)[Server thread/WARN] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[Server thread/WARN] at java.lang.reflect.Constructor.newInstance(Constructor.java:422)[Server thread/WARN] at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)[Server thread/WARN] at com.mysql.jdbc.Util.getInstance(Util.java:387)[Server thread/WARN] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)[Server thread/WARN] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)[Server thread/WARN] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)[Server thread/WARN] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2526)[Server thread/WARN] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2673)[Server thread/WARN] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)[Server thread/WARN] at com.mysql.jdbc.StatementImpl.executeUpdateInternal(StatementImpl.java:1540)[Server thread/WARN] at com.mysql.jdbc.StatementImpl.executeLargeUpdate(StatementImpl.java:2595)[Server thread/WARN] at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1468)[Server thread/WARN] at eu.reborn_minecraft.zhorse.database.SQLDatabaseConnector.executeUpdate(SQLDatabaseConnector.java:55)[Server thread/WARN] at eu.reborn_minecraft.zhorse.managers.DataManager.registerHorseStats(DataManager.java:319)[Server thread/WARN] at eu.reborn_minecraft.zhorse.utils.DelayedChunckUnload$1.run(DelayedChunckUnload.java:25)[Server thread/WARN] at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71)[Server thread/WARN] at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353)[Server thread/WARN] at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:730)[Server thread/WARN] at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399)[Server thread/WARN] at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675)[Server thread/WARN] at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574)[Server thread/WARN] at java.lang.Thread.run(Thread.java:745)