Closed Zxoir closed 3 months ago
Which exact version of Java and which JVM are you using?
Le dim. 18 août 2024, 00:27, Rayan Alyasi @.***> a écrit :
[23:04:59 INFO]: [GlowingEntities] [GlowingEntities] Found server version 1.20.1 [23:04:59 ERROR]: [GlowingEntities] [GlowingEntities] Failed to fill up all datas for mappings. 23:04:59 WARN: java.lang.IllegalAccessException: Can not set final java.lang.String field me.zxoir.shadowgod8s.utils.GlowingEntities$Packets$ProtocolMappings.watcherGet to java.lang.String 23:04:59 WARN: at java.base/jdk.internal.reflect.FieldAccessorImpl.throwFinalFieldIllegalAccessException(FieldAccessorImpl.java:137)
java.base/jdk.internal.reflect.FieldAccessorImpl.throwFinalFieldIllegalAccessException(FieldAccessorImpl.java:141)
java.base/jdk.internal.reflect.MethodHandleObjectFieldAccessorImpl.set(MethodHandleObjectFieldAccessorImpl.java:103) 23:04:59 WARN: at java.base/java.lang.reflect.Field.set(Field.java:834)
Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities$Packets$ProtocolMappings.fillAll(GlowingEntities.java:1151)
Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities$Packets$ProtocolMappings.
(GlowingEntities.java:1136) Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities$Packets.
(GlowingEntities.java:375) Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities.
(GlowingEntities.java:48) Shadowgod8s.jar//me.zxoir.shadowgod8s.Shadowgod8s.onEnable(Shadowgod8s.java:25)
org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) [23:04:59 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189)
io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104)
org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507)
org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:642)
org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:553)
org.bukkit.craftbukkit.v1_20_R1.CraftServer.reload(CraftServer.java:1097) 23:04:59 WARN: at org.bukkit.Bukkit.reload(Bukkit.java:993) [23:04:59 WARN]: at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:54)
org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:987)
org.bukkit.craftbukkit.v1_20_R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)
com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265)
net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:324)
net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:308)
net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2354)
net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$21(PlayerConnection.java:2314)
net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59)
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) 23:04:59 WARN: at net.minecraft.server.TickTask.run(TickTask.java:18)
net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1338) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197)
net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126) 23:04:59 WARN: at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1315)
net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1308) [23:04:59 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)
net.minecraft.server.MinecraftServer.p_(MinecraftServer.java:1286)
net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1174) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) 23:04:59 WARN: at java.base/java.lang.Thread.run(Thread.java:1583) [23:04:59 INFO]: [GlowingEntities] [GlowingEntities] Loaded mappings V1_20
— Reply to this email directly, view it on GitHub https://github.com/SkytAsul/GlowingEntities/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3537WIYUWSZZT56Q6AMP3ZR7E5BAVCNFSM6AAAAABMVYTC5SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TCNRZGMZDEOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Java 17.0.2 HotSpot(TM) 64-Bit Server VM
Just to note, the library is working perfectly but I'm getting that error at startup
I think you have made changes to the utils. My code cannot produce this error. Maybe it's been automatically made by your IDE.
In particular, the String fields of the ProtocolMappings enum should not be private
. (https://github.com/SkytAsul/GlowingEntities/blob/0dbe5f033b6677873c9125325e150353ec0b1ada/src/main/java/fr/skytasul/glowingentities/GlowingEntities.java#L1040-L1051)
[23:04:59 INFO]: [GlowingEntities] [GlowingEntities] Found server version 1.20.1 [23:04:59 ERROR]: [GlowingEntities] [GlowingEntities] Failed to fill up all datas for mappings. [23:04:59 WARN]: java.lang.IllegalAccessException: Can not set final java.lang.String field me.zxoir.shadowgod8s.utils.GlowingEntities$Packets$ProtocolMappings.watcherGet to java.lang.String [23:04:59 WARN]: at java.base/jdk.internal.reflect.FieldAccessorImpl.throwFinalFieldIllegalAccessException(FieldAccessorImpl.java:137) [23:04:59 WARN]: at java.base/jdk.internal.reflect.FieldAccessorImpl.throwFinalFieldIllegalAccessException(FieldAccessorImpl.java:141) [23:04:59 WARN]: at java.base/jdk.internal.reflect.MethodHandleObjectFieldAccessorImpl.set(MethodHandleObjectFieldAccessorImpl.java:103) [23:04:59 WARN]: at java.base/java.lang.reflect.Field.set(Field.java:834) [23:04:59 WARN]: at Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities$Packets$ProtocolMappings.fillAll(GlowingEntities.java:1151) [23:04:59 WARN]: at Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities$Packets$ProtocolMappings.<clinit>(GlowingEntities.java:1136) [23:04:59 WARN]: at Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities$Packets.<clinit>(GlowingEntities.java:375) [23:04:59 WARN]: at Shadowgod8s.jar//me.zxoir.shadowgod8s.utils.GlowingEntities.<init>(GlowingEntities.java:48) [23:04:59 WARN]: at Shadowgod8s.jar//me.zxoir.shadowgod8s.Shadowgod8s.onEnable(Shadowgod8s.java:25) [23:04:59 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) [23:04:59 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) [23:04:59 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) [23:04:59 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) [23:04:59 WARN]: at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:642) [23:04:59 WARN]: at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:553) [23:04:59 WARN]: at org.bukkit.craftbukkit.v1_20_R1.CraftServer.reload(CraftServer.java:1097) [23:04:59 WARN]: at org.bukkit.Bukkit.reload(Bukkit.java:993) [23:04:59 WARN]: at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:54) [23:04:59 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) [23:04:59 WARN]: at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:987) [23:04:59 WARN]: at org.bukkit.craftbukkit.v1_20_R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64) [23:04:59 WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) [23:04:59 WARN]: at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:324) [23:04:59 WARN]: at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:308) [23:04:59 WARN]: at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2354) [23:04:59 WARN]: at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$21(PlayerConnection.java:2314) [23:04:59 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59) [23:04:59 WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [23:04:59 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18) [23:04:59 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153) [23:04:59 WARN]: at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1338) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) [23:04:59 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1315) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1308) [23:04:59 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.p_(MinecraftServer.java:1286) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1174) [23:04:59 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) [23:04:59 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583) [23:04:59 INFO]: [GlowingEntities] [GlowingEntities] Loaded mappings V1_20