Jump to content

Java Error: Caused by: java.lang.ClassCastException #124


Recommended Posts

I am running a modded Forge 1.18.1 Minecraft server with the Forge ported version of Origins, I always get the same error message when I attempt to choose certain Origins but not others.

Based on the log it seems to be a class cast issue but I'm not sure how to fix it.

 

LOG:
[23:36:42] [Server thread/WARN]: Failed to handle packet for /68.108.58.137:60227
net.minecraft.ReportedException: Ticking player
at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:502) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:206) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.network.Connection.m_129483_(Connection.java:233) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:882) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:328) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:808) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:668) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:258) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.ClassCastException: class net.minecraft.server.level.ServerPlayer cannot be cast to class io.github.apace100.apoli.mixin.EntityAccessor (net.minecraft.server.level.ServerPlayer is in module [email protected] of loader 'TRANSFORMER' @411c6d44; io.github.apace100.apoli.mixin.EntityAccessor is in module [email protected] of loader 'TRANSFORMER' @411c6d44)
at io.github.edwinmindcraft.apoli.common.condition.entity.SimpleEntityCondition.isExposedToSky(SimpleEntityCondition.java:20) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.registry.condition.ApoliEntityConditions.lambda$static$2(ApoliEntityConditions.java:59) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.condition.entity.SimpleEntityCondition.check(SimpleEntityCondition.java:36) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.condition.entity.SimpleEntityCondition.check(SimpleEntityCondition.java:14) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.factory.EntityCondition.check(EntityCondition.java:35) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.configuration.ConfiguredEntityCondition.check(ConfiguredEntityCondition.java:28) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.registry.condition.ApoliEntityConditions.lambda$static$0(ApoliEntityConditions.java:47) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.condition.meta.ConditionStreamConfiguration.lambda$check$10(ConditionStreamConfiguration.java:40) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:1002) ~[?:?]
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129) ~[?:?]
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230) ~[?:?]
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.allMatch(ReferencePipeline.java:637) ~[?:?]
at io.github.edwinmindcraft.apoli.common.condition.meta.ConditionStreamConfiguration.lambda$andCodec$7(ConditionStreamConfiguration.java:31) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.condition.meta.ConditionStreamConfiguration.check(ConditionStreamConfiguration.java:40) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.condition.entity.DelegatedEntityCondition.check(DelegatedEntityCondition.java:16) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.condition.entity.DelegatedEntityCondition.check(DelegatedEntityCondition.java:9) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.factory.EntityCondition.check(EntityCondition.java:35) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.configuration.ConfiguredEntityCondition.check(ConfiguredEntityCondition.java:28) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.factory.PowerFactory.lambda$isActive$3(PowerFactory.java:169) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90) ~[?:?]
at java.util.Collections$2.tryAdvance(Collections.java:4853) ~[?:?]
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129) ~[?:?]
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230) ~[?:?]
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.allMatch(ReferencePipeline.java:637) ~[?:?]
at io.github.edwinmindcraft.apoli.api.power.factory.PowerFactory.isActive(PowerFactory.java:169) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.factory.PowerFactory.canTick(PowerFactory.java:123) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.configuration.ConfiguredPower.tick(ConfiguredPower.java:126) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.api.power.configuration.ConfiguredPower.tick(ConfiguredPower.java:137) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at io.github.edwinmindcraft.apoli.common.component.PowerContainer.serverTick(PowerContainer.java:189) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at net.minecraftforge.common.util.LazyOptional.ifPresent(LazyOptional.java:150) ~[forge-1.18.1-39.1.2-universal.jar%2382!/:?]
at io.github.edwinmindcraft.apoli.common.ApoliEventHandler.livingTick(ApoliEventHandler.java:90) ~[Origins-1.18.1-1.3.1.7-unified.jar%2362!/:1.18.1-1.3.1.7]
at net.minecraftforge.eventbus.ASMEventHandler_312_ApoliEventHandler_livingTick_LivingUpdateEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[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.common.ForgeHooks.onLivingUpdate(ForgeHooks.java:289) ~[forge-1.18.1-39.1.2-universal.jar%2382!/:?]
at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2210) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.world.entity.player.Player.m_8119_(Player.java:234) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:439) ~[server-1.18.1-20211210.034407-srg.jar%2378!/:?]
... 9 more
[23:36:42] [Server thread/INFO]: player lost connection: Internal server error
[23:36:42] [Server thread/INFO]: player left the game
[23:36:42] [Server thread/INFO]: PLAYER_QUIT
[23:36:42] [Server thread/INFO]: remove player wand
[23:36:42] [Server thread/INFO]: Disconnecting client

Link to comment
Share on other sites

Others seem to be using the mod with no issues on their server, and it works great for me on single player—any idea why it’s an issue on my server? is it rather a problem with incompatibility? or simply just a problem with the mod?

Edited by killinmesmols
Link to comment
Share on other sites

1 hour ago, killinmesmols said:

Others seem to be using the mod with no issues on their server, and it works great for me on single player—any idea why it’s an issue on my server?

the bug is server only, that's the reason why it works in single player

1 hour ago, killinmesmols said:

is it rather a problem with incompatibility? or simply just a problem with the mod?

not sure, talk to the mod author

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.