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 erocs
, 1 year ago
via GitHub by erocs
, 1 year ago
via GitHub by erocs
, 2 years ago
Duplicate entry 'UUID REMOVED' for key 'PRIMARY'
via GitHub by tinchoabbate
, 11 months ago
Cannot delete or update a parent row: **a foreign key constraint fails (`java`.`articulos_secciones`, CONSTRAINT `articulo` FOREIGN KEY (`idArticulo`) REFERENCES `articulos` (`idArticulo`) ON DELETE NO ACTION ON UPDATE NO ACTION)**
via Stack Overflow by Paul Statham
, 2 years ago
Duplicate entry '7-1' for key 'PRIMARY'
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'XYZ-UUID' for key 'PRIMARY' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_91] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[?:1.8.0_91] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[?:1.8.0_91] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[?:1.8.0_91] at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.Util.getInstance(Util.java:387)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2470)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1192)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at vg.civcraft.mc.namelayer.database.GroupManagerDao.setDefaultGroup(GroupManagerDao.java:1044)[NameLayer.jar:?] at vg.civcraft.mc.namelayer.group.DefaultGroupHandler.setDefaultGroup(DefaultGroupHandler.java:38)[NameLayer.jar:?] at vg.civcraft.mc.namelayer.group.Group.setDefaultGroup(Group.java:425)[NameLayer.jar:?] at vg.civcraft.mc.namelayer.listeners.PlayerListener.handleFirstJoin(PlayerListener.java:112)[NameLayer.jar:?] at vg.civcraft.mc.namelayer.listeners.PlayerListener.playerJoinEvent(PlayerListener.java:37)[NameLayer.jar:?] at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_91] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)[spigot.jar:git-Spigot-6016ac7-6d3efa0] at net.minecraft.server.v1_10_R1.PlayerList.onPlayerJoin(PlayerList.java:333)[spigot.jar:git-Spigot-6016ac7-6d3efa0]