Error in MySQL
fastlockel opened this issue ยท 0 comments
I have error (repepat) in MySQL using latest EchoPet and Bukkkit
[SEVERE] Failed to save Pet data for damajaji2002 to MySQL Database
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'a9942c7a-be23-4927-b4a8-bb4e9c1150f7' for key 'PRIMARY'
at sun.reflect.GeneratedConstructorAccessor262.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
at com.dsh105.echopet.libraries.bonecp.PreparedStatementHandle.executeUpdate(PreparedStatementHandle.java:205)
at com.dsh105.echopet.api.SqlPetManager.saveToDatabase(SqlPetManager.java:94)
at com.dsh105.echopet.api.pet.Pet$2.run(Pet.java:367)
at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:600)
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260)
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
or also
[09/06/2014]---[11:45:25][EchoPet] ?c[SEVERE] Failed to save Pet data for Legende_Luffy to MySQL Database
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '4ee8526c-ed83-4906-9250-f80dba79b2b3' for key 'PRIMARY'
at sun.reflect.GeneratedConstructorAccessor262.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
at com.dsh105.echopet.libraries.bonecp.PreparedStatementHandle.executeUpdate(PreparedStatementHandle.java:205)
at com.dsh105.echopet.api.SqlPetManager.saveToDatabase(SqlPetManager.java:94)
at com.dsh105.echopet.api.SqlPetManager.saveToDatabase(SqlPetManager.java:98)
at com.dsh105.echopet.listeners.PetOwnerListener.onPlayerDeath(PetOwnerListener.java:199)
at sun.reflect.GeneratedMethodAccessor444.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486)
at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:370)
at net.minecraft.server.v1_7_R3.EntityPlayer.die(EntityPlayer.java:373)
at net.minecraft.server.v1_7_R3.EntityLiving.damageEntity(EntityLiving.java:734)
at net.minecraft.server.v1_7_R3.EntityHuman.damageEntity(EntityHuman.java:746)
at net.minecraft.server.v1_7_R3.EntityPlayer.damageEntity(EntityPlayer.java:452)
at net.minecraft.server.v1_7_R3.EntityMonster.n(EntityMonster.java:100)
at net.minecraft.server.v1_7_R3.EntityZombie.n(EntityZombie.java:235)
at net.minecraft.server.v1_7_R3.PathfinderGoalMeleeAttack.e(PathfinderGoalMeleeAttack.java:100)
at net.minecraft.server.v1_7_R3.PathfinderGoalSelector.a(PathfinderGoalSelector.java:108)
at net.minecraft.server.v1_7_R3.EntityInsentient.bm(EntityInsentient.java:410)
at net.minecraft.server.v1_7_R3.EntityLiving.e(EntityLiving.java:1446)
at net.minecraft.server.v1_7_R3.EntityInsentient.e(EntityInsentient.java:289)
at net.minecraft.server.v1_7_R3.EntityMonster.e(EntityMonster.java:21)
at net.minecraft.server.v1_7_R3.EntityZombie.e(EntityZombie.java:160)
at net.minecraft.server.v1_7_R3.EntityLiving.h(EntityLiving.java:1309)
at net.minecraft.server.v1_7_R3.EntityInsentient.h(EntityInsentient.java:150)
at net.minecraft.server.v1_7_R3.EntityMonster.h(EntityMonster.java:25)
at net.minecraft.server.v1_7_R3.EntityZombie.h(EntityZombie.java:231)
at net.minecraft.server.v1_7_R3.World.entityJoinedWorld(World.java:1421)
at net.minecraft.server.v1_7_R3.World.playerJoinedWorld(World.java:1402)
at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1290)
at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481)
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649)
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260)
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)