java.lang.IllegalStateException when connecting
See original GitHub issueRoughly 2/3rds of the times that I attempt to connect to my bot, I get the following error:
java.lang.IllegalStateException: Socket closed before ready packet was received!
at de.btobastian.javacord.ImplDiscordAPI.connectBlocking(ImplDiscordAPI.java:162)
at de.btobastian.javacord.ImplDiscordAPI$2.call(ImplDiscordAPI.java:144)
at de.btobastian.javacord.ImplDiscordAPI$2.call(ImplDiscordAPI.java:141)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
java.lang.IllegalStateException: A connection to a distributed ...
The error here is pretty self explanatory: you can't have more than one connection to a distributed system within a single JVM.
Read more >java.lang.IllegalStateException when connecting #449 - GitHub
I have the same issue with the code that is on the readme. #42.
Read more >Initialization of bean failed; nested exception is java.lang ...
DefaultDatabase': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Fail to connect to database.
Read more >java.lang.IllegalStateException:Already Connected
Hi Gauri, It seems that the problem is that U haven't closed the connection. Some other open connection is causing the problem. ......
Read more >Error encountered while executing a Web Service; java.lang ...
Webhook throws ERROR (9130): Error encountered while executing a Web Service; java.lang.IllegalStateException:Already connected.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey,
works as a temporary fix. I still have to find out the reason for this error, but this is at least a temporary solution for everyone with this problem (It seems to not affect everyone).
Are there still people experiencing this bug?