Alvin-LB / NameTagChanger

Library to be shaded into Bukkit Plugins to allow for modification of player name tags.
MIT License
31 stars 10 forks source link

Packet Interceptor error when disabling #5

Open Xesau opened 6 years ago

Xesau commented 6 years ago
[21:15:12 WARN]: A task raised an exception. Task: com.bringholm.packetinterceptor.v1_0.PacketInterceptor$$Lambda$59/1466271928@4aef933e
java.util.NoSuchElementException: packet_interceptor_Kingdoms_0
        at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-8cc5a7e]

When reloading, I believe the previous exception causes another exception:

java.lang.ExceptionInInitializerError: null
        at eu.xesau.kd.Main.onEnable(Main.java:60) ~[?:?]
Caused by: java.util.NoSuchElementException: packet_handler
        at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-8cc5a7e]
Alvin-LB commented 6 years ago

Do these exceptions get thrown on the same instance as the ones you describe in #3? If that is the case, these are probably just a consequence of that previous exception.

Xesau commented 6 years ago

No. This error occurred after I patched the ConcurrentModificationException.

Alvin-LB commented 6 years ago

I don't mean any ConcurrentModificationExceptions, I meant the ClassCastException described in #3. If that is not the case, please post the full server log of when this occured.

Xesau commented 6 years ago

Whoops 😬

Its on the same server, but not sure if they occur at the same time

Alvin-LB commented 6 years ago

I have managed to replicate this issue and I am working on a solution. Annoyingly it is very involved with netty internals so I have yet to come up with a solution.

I believe #3 to also be caused by this issue.