ProtocolLib

3M Downloads

[1.12.2][BUG] java.lang.ExceptionInInitializerError: null

InuYasha86000 opened this issue ยท 0 comments

commented
  • This issue is not solved in a development build

Describe the bug
The plugin fails to load in the server

To Reproduce
Steps to reproduce the behavior:

  1. add plugin to my server
  2. boot up server
  3. see error in the log

Expected behavior
The plugin to initalize without an error.

Version Info
I have tried both V5.1.0 and the latest DEV build v5.1.1-SNAPSHOT-669

This is running on a hybrid forge/bukkit server (magma) and Protocollib was working a couple of months ago before I updated it, I do not remember the version it was working on.

This is the error appearing:
[19:42:05] [Server thread/ERROR] [org.bukkit.craftbukkit.v1_12_R1.CraftServer]: null initializing ProtocolLib v5.1.0 (Is it up to date?)
java.lang.ExceptionInInitializerError: null
at com.comphenix.protocol.injector.PacketFilterManager.(PacketFilterManager.java:120) ~[?:?]
at com.comphenix.protocol.injector.PacketFilterBuilder.build(PacketFilterBuilder.java:121) ~[?:?]
at com.comphenix.protocol.ProtocolLib.onLoad(ProtocolLib.java:183) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:327) ~[CraftServer.class:1.12.2-de16e0a9]
at net.minecraft.server.MinecraftServer.loadAllWorlds(MinecraftServer.java:351) ~[MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:321) ~[nz.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:623) ~[MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_381]
Caused by: java.lang.NullPointerException
at com.comphenix.protocol.utility.MinecraftReflection.getMinecraftPackage(MinecraftReflection.java:178) ~[?:?]
at com.comphenix.protocol.utility.MinecraftReflection.getOptionalNMS(MinecraftReflection.java:1391) ~[?:?]
at com.comphenix.protocol.utility.MinecraftReflection.getMinecraftClass(MinecraftReflection.java:1445) ~[?:?]
at com.comphenix.protocol.utility.MinecraftReflection.getEnumProtocolClass(MinecraftReflection.java:620) ~[?:?]
at com.comphenix.protocol.injector.packet.PacketRegistry.(PacketRegistry.java:85) ~[?:?]
... 8 more