Soft Warn Error on PlayerHandshakeEvent
Stixil opened this issue · 8 comments
Just encountered this error, thank you for the help.
https://mcpaste.io/11be4dcf1861f392
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
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
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.htmlWell, 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
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.htmlWell, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.
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
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.htmlWell, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.
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
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.htmlWell, their frequent updates broke a lot of stuff sadly. I had to switch to 8 because of almost nothing working properly anymore.
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?