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
, 7 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)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(	at java.lang.reflect.Constructor.newInstance(	at com.mysql.jdbc.Util.handleNewInstance(	at com.mysql.jdbc.Util.getInstance(	at com.mysql.jdbc.SQLError.createSQLException(	at com.mysql.jdbc.MysqlIO.checkErrorPacket(	at com.mysql.jdbc.MysqlIO.checkErrorPacket(	at com.mysql.jdbc.MysqlIO.sendCommand(	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(	at com.mysql.jdbc.ConnectionImpl.execSQL(	at com.mysql.jdbc.StatementImpl.executeUpdateInternal(	at com.mysql.jdbc.StatementImpl.executeLargeUpdate(	at com.mysql.jdbc.StatementImpl.executeUpdate(	at eu.reborn_minecraft.zhorse.database.SQLDatabaseConnector.executeUpdate(	at eu.reborn_minecraft.zhorse.managers.DataManager.registerHorseStats(	at eu.reborn_minecraft.zhorse.utils.DelayedChunckUnload$	at	at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(	at net.minecraft.server.v1_11_R1.MinecraftServer.D(	at net.minecraft.server.v1_11_R1.DedicatedServer.D(	at net.minecraft.server.v1_11_R1.MinecraftServer.C(	at	at