arkflame / AntiBot

2LS AntiBot is the ultimate antibot plugin for Minecraft or Spigot servers using BungeeCord. Superseded by FlameCord.
https://builtbybit.com/resources/flamecord-ultimate-antibot-system.13492/
GNU General Public License v3.0
49 stars 29 forks source link

Soft Warn Error on PlayerHandshakeEvent #25

Closed Stixil closed 4 years ago

Stixil commented 4 years ago

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

linsaftw commented 4 years ago

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.

Stixil commented 4 years ago

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

ytnoos commented 4 years ago

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

linsaftw commented 4 years ago

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.

ytnoos commented 4 years ago

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

linsaftw commented 4 years ago

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.

ytnoos commented 4 years ago

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

linsaftw commented 4 years ago

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?