1.17.1 Problem
Blueeyestar opened this issue · 6 comments
Shopkeeper has the following problem in the latest version 1.17.1
[18:26:20] [Server thread/ERROR]: Error occurred while enabling Shopkeepers v2.13.1 (Is it up to date?)
java.lang.NoSuchFieldError: bO
at com.nisovin.shopkeepers.compat.v1_17_R1.NMSHandler.overwriteLivingEntityAI(NMSHandler.java:69) ~[?:?]
at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.overwriteAI(SKLivingShopObject.java:345) ~[?:?]
at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.spawn(SKLivingShopObject.java:269) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.spawnShopkeeper(SKShopkeeperRegistry.java:1184) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.addShopkeeper(SKShopkeeperRegistry.java:620) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.loadShopkeeper(SKShopkeeperRegistry.java:540) ~[?:?]
at com.nisovin.shopkeepers.storage.SKShopkeeperStorage.doReload(SKShopkeeperStorage.java:520) ~[?:?]
at com.nisovin.shopkeepers.storage.SKShopkeeperStorage.reload(SKShopkeeperStorage.java:414) ~[?:?]
at com.nisovin.shopkeepers.SKShopkeepersPlugin.onEnable(SKShopkeepersPlugin.java:335) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:495) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:409) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:604) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:266) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:995) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[server.jar:3171-Spigot-610a8c0-fb556bf]
at java.lang.Thread.run(Thread.java:831) [?:?]
i can agree this one looks simliar.
[21:53:30] [Server thread/INFO]: [Shopkeepers] Enabling Shopkeepers v2.13.1
[21:53:30] [Server thread/INFO]: [Shopkeepers] Citizens found, enabling NPC shopkeepers.
[21:53:30] [Server thread/INFO]: [Shopkeepers] Loading data of 42 shopkeepers..
[21:53:30] [Server thread/INFO]: [Shopkeepers] The data version has changed from '2|2724' to '2|2730': We update the saved data for all loaded shopkeepers.
[21:53:30] [Server thread/ERROR]: Error occurred while enabling Shopkeepers v2.13.1 (Is it up to date?)
java.lang.NoSuchFieldError: bO
at com.nisovin.shopkeepers.compat.v1_17_R1.NMSHandler.overwriteLivingEntityAI(NMSHandler.java:69) ~[?:?]
at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.overwriteAI(SKLivingShopObject.java:345) ~[?:?]
at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.spawn(SKLivingShopObject.java:269) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.spawnShopkeeper(SKShopkeeperRegistry.java:1184) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.addShopkeeper(SKShopkeeperRegistry.java:620) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.loadShopkeeper(SKShopkeeperRegistry.java:540) ~[?:?]
at com.nisovin.shopkeepers.storage.SKShopkeeperStorage.doReload(SKShopkeeperStorage.java:520) ~[?:?]
at com.nisovin.shopkeepers.storage.SKShopkeeperStorage.reload(SKShopkeeperStorage.java:414) ~[?:?]
at com.nisovin.shopkeepers.SKShopkeepersPlugin.onEnable(SKShopkeepersPlugin.java:335) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:639) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-88]
at java.lang.Thread.run(Thread.java:831) [?:?]
[21:53:30] [Server thread/INFO]: [Shopkeepers] Disabling Shopkeepers v2.13.1
[21:53:30] [Server thread/ERROR]: Error occurred while disabling Shopkeepers v2.13.1 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "com.nisovin.shopkeepers.util.trading.TradeMerger.onDisable()" because "this.tradeMerger" is null
at com.nisovin.shopkeepers.tradelog.TradeLoggers.onDisable(TradeLoggers.java:64) ~[?:?]
at com.nisovin.shopkeepers.SKShopkeepersPlugin.onDisable(SKShopkeepersPlugin.java:419) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:405) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:533) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.17.1.jar:git-Paper-88]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:639) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-88]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-88]
at java.lang.Thread.run(Thread.java:831) [?:?]
Its me aggain...
the issue could might has to do with citicens that is not loading correct,,,?....
see here from an other plugin called ccrides..
There we also find the magical
[09:16:42] [Server thread/WARN]: Caused by: java.lang.NoSuchFieldError: bO
[09:16:41] [Server thread/INFO]: [ccRides] Sign Config Loaded.
[09:16:42] [Server thread/WARN]: java.lang.reflect.InvocationTargetException
[09:16:42] [Server thread/WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[09:16:42] [Server thread/WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
[09:16:42] [Server thread/WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[09:16:42] [Server thread/WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[09:16:42] [Server thread/WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.nms.v1_17_R1.entity.MobEntityController.createEntityFromClass(MobEntityController.java:48)
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.nms.v1_17_R1.entity.MobEntityController.createEntity(MobEntityController.java:32)
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.npc.AbstractEntityController.spawn(AbstractEntityController.java:41)
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:254)
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC.java:159)
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.api.npc.SimpleNPCDataStore.loadInto(SimpleNPCDataStore.java:59)
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.Citizens$CitizensLoadTask.run(Citizens.java:501)
[09:16:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81)
[09:16:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400)
[09:16:42] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1254)
[09:16:42] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:438)
[09:16:42] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1202)
[09:16:42] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1035)
[09:16:42] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303)
[09:16:42] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
[09:16:42] [Server thread/WARN]: Caused by: java.lang.NoSuchFieldError: bO
[09:16:42] [Server thread/WARN]: at net.citizensnpcs.nms.v1_17_R1.entity.EndermanController$EntityEndermanNPC.<init>(EndermanController.java:59)
[09:16:42] [Server thread/WARN]: ... 20 more
[16:25:09 WARN]: [Shopkeepers] Task #90 for Shopkeepers v2.13.1 generated an exception
java.lang.NoSuchFieldError: bO
at com.nisovin.shopkeepers.compat.v1_17_R1.NMSHandler.overwriteLivingEntityAI(NMSHandler.java:69) ~[?:?]
at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.overwriteAI(SKLivingShopObject.java:345) ~[?:?] at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.spawn(SKLivingShopObject.java:269) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.spawnShopkeeper(SKShopkeeperRegistry.java:1184) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue.process(ShopkeeperSpawnQueue.java:57) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue.process(ShopkeeperSpawnQueue.java:17) ~[?:?]
at com.nisovin.shopkeepers.util.taskqueue.TaskQueue.execute(TaskQueue.java:192) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue$SpawnerTask.run(ShopkeeperSpawnQueue.java:45) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.1.jar:git-Purpur-1259]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1565) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:492) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1270) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Purpur-1259]
at java.lang.Thread.run(Thread.java:831) [?:?]
[16:25:09 WARN]: [Shopkeepers] Task #90 for Shopkeepers v2.13.1 generated an exception
java.lang.NoSuchFieldError: bO
at com.nisovin.shopkeepers.compat.v1_17_R1.NMSHandler.overwriteLivingEntityAI(NMSHandler.java:69) ~[?:?]
at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.overwriteAI(SKLivingShopObject.java:345) ~[?:?] at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.spawn(SKLivingShopObject.java:269) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.spawnShopkeeper(SKShopkeeperRegistry.java:1184) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue.process(ShopkeeperSpawnQueue.java:57) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue.process(ShopkeeperSpawnQueue.java:17) ~[?:?]
at com.nisovin.shopkeepers.util.taskqueue.TaskQueue.execute(TaskQueue.java:192) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue$SpawnerTask.run(ShopkeeperSpawnQueue.java:45) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.1.jar:git-Purpur-1259]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1565) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:492) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1270) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Purpur-1259]
at java.lang.Thread.run(Thread.java:831) [?:?]
[16:25:09 WARN]: [Shopkeepers] Task #90 for Shopkeepers v2.13.1 generated an exception
java.lang.NoSuchFieldError: bO
at com.nisovin.shopkeepers.compat.v1_17_R1.NMSHandler.overwriteLivingEntityAI(NMSHandler.java:69) ~[?:?]
at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.overwriteAI(SKLivingShopObject.java:345) ~[?:?] at com.nisovin.shopkeepers.shopobjects.living.SKLivingShopObject.spawn(SKLivingShopObject.java:269) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.SKShopkeeperRegistry.spawnShopkeeper(SKShopkeeperRegistry.java:1184) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue.process(ShopkeeperSpawnQueue.java:57) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue.process(ShopkeeperSpawnQueue.java:17) ~[?:?]
at com.nisovin.shopkeepers.util.taskqueue.TaskQueue.execute(TaskQueue.java:192) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.ShopkeeperSpawnQueue$SpawnerTask.run(ShopkeeperSpawnQueue.java:45) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.1.jar:git-Purpur-1259]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1565) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:492) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1270) ~[patched_1.17.1.jar:git-Purpur-1259]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Purpur-1259]
at java.lang.Thread.run(Thread.java:831) [?:?]
Compatibility for MC 1.17.1 has been added in Shopkeepers v2.13.2, which will be available for download shortly.
Reminder: The Shopkeepers plugin requires an update on every major server update (like this one), and sometimes even on minor intermediate server updates. Testing the Shopkeepers plugin on new server versions and reporting encountered issues is always welcomed. But keep in mind that it is not recommend to update your primary server and then continue to run the previous Shopkeepers plugin version, especially not without having made backups of both the plugin and world data: The plugin can fail in unexpected ways, possibly doing irreversible damage to your Shopkeepers plugin data or world.
The automatic detection of incompatible server versions has failed in this update to MC 1.17.1. Hence the unexpected behavior of villagers walking around. I tried to improve this incompatibility detection with the update to v2.13.2, but the safest bet is to just not run Shopkeepers versions on server versions that are not explicitly listed as supported.