Jump to content

Recommended Posts

Posted

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?

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.