{"action":"opened","issue":{"url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/487","repository_url":"https://api.github.com/repos/DV8FromTheWorld/JDA","labels_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/487/comments","events_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/487/events","html_url":"https://github.com/DV8FromTheWorld/JDA/issues/487","id":261775453,"number":487,"title":"NoSuchMethod error in org.json; Not matching guild ID in ReadyHandler cache","user":{"login":"DiamondIceNS","id":10872887,"avatar_url":"https://avatars1.githubusercontent.com/u/10872887?v=4","gravatar_id":"","url":"https://api.github.com/users/DiamondIceNS","html_url":"https://github.com/DiamondIceNS","followers_url":"https://api.github.com/users/DiamondIceNS/followers","following_url":"https://api.github.com/users/DiamondIceNS/following{/other_user}","gists_url":"https://api.github.com/users/DiamondIceNS/gists{/gist_id}","starred_url":"https://api.github.com/users/DiamondIceNS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiamondIceNS/subscriptions","organizations_url":"https://api.github.com/users/DiamondIceNS/orgs","repos_url":"https://api.github.com/users/DiamondIceNS/repos","events_url":"https://api.github.com/users/DiamondIceNS/events{/privacy}","received_events_url":"https://api.github.com/users/DiamondIceNS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-29T21:27:03Z","updated_at":"2017-09-29T21:27:03Z","closed_at":null,"author_association":"NONE","body":"Stacktrace:\r\n```\r\n[13:52:25] [Info] [JDASocket]: Connected to WebSocket\r\n[13:52:25] [Fatal] [JDASocket]: Encountered an exception:\r\n[13:52:25] [Fatal] [JDASocket]: java.lang.NoSuchMethodError: org.json.JSONArray.iterator()Ljava/util/Iterator;\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.updateTraces(WebSocketClient.java:124)\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.onTextMessage(WebSocketClient.java:631)\r\n\tat com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:352)\r\n\tat com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:260)\r\n\tat com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:238)\r\n\tat com.neovisionaries.ws.client.ReadingThread.handleTextFrame(ReadingThread.java:963)\r\n\tat com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:746)\r\n\tat com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)\r\n\tat com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)\r\n\tat com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)\r\n\r\n[13:52:25] [Fatal] [JDASocket]: Encountered an exception:\r\n[13:52:25] [Fatal] [JDASocket]: java.lang.NoSuchMethodError: org.json.JSONArray.iterator()Ljava/util/Iterator;\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.updateTraces(WebSocketClient.java:124)\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:895)\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.onTextMessage(WebSocketClient.java:603)\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:944)\r\n\tat com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368)\r\n\tat com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270)\r\n\tat com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990)\r\n\tat com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749)\r\n\tat com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)\r\n\tat com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)\r\n\tat com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)\r\n\r\n[13:52:25] [Fatal] [JDASocket]: Completed the setup for Guild: [[REDACTED]] without matching id in ReadyHandler cache\r\n[13:52:25] [Fatal] [JDASocket]: Encountered an exception:\r\n[13:52:25] [Fatal] [JDASocket]: java.lang.NullPointerException\r\n\tat net.dv8tion.jda.core.handle.ReadyHandler.guildSetupComplete(ReadyHandler.java:193)\r\n\tat net.dv8tion.jda.core.handle.GuildCreateHandler.lambda$handleInternally$112(GuildCreateHandler.java:44)\r\n\tat net.dv8tion.jda.core.entities.EntityBuilder.createGuildFirstPass(EntityBuilder.java:302)\r\n\tat net.dv8tion.jda.core.handle.GuildCreateHandler.handleInternally(GuildCreateHandler.java:38)\r\n\tat net.dv8tion.jda.core.handle.SocketHandler.handle(SocketHandler.java:37)\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:910)\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.onTextMessage(WebSocketClient.java:603)\r\n\tat net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:944)\r\n\tat com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368)\r\n\tat com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270)\r\n\tat com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990)\r\n\tat com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749)\r\n\tat com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)\r\n\tat com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)\r\n\tat com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)\r\n```\r\n\r\nI'm using JDA version `3.3.0_266`. Regarding the NullPointer exception, I tried the fix suggested in #421 but nothing changed. I am compiling with Gradle, the relevant portion of which looks like this:\r\n\r\n```\r\n    compile group: 'org.spigotmc', name: 'spigot-api', version: '1.11.2-R0.1-SNAPSHOT'\r\n    compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: '1.0.0-rc-1036'\r\n    compile group: 'net.dv8tion', name: 'JDA', version: '3.3.0_266'\r\n    compile group: 'com.michaelwflaherty', name: 'cleverbotapi', version: '1.0.1'\r\n    compile group: 'org.pegdown', name:'pegdown', version: '1.6.0'\r\n    compile group: 'org.json', name: 'json', version: '20160810'\r\n```\r\nJust to check, I tried compiling with version `20170516` of org.json and I received the same errors.\r\n\r\nResearching these same errors in other closed issues tells me that they shouldn't be possible with these versions of JDA and org.json, so apparently something isn't getting through. I assume there is a conflict somewhere, but I don't know where. I'm using IntelliJ IDEA for this project, and in the External Libraries pane, it shows the correct versions of libraries are downloading, and I'm using Shadow to ensure all dependencies are packing into the final jar. All the signs I see point to the fact that this should be working, yet here we are."}}
{"actor":{"display_login":"DiamondIceNS"}}