ProtocolLib icon indicating copy to clipboard operation
ProtocolLib copied to clipboard

important plugin error

Open rafi67000 opened this issue 3 years ago • 21 comments

  • [x] 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) [?:?]

rafi67000 avatar Sep 29 '22 14:09 rafi67000

me too!

Wackgamer avatar Sep 30 '22 22:09 Wackgamer

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

Use the latest dev build for Minecraft 1.19

isaaclepes avatar Oct 03 '22 07:10 isaaclepes

The build #600 are you trying to say?

Wackgamer avatar Oct 03 '22 14:10 Wackgamer

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

image

isaaclepes avatar Oct 03 '22 18:10 isaaclepes

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

rafi67000 avatar Oct 03 '22 18:10 rafi67000

It doesn't works for me

Wackgamer avatar Oct 03 '22 21:10 Wackgamer

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)

¯\_(ツ)_/¯

isaaclepes avatar Oct 03 '22 21:10 isaaclepes

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

derklaro avatar Oct 04 '22 06:10 derklaro

And were there any additional errors while starting the server?

derklaro avatar Oct 04 '22 06:10 derklaro

ibm semeru 17.0.4.1

(OpenJ9 17)

rafi67000 avatar Oct 04 '22 06:10 rafi67000

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

derklaro avatar Oct 04 '22 07:10 derklaro

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

rafi67000 avatar Oct 04 '22 07:10 rafi67000

And were there any additional errors while starting the server?

Were there?

derklaro avatar Oct 04 '22 07:10 derklaro

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)

rafi67000 avatar Oct 04 '22 21:10 rafi67000

I've switched to jre 18 now everything works fine

rafi67000 avatar Oct 09 '22 10:10 rafi67000

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

Wackgamer avatar Oct 09 '22 16:10 Wackgamer

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

Wackgamer avatar Oct 09 '22 16:10 Wackgamer

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

well I have my fork and it has jre 18 support

rafi67000 avatar Oct 09 '22 17:10 rafi67000

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

rafi67000 avatar Oct 09 '22 17:10 rafi67000

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

rafi67000 avatar Oct 19 '22 22:10 rafi67000

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

Wackgamer avatar Oct 20 '22 00:10 Wackgamer

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

pabloalba16 avatar Mar 18 '23 18:03 pabloalba16

I just switched to java 19

rafi67000 avatar Mar 19 '23 21:03 rafi67000