Jump to content

[1.10.2] EntityPlayerSP on server


IamMaxim

Recommended Posts

I have this problem:

[21:28:27] [server thread/INFO] [sTDOUT]: [ru.iammaxim.tesitems.TESItems:onEntityLoad:297]: trying to attach capability to 214
[21:28:27] [server thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.AttachCapabilitiesEvent$Entity@2a9f08e:
java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityPlayerSP
at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_101]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[?:1.8.0_101]
at java.lang.Class.getConstructor0(Class.java:3075) ~[?:1.8.0_101]
at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_101]
at net.minecraftforge.common.capabilities.CapabilityManager$1.call(CapabilityManager.java:64) ~[CapabilityManager$1.class:?]
at net.minecraftforge.common.capabilities.Capability.getDefaultInstance(Capability.java:124) ~[Capability.class:?]
at ru.iammaxim.tesitems.Player.PlayerAttributesCapabilityProvider.<init>(PlayerAttributesCapabilityProvider.java:13) ~[PlayerAttributesCapabilityProvider.class:?]
at ru.iammaxim.tesitems.TESItems.onEntityLoad(TESItems.java:298) ~[TESItems.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_8_TESItems_onEntityLoad_AttachCapabilitiesEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) [EventBus.class:?]
at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:565) [ForgeEventFactory.class:?]
at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:550) [ForgeEventFactory.class:?]
at net.minecraft.entity.Entity.<init>(Entity.java:252) [Entity.class:?]
at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:192) [EntityLivingBase.class:?]
at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:181) [EntityPlayer.class:?]
at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:162) [EntityPlayerMP.class:?]
at net.minecraft.server.management.PlayerList.createPlayerForUser(PlayerList.java:525) [PlayerList.class:?]
at net.minecraft.server.network.NetHandlerLoginServer.tryAcceptPlayer(NetHandlerLoginServer.java:137) [NetHandlerLoginServer.class:?]
at net.minecraft.server.network.NetHandlerLoginServer.update(NetHandlerLoginServer.java:64) [NetHandlerLoginServer.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:308) [NetworkManager.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:195) [NetworkSystem.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:806) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:408) [DedicatedServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityPlayerSP
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]
... 27 more
Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@17d2ed1b from coremod FMLCorePlugin
at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:253) ~[forgeSrc-1.10.2-12.18.2.2123.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]
... 27 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/entity/EntityPlayerSP for invalid side SERVER
at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:56) ~[forgeSrc-1.10.2-12.18.2.2123.jar:?]
at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:249) ~[forgeSrc-1.10.2-12.18.2.2123.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]
... 27 more
[21:28:27] [server thread/ERROR] [FML]: Index: 1 Listeners:
[21:28:27] [server thread/ERROR] [FML]: 0: NORMAL
[21:28:27] [server thread/ERROR] [FML]: 1: ASM: ru.iammaxim.tesitems.TESItems@3285c689 onEntityLoad(Lnet/minecraftforge/event/AttachCapabilitiesEvent;)V
[21:28:27] [server thread/ERROR]: Encountered an unexpected exception
java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityPlayerSP
at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_101]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[?:1.8.0_101]
at java.lang.Class.getConstructor0(Class.java:3075) ~[?:1.8.0_101]
at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_101]
at net.minecraftforge.common.capabilities.CapabilityManager$1.call(CapabilityManager.java:64) ~[CapabilityManager$1.class:?]
at net.minecraftforge.common.capabilities.Capability.getDefaultInstance(Capability.java:124) ~[Capability.class:?]
at ru.iammaxim.tesitems.Player.PlayerAttributesCapabilityProvider.<init>(PlayerAttributesCapabilityProvider.java:13) ~[PlayerAttributesCapabilityProvider.class:?]
at ru.iammaxim.tesitems.TESItems.onEntityLoad(TESItems.java:298) ~[TESItems.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_8_TESItems_onEntityLoad_AttachCapabilitiesEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) ~[EventBus.class:?]
at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:565) ~[ForgeEventFactory.class:?]
at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:550) ~[ForgeEventFactory.class:?]
at net.minecraft.entity.Entity.<init>(Entity.java:252) ~[Entity.class:?]
at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:192) ~[EntityLivingBase.class:?]
at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:181) ~[EntityPlayer.class:?]
at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:162) ~[EntityPlayerMP.class:?]
at net.minecraft.server.management.PlayerList.createPlayerForUser(PlayerList.java:525) ~[PlayerList.class:?]
at net.minecraft.server.network.NetHandlerLoginServer.tryAcceptPlayer(NetHandlerLoginServer.java:137) ~[NetHandlerLoginServer.class:?]
at net.minecraft.server.network.NetHandlerLoginServer.update(NetHandlerLoginServer.java:64) ~[NetHandlerLoginServer.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:308) ~[NetworkManager.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:195) ~[NetworkSystem.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:806) ~[MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:408) ~[DedicatedServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityPlayerSP
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]
... 27 more
Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@17d2ed1b from coremod FMLCorePlugin
at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:253) ~[forgeSrc-1.10.2-12.18.2.2123.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]
... 27 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/entity/EntityPlayerSP for invalid side SERVER
at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:56) ~[forgeSrc-1.10.2-12.18.2.2123.jar:?]
at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:249) ~[forgeSrc-1.10.2-12.18.2.2123.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]
... 27 more
[21:28:27] [server thread/ERROR]: This crash report has been saved to: /home/maxim/Galedwell/run/./crash-reports/crash-2016-11-12_21.28.27-server.txt

on latest Forge build on server, but I even don't have EntityPlayerSP in my imports and methods (I tried search and found nothing).

 

Here are my:

Main mod file: https://github.com/IamMaxim/galedwell/blob/1.10.2/src/main/java/ru/iammaxim/tesitems/TESItems.java

Exception is thrown in https://github.com/IamMaxim/galedwell/blob/1.10.2/src/main/java/ru/iammaxim/tesitems/Player/PlayerAttributesCapabilityProvider.java

when i try to getDefaultInstance() of https://github.com/IamMaxim/galedwell/blob/1.10.2/src/main/java/ru/iammaxim/tesitems/Player/IPlayerAttributesCapability.java

In singleplayer all works as it should. I tried it on 1.9.4 and got the same result. Can you point me at problem?

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello! I am attempting to play on a Minecraft server with a few friends, this server has loaded before but crashed and brought me to this issue where it is continuously freezing at version checking. The mod it version checks that it gets stuck on is inconsistent, and removing the mods it gets stuck on does not seem to help. Linked is the latest log given, and the debug log. Latest Log - https://paste.ee/p/HuPB2 Debug Log - https://paste.ee/p/2MwuF Server Hoster: GPortal Minecraft Vers: 1.20.1 Forge Vers: 47.3.0
    • "I had a distressing experience last year when I lost access to my cryptocurrency wallet due to a technical issue. After trying unsuccessfully to recover it myself, I was skeptical about finding a trustworthy service to help. That's when I discovered Fast fund Recovery. From the outset, they impressed me with their professionalism and expertise. Their team took the time to understand my situation and promptly outlined a recovery plan. They maintained clear communication throughout the process, informing me of progress and any challenges they encountered. This transparency was reassuring, especially considering the sensitive nature of cryptocurrency recovery. Fast fund Recovery utilized advanced techniques and tools specific to blockchain technology, demonstrating a deep understanding of how cryptocurrencies operate. They approached my case with diligence and persistence, never giving up despite the complexities involved. After several weeks of meticulous effort, I was ecstatic to receive the news that Fast fund Recovery had successfully recovered access to my wallet. It was a huge relief and a testament to their skill and dedication. They restored my access and provided valuable advice on improving security measures to prevent future issues. I am immensely grateful to Fast fund Recovery for their exceptional service and would highly recommend them to anyone facing similar challenges in the crypto world. Their professionalism, expertise, and commitment to customer satisfaction truly set them apart." E-m ail: Fastfundrecovery8 (at)g mail com  
    • I recently tried to load forge version 51.0.17 for 1.21 and, every time I tried to load it it would crash before even launching the game.
    • I am trying to do the same thing but it's telling me that "level" in player.level.levelinfo.dimension. is private. I am on 1.20.1 with parchment mappings 2023.09.03-1.20.1 Thanks in advance for any help!
×
×
  • Create New...

Important Information

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