本帖最后由 声名我主宰 于 2021-4-11 14:23 编辑
ProtocolLib 插件报错,求助解决
折腾一晚上没明白,求大佬帮忙分析一下原因~
服务端版本:Paper1.16.5
以下是报错信息:
ProtocolLib 插件报错,求助解决
折腾一晚上没明白,求大佬帮忙分析一下原因~
服务端版本:Paper1.16.5
以下是报错信息:
| [ProtocolLib] INTERNAL 错误: Cannot compile structure. Disabing compiler. If this problem hasn't already been reported, please open a ticket at https://github.com/dmulloy2/ProtocolLib/issues with the following data: Stack Trace: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @40ede94b at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) at com.comphenix.protocol.reflect.compiler.StructureCompiler.generateClass(StructureCompiler.java:299) at com.comphenix.protocol.reflect.compiler.StructureCompiler.compile(StructureCompiler.java:213) at com.comphenix.protocol.reflect.compiler.BackgroundCompiler$2.call(BackgroundCompiler.java:204) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831) Dump: Parameters: com.comphenix.protocol.reflect.StructureModifier@653e0c67[ targetType=class net.minecraft.server.v1_16_R3.PacketPlayOutPlayerListHeaderFooter target=<null> converter=<null> fieldType=interface net.minecraft.server.v1_16_R3.IChatBaseComponent data=[public net.minecraft.server.v1_16_R3.IChatBaseComponent net.minecraft.server.v1_16_R3.PacketPlayOutPlayerListHeaderFooter.header, public net.minecraft.server.v1_16_R3.IChatBaseComponent net.minecraft.server.v1_16_R3.PacketPlayOutPlayerListHeaderFooter.footer] defaultFields={} subtypeCache={} customConvertHandling=false useStructureCompiler=true ] manager: com.comphenix.protocol.injector.PacketFilterManager@2fca2acf[ unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@469a4b42 packetListeners=[PacketAdapter[plugin=ItemsAdder, sending=ListeningWhitelist[priority=NORMAL, packets=[RECIPE_UPDATE[class=PacketPlayOutRecipeUpdate, id=90]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[AUTO_RECIPE[class=PacketPlayInAutoRecipe, id=25]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=CMI, sending=ListeningWhitelist[priority=HIGH, packets=[UNLOAD_CHUNK[class=PacketPlayOutUnloadChunk, id=28]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[STEER_VEHICLE[class=PacketPlayInSteerVehicle, id=29]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=ItemsAdder, sending=ListeningWhitelist[priority=LOWEST, packets=[RECIPES[class=PacketPlayOutRecipes, id=53]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=ListeningWhitelist[priority=NORMAL, packets=[CHAT[class=PacketPlayOutChat, id=14]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=AntiSeedCracker, sending=ListeningWhitelist[priority=HIGHEST, packets=[LOGIN[class=PacketPlayOutLogin, id=36]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=MONITOR, packets=[USE_ENTITY[class=PacketPlayInUseEntity, id=14]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=AntiSeedCracker, sending=ListeningWhitelist[priority=HIGHEST, packets=[RESPAWN[class=PacketPlayOutRespawn, id=57]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=ListeningWhitelist[priority=MONITOR, packets=[PLAYER_LIST_HEADER_FOOTER[class=PacketPlayOutPlayerListHeaderFooter, id=83]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=ListeningWhitelist[priority=NORMAL, packets=[TITLE[class=PacketPlayOutTitle, id=79]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[UPDATE_SIGN[class=PacketPlayInUpdateSign, id=43]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=IllegalStack, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[USE_ENTITY[class=PacketPlayInUseEntity, id=14]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=ItemsAdder, sending=ListeningWhitelist[priority=NORMAL, packets=[CHAT[class=PacketPlayOutChat, id=14]], gamephase=PLAYING, options=[ASYNC]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=ItemsAdder, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[BLOCK_DIG[class=PacketPlayInBlockDig, id=27]], gamephase=PLAYING, options=[]]]] packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@53d22ac2 playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@7fb43cc inputBufferedPackets=[] recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@79198dae sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@6d4d1994 hasClosed=false classLoader=PluginClassLoader{plugin=ProtocolLib v4.6.1-SNAPSHOT-b498, pluginEnabled=true, url=plugins\[前置-读写]ProtocolLib.jar} reporter=com.comphenix.protocol.ProtocolLib$1@2f0bbac5 server=CraftServer{serverName=Paper,serverVersion=git-Paper-585,minecraftVersion=1.16.5} library=ProtocolLib v4.6.1-SNAPSHOT-b498 asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@47f2eede knowsServerPackets=true knowsClientPackets=true phaseLoginCount=0 phasePlayingCount=15 packetCreation=false nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@999c21c pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@7deb7394 hasRecycleDistance=true minecraftVersion=(MC: 1.16.5) debug=false ] Sender: com.comphenix.protocol.reflect.compiler.BackgroundCompiler@186c484[ listeners={com.comphenix.protocol.reflect.compiler.StructureCompiler$StructureKey@f882912b=[com.comphenix.protocol.reflect.compiler.BackgroundCompiler$1@32e77d3a], com.comphenix.protocol.reflect.compiler.StructureCompiler$StructureKey@c83db8c=[com.comphenix.protocol.injector.StructureCache$1@75a9c058]} listenerLock=java.lang.Object@53f86aaa compiler=com.comphenix.protocol.reflect.compiler.StructureCompiler@警告]: at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:290) |
请使用java8
无法链接构建
换个版本试试?
换个版本试试?
PercyDan 发表于 2021-4-11 10:57
请使用java8
感谢您的回复
能否请教一下 Paper1.16.5 服务端,该如何选择Java
Java8 Java11 JDK16 JDK1弄得有点晕~
WangJiaJie888 发表于 2021-4-11 16:57
感谢您的回复
能否请教一下 Paper1.16.5 服务端,该如何选择Java
服务端启动脚本java路径写完整路径
如
- java -Xmx5G -Xms128M -jar paper-1.16.5-466.jar
改成
- "C:\Program Files\Java\jre1.8.0_281\bin\java.exe" -Xmx5G -Xms128M -jar paper-1.16.5-466.jar
试试用protocollib的最新构建
https://ci.dmulloy2.net/job/ProtocolLib/499/
https://ci.dmulloy2.net/job/ProtocolLib/499/