Error when joining Server (0.2.23)
Carp66 opened this issue ยท 4 comments
Me and others get this error when trying to join friend's server. Only way to fix it seems to be to /tp to someone else in the split second before getting kicked; would like a permanent fix or workaround that doesn't need 2 people and someone OP'd.
I've already ran repair through CurseForge launcher, tried reinstalling modpack, and reinstalling/updating Java. Deleting and reentering the server's port in the IP address line has worked a couple times for others, but has not worked for me and does not work consistently for them. Using direct connect also doesn't seem to help.
Modpack version is 0.2.23 and current modloader version is Forge 39.0.19. Singleplayer worlds run fine and server is hosted on Apex if that helps.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
So just to add to this(^his server admin) we MAY have a solution, that being to launch MC vanilla and join a server and leave, then join the modded again. this has worked once so far, but since we cannot replicate this and haven't had this issue again this is only a guess
Merry Christmas, ThisIsIan66
I had a player with the same issue last night the fix i found was to edit their player NBT data HP = 0 and set keepINV then had them join they kept everything and it killed him on connect. The error the server was throwing was "Failed to handle packet for /XX.XXX.XX.XX"
Other thing I have the server doing is reboot once a day, doesn't hurt chunk loading or anything for more than 2-3 minutes and it helps the memory usage
`[07:15:44] [Server thread/ERROR]: Exception caught during firing event: Cannot invoke "java.util.Set.isEmpty()" because the return value of "java.util.Map.get(Object)" is null
Index: 4
Listeners:
0: HIGH
1: ASM: class dev.architectury.event.forge.EventHandlerImplCommon event(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
2: NORMAL
3: ASM: class com.github.klikli_dev.occultism.handlers.LootEventHandler giveStoneToBlacksmith(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
4: net.minecraftforge.eventbus.EventBus$$Lambda$3716/0x00000008016e9d20@156105ae
5: ASM: class com.direwolf20.buildinggadgets.common.events.ItemPickupHandler GetDrops(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
6: ASM: com.lothrazar.storagenetwork.registry.SsnEvents@41801707 onEntityItemPickupEvent(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
7: ASM: stepsword.mahoutsukai.handlers.ServerHandler@1e302e72 useItem(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
8: ASM: class mod.chiselsandbits.forge.events.EntityItemPickupEventHandler pickupItems(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
9: ASM: Block{naturesaura:pickup_stopper} onPickup(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
10: ASM: com.minecolonies.coremod.permissions.ColonyPermissionEventHandler@254dc974 on(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
11: ASM: com.minecolonies.coremod.permissions.ColonyPermissionEventHandler@5bce1e3e on(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
12: ASM: mob_grinding_utils.events.ChickenFuseEvent@32a791f3 startChickenFuse(Lnet/minecraftforge/event/entity/living/LivingEvent;)V
13: LOWEST
14: ASM: class com.hollingsworth.arsnouveau.common.event.EventHandler itemPickupEvent(Lnet/minecraftforge/event/entity/player/EntityItemPickupEvent;)V
java.lang.NullPointerException: Cannot invoke "java.util.Set.isEmpty()" because the return value of "java.util.Map.get(Object)" is null
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHandlerSlotTracker.handleOverflow(InventoryHandlerSlotTracker.java:159)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHandlerSlotTracker.insertItemIntoHandler(InventoryHandlerSlotTracker.java:121)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.backpack.wrapper.BackpackInventoryHandler.insertItem(BackpackInventoryHandler.java:321)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.upgrades.magnet.MagnetUpgradeWrapper.pickup(MagnetUpgradeWrapper.java:68)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHelper.runPickupOnBackpack(InventoryHelper.java:161)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHelper.runPickupOnBackpack(InventoryHelper.java:152)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.common.CommonEventHandler.lambda$onItemPickup$4(CommonEventHandler.java:141)
at TRANSFORMER/[email protected]/net.minecraftforge.common.util.LazyOptional.map(LazyOptional.java:209)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.common.CommonEventHandler.lambda$onItemPickup$5(CommonEventHandler.java:140)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.util.PlayerInventoryProvider.runOnBackpacks(PlayerInventoryProvider.java:107)
at TRANSFORMER/[email protected]/net.p3pp3rf1y.sophisticatedbackpacks.common.CommonEventHandler.onItemPickup(CommonEventHandler.java:139)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
at TRANSFORMER/[email protected]/net.minecraftforge.event.ForgeEventFactory.onItemPickup(ForgeEventFactory.java:437)
at TRANSFORMER/[email protected]/net.minecraft.world.entity.item.ItemEntity.m_6123_(ItemEntity.java:325)
at TRANSFORMER/[email protected]/net.minecraft.world.entity.player.Player.m_36277_(Player.java:555)
at TRANSFORMER/[email protected]/net.minecraft.world.entity.player.Player.m_8107_(Player.java:522)
at TRANSFORMER/[email protected]/net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2243)
at TRANSFORMER/[email protected]/net.minecraft.world.entity.player.Player.m_8119_(Player.java:234)
at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:439)
at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:206)
at TRANSFORMER/[email protected]/net.minecraft.network.Connection.m_129483_(Connection.java:233)
at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:882)
at TRANSFORMER/[email protected]/net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:328)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:808)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:668)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:258)
at java.base/java.lang.Thread.run(Thread.java:833)
[07:15:44] [Server thread/WARN]: Failed to handle packet for /XX.XXX.XX.XX
net.minecraft.ReportedException: Ticking player
at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:502) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:206) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.network.Connection.m_129483_(Connection.java:233) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:882) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:328) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:808) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:668) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:258) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Set.isEmpty()" because the return value of "java.util.Map.get(Object)" is null
at net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHandlerSlotTracker.handleOverflow(InventoryHandlerSlotTracker.java:159) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHandlerSlotTracker.insertItemIntoHandler(InventoryHandlerSlotTracker.java:121) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.backpack.wrapper.BackpackInventoryHandler.insertItem(BackpackInventoryHandler.java:321) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.upgrades.magnet.MagnetUpgradeWrapper.pickup(MagnetUpgradeWrapper.java:68) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHelper.runPickupOnBackpack(InventoryHelper.java:161) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.util.InventoryHelper.runPickupOnBackpack(InventoryHelper.java:152) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.common.CommonEventHandler.lambda$onItemPickup$4(CommonEventHandler.java:141) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.minecraftforge.common.util.LazyOptional.map(LazyOptional.java:209) ~[forge-1.18.1-39.0.10-universal.jar%23253!:?]
at net.p3pp3rf1y.sophisticatedbackpacks.common.CommonEventHandler.lambda$onItemPickup$5(CommonEventHandler.java:140) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.util.PlayerInventoryProvider.runOnBackpacks(PlayerInventoryProvider.java:107) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.p3pp3rf1y.sophisticatedbackpacks.common.CommonEventHandler.onItemPickup(CommonEventHandler.java:139) ~[sophisticatedbackpacks-1.18.1-3.15.1.505.jar%23219!:1.18.1-3.15.1.505]
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-5.0.3.jar%232!:?]
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-5.0.3.jar%232!:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!:?]
at net.minecraftforge.event.ForgeEventFactory.onItemPickup(ForgeEventFactory.java:437) ~[forge-1.18.1-39.0.10-universal.jar%23253!:?]
at net.minecraft.world.entity.item.ItemEntity.m_6123_(ItemEntity.java:325) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.world.entity.player.Player.m_36277_(Player.java:555) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.world.entity.player.Player.m_8107_(Player.java:522) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2243) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.world.entity.player.Player.m_8119_(Player.java:234) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:439) ~[server-1.18.1-20211210.034407-srg.jar%23249!:?]
... 9 more`