ProtocolLib

3M Downloads

important plugin error

rafi67000 opened this issue ยท 23 comments

commented
  • This issue is not solved in a development build

Describe the bug
when I'm trying to start server protocollib can't load
latest paper 1.8.8 445(build)

EDIT: I've installed protocollib 5.0 on my bedwars server with swm and everything works so I don't know what's wrong....
4.8.0 works but 5.0 don't (I need 5.0)
ANOTHER EDIT: I changed version to 5.0.0-SNAPSHOT-b556 and now works

To Reproduce
Steps to reproduce the behavior:

  1. install 1.8.8 server (this problem occurs on differents fork's and clear paper too)
  2. install protocollib 5.0
  3. start server
    enjoy bug ๐Ÿ˜›

Expected behavior
protocollib will load

Screenshots
nah

Version Info
I can't cause plugin can't load

Additional context
[15:54:59] [Server thread/INFO]: [ProtocolLib] Loading ProtocolLib v5.0.0-SNAPSHOT-b600
[15:54:59] [Server thread/WARN]: java.lang.IllegalStateException: Unable to access field private final org.bukkit.craftbukkit.v1_8_R3.CraftWorld net.minecraft.server.v1_8_R3.World.world
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.reflect.accessors.MethodHandleHelper.getFieldAccessor(MethodHandleHelper.java:103)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.reflect.accessors.Accessors.getFieldAccessor(Accessors.java:84)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.reflect.accessors.Accessors.getFieldAccessor(Accessors.java:56)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.wrappers.BukkitConverters.(BukkitConverters.java:126)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.reflect.instances.MinecraftGenerator.(MinecraftGenerator.java:30)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.reflect.instances.DefaultInstances.(DefaultInstances.java:40)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.reflect.StructureModifier.getDefaultGenerator(StructureModifier.java:129)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.reflect.StructureModifier.(StructureModifier.java:52)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.injector.packet.PacketRegistry.createOldRegister(PacketRegistry.java:115)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.injector.packet.PacketRegistry.initialize(PacketRegistry.java:283)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.injector.packet.PacketRegistry.getClientPacketTypes(PacketRegistry.java:314)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.injector.PacketFilterManager.(PacketFilterManager.java:117)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.injector.PacketFilterBuilder.build(PacketFilterBuilder.java:120)
[15:54:59] [Server thread/WARN]: at com.comphenix.protocol.ProtocolLib.onLoad(ProtocolLib.java:175)
[15:54:59] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:298)
[15:54:59] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:202)
[15:54:59] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563)
[15:54:59] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:840)
[15:54:59] [Server thread/ERROR]: null initializing ProtocolLib v5.0.0-SNAPSHOT-b600 (Is it up to date?)
java.lang.NullPointerException: null
at com.comphenix.protocol.error.DetailedErrorReporter.reportDetailed(DetailedErrorReporter.java:394) ~[?:?]
at com.comphenix.protocol.error.DelegatedErrorReporter.reportDetailed(DelegatedErrorReporter.java:63) ~[?:?]
at com.comphenix.protocol.error.DelegatedErrorReporter.reportDetailed(DelegatedErrorReporter.java:87) ~[?:?]
at com.comphenix.protocol.ProtocolLib.onLoad(ProtocolLib.java:186) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:298) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:202) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched_1.8.8.jar:git-PaperSpigot-445]
at java.lang.Thread.run(Thread.java:840) [?:?]

commented

I've switched to jre 18 now everything works fine

commented

so.. it's jre 18 compatible with minecraft 1.8.8?

commented

https://prnt.sc/VxgPCW-ZLVS-
check this part in your pastebin

commented

so.. it's jre 18 compatible with minecraft 1.8.8?

well I have my fork and it has jre 18 support

commented

https://prnt.sc/VxgPCW-ZLVS- check this part in your pastebin

idk what do you mean

version b556 works with java 17 but b600 no
b600 works with java 18/19 but with jre17 no

commented

me too!

commented

I found the answer on the Spigot page, it was easy to overlook.

Use the latest dev build for Minecraft 1.19

commented

The build #600 are you trying to say?

commented

bro I had problem with #600 so I went back to b556 and now works....

commented

Yes, switching to build #600 stopped these errors on my servers.

image

commented

It doesn't works for me

commented

That's unfortunate. I guess I lucked out with it.

java -version

java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

ยฏ\_(ใƒ„)_/ยฏ

commented

@rafi67000 which Java version + vendor are you using? (Please provide the output of java -version)

commented

And were there any additional errors while starting the server?

commented

ibm semeru 17.0.4.1

(OpenJ9 17)

commented

Let me test on openj9, might be that there are conflicts with our reflection handling there.

commented

openj9 is very nice because of garbage collectors and performance

ps. b600 don't work but older version (b556 idk how about later versions) works

commented

And were there any additional errors while starting the server?

Were there?

commented

https://pastebin.com/Q7kpx1Cd latets.log

container@pterodactyl~ java -version
openjdk version "17.0.4.1" 2022-08-12
IBM Semeru Runtime Open Edition 17.0.4.1 (build 17.0.4.1+1)
Eclipse OpenJ9 VM 17.0.4.1 (build openj9-0.33.1, JRE 17 Linux aarch64-64-Bit Compressed References 20220812_239 (JIT enabled, AOT enabled)
OpenJ9 - 1d9d16830
OMR - b58aa2708
JCL - 1f4d354e654 based on jdk-17.0.4.1+1)

commented

I have recently tried with the recent compilation #602 and it doesn't work.

commented

jre 11 and 17 doesn't work.
jre 18/19 works.

commented

bro I had problem with #600 so I went back to b556 and now works....

Are you still using build 556? I have the same issue and build 556 can't be downloaded anymore

commented

I just switched to java 19