arkflame/AntiBot

Soft Warn Error on PlayerHandshakeEvent

Stixil opened this issue · 8 comments

Just encountered this error, thank you for the help.
https://mcpaste.io/11be4dcf1861f392

image

Internal Java error. The only recommendation i can make is to make sure you have latest Java 8 version installed in your machine; Other versions might be unstable.

Java 8, not 14? Java 8 is not even supported by Oracle anymore.
https://www.oracle.com/java/technologies/java-se-support-roadmap.html

The exception is probably thrown because that map is accessed by different threads at the same time, you should use a ConcurrentHashMap or make sure that the method will be accessed maximum of one thread at a time

The exception is probably thrown because that map is accessed by different threads at the same time, you should use a ConcurrentHashMap or make sure that the method will be accessed maximum of one thread at a time

image

Clearly nothing to do with Threading but Java itself trying to cast a Node to a TreeNode. Something is wrong in the new Java implementation of HashMap.

Java 8, not 14? Java 8 is not even supported by Oracle anymore.
https://www.oracle.com/java/technologies/java-se-support-roadmap.html

Well, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.

The exception is probably thrown because that map is accessed by different threads at the same time, you should use a ConcurrentHashMap or make sure that the method will be accessed maximum of one thread at a time

image

Clearly nothing to do with Threading but Java itself trying to cast a Node to a TreeNode. Something is wrong in the new Java implementation of HashMap.

Java 8, not 14? Java 8 is not even supported by Oracle anymore.
https://www.oracle.com/java/technologies/java-se-support-roadmap.html

Well, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.

https://stackoverflow.com/questions/29967401/strange-hashmap-exception-hashmapnode-cannot-be-cast-to-hashmaptreenode/29971168

The exception is probably thrown because that map is accessed by different threads at the same time, you should use a ConcurrentHashMap or make sure that the method will be accessed maximum of one thread at a time

image
Clearly nothing to do with Threading but Java itself trying to cast a Node to a TreeNode. Something is wrong in the new Java implementation of HashMap.

Java 8, not 14? Java 8 is not even supported by Oracle anymore.
https://www.oracle.com/java/technologies/java-se-support-roadmap.html

Well, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.

https://stackoverflow.com/questions/29967401/strange-hashmap-exception-hashmapnode-cannot-be-cast-to-hashmaptreenode/29971168

Concurrency is not being used in this case.

The exception is probably thrown because that map is accessed by different threads at the same time, you should use a ConcurrentHashMap or make sure that the method will be accessed maximum of one thread at a time

image
Clearly nothing to do with Threading but Java itself trying to cast a Node to a TreeNode. Something is wrong in the new Java implementation of HashMap.

Java 8, not 14? Java 8 is not even supported by Oracle anymore.
https://www.oracle.com/java/technologies/java-se-support-roadmap.html

Well, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.

https://stackoverflow.com/questions/29967401/strange-hashmap-exception-hashmapnode-cannot-be-cast-to-hashmaptreenode/29971168

Concurrency is not being used in this case.

You are calling that method in different events, I'm pretty sure that is the problem

The exception is probably thrown because that map is accessed by different threads at the same time, you should use a ConcurrentHashMap or make sure that the method will be accessed maximum of one thread at a time

image
Clearly nothing to do with Threading but Java itself trying to cast a Node to a TreeNode. Something is wrong in the new Java implementation of HashMap.

Java 8, not 14? Java 8 is not even supported by Oracle anymore.
https://www.oracle.com/java/technologies/java-se-support-roadmap.html

Well, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.

https://stackoverflow.com/questions/29967401/strange-hashmap-exception-hashmapnode-cannot-be-cast-to-hashmaptreenode/29971168

Concurrency is not being used in this case.

You are calling that method in different events, I'm pretty sure that is the problem

I will try adding synchronized block. Anyways, i would need more info from the author. Like, it always happens or sometimes?