question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Completed the setup for Guild without matching id in ReadyHandler cache

See original GitHub issue

JDA was working great until I initialized it inside of a Spring Boot service (previously I was not using Spring Boot). Now it can login but not connect to my guild.

Log:

[19:07:12] [Info] [JDA]: Login Successful!
[19:07:13] [Info] [JDASocket]: Connected to WebSocket
[19:08:43] [Fatal] [JDASocket]: Completed the setup for Guild: G:My Guild(<Big long number goes here>) without matching id in ReadyHandler cache
[19:08:43] [Fatal] [JDASocket]: Encountered an exception:
[19:08:43] [Fatal] [JDASocket]: java.lang.NullPointerException
	at net.dv8tion.jda.core.handle.ReadyHandler.guildSetupComplete(ReadyHandler.java:193)
	at net.dv8tion.jda.core.handle.GuildCreateHandler.lambda$handleInternally$91(GuildCreateHandler.java:44)
	at net.dv8tion.jda.core.entities.EntityBuilder.createGuildFirstPass(EntityBuilder.java:292)
	at net.dv8tion.jda.core.handle.GuildCreateHandler.handleInternally(GuildCreateHandler.java:38)
	at net.dv8tion.jda.core.handle.SocketHandler.handle(SocketHandler.java:37)
	at net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:811)
	at net.dv8tion.jda.core.requests.WebSocketClient.onTextMessage(WebSocketClient.java:516)
	at net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:845)
	at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368)
	at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270)
	at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990)
	at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749)
	at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
	at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
	at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)

Really not sure where to go from here. I tried kicking and re-adding the bot.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Kodehawacommented, Aug 4, 2017

Try adding (Well imagine I know how to format it.)

<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
   <version>20160810</version>
</dependency>
0reactions
Sanduhr32commented, Aug 4, 2017

The issue happend alot to maven users so we already knew the solution. However Gradle user are having no problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Completed the setup for Guild without matching id in ... - GitHub
Completed the setup for Guild without matching id in ReadyHandler cache #454 ... MinnDevelopment closed this as completed on Sep 4, 2017.
Read more >
DiscordChat - Mods - Minecraft - CurseForge
... [JDASocket]: Completed the setup for Guild: G:DSWS | FTB Infinity Evolved(384983205301714955) without matching id in ReadyHandler cache[17:05:11] [JDA ...
Read more >
how can i get guild by id in discord.js [duplicate] - Stack Overflow
cache.get(id) before the gateway has finished sending information. You can solve this in two ways: 1. Waiting for the client to ...
Read more >
Cache in serenity::cache - Rust - Docs.rs
Fetches a vector of all Guild s' Ids that are stored in the cache. Note that if you are utilizing multiple Shard s,...
Read more >
Guild (JDA 4.4.0_352 API)
Modifier and Type Method Description default MemberAction addMember​(String accessToken, User user) Adds the provided us... Task cancelRequestToSpeak() Cancels the Request‑t... ChannelAction createCategory​(String name) Creates a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found