{"action":"closed","issue":{"url":"https://api.github.com/repos/BanManagement/BanManager/issues/358","labels_url":"https://api.github.com/repos/BanManagement/BanManager/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/BanManagement/BanManager/issues/358/comments","events_url":"https://api.github.com/repos/BanManagement/BanManager/issues/358/events","html_url":"https://github.com/BanManagement/BanManager/issues/358","id":99312728,"number":358,"title":"Exception when banning player","user":{"login":"CharlesVien","id":5378415,"avatar_url":"https://avatars.githubusercontent.com/u/5378415?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesVien","html_url":"https://github.com/CharlesVien","followers_url":"https://api.github.com/users/CharlesVien/followers","following_url":"https://api.github.com/users/CharlesVien/following{/other_user}","gists_url":"https://api.github.com/users/CharlesVien/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesVien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesVien/subscriptions","organizations_url":"https://api.github.com/users/CharlesVien/orgs","repos_url":"https://api.github.com/users/CharlesVien/repos","events_url":"https://api.github.com/users/CharlesVien/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesVien/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-05T22:25:19Z","updated_at":"2015-08-13T09:38:08Z","closed_at":"2015-08-13T09:38:08Z","body":"```\r\n[18:14:21 INFO]: An error occured whilst attempting to perform that command. Please check the console for the error\r\n[18:14:21 WARN]: java.sql.SQLException: Unable to run insert stmt on object me.confuser.banmanager.data.PlayerBanData@950070f: INSERT INTO `bm_player_bans` (`player_id` ,`reason` ,`actor_id` ,`created` ,`updated` ,`expires` ) VALUES (?,?,?,?,?,?)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.internal.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:22)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.internal.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:135)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.internal.ormlite.stmt.StatementExecutor.create(StatementExecutor.java:450)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.internal.ormlite.dao.BaseDaoImpl.create(BaseDaoImpl.java:310)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.storage.PlayerBanStorage.ban(PlayerBanStorage.java:111)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.commands.BanCommand$1.run(BanCommand.java:153)\r\n[18:14:21 WARN]:        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)\r\n[18:14:21 WARN]:        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)\r\n[18:14:21 WARN]:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n[18:14:21 WARN]:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n[18:14:21 WARN]:        at java.lang.Thread.run(Thread.java:745)\r\n.¸' for key 'bm_player_bans_player_idx'dbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'aÀ`òxDŽÌ\r\n[18:14:21 WARN]:        at sun.reflect.GeneratedConstructorAccessor69.newInstance(Unknown Source)\r\n[18:14:21 WARN]:        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n[18:14:21 WARN]:        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.Util.getInstance(Util.java:382)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)\r\n[18:14:21 WARN]:        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.internal.ormlite.jdbc.JdbcDatabaseConnection.insert(JdbcDatabaseConnection.java:170)\r\n[18:14:21 WARN]:        at me.confuser.banmanager.internal.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:91)\r\n[18:14:21 WARN]:        ... 9 more\r\n```\r\n\r\nThis exception is shown in console upon banning a player sometimes, and it does not ban them. They can log back in with no other exception thrown.\r\n\r\nRunning BM v5.6.0 with Spigot v1.7.10-ProtocolHack.\r\nIf you need more information, please let me know."}}