Server crash report?

Re
- in Mods
11

When we start the server it crashes. Error code

java.lang.IllegalStateException: ASM: Can't run on Server!

at com.gitlab.minecraft_defense_force.asm.ModAegisSystem.preInit (ModAegisSystem.kt: 166)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:498)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent (FMLModContainer.java:532)

at sun.reflect.GeneratedMethodAccessor3.invoke (Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent (EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent (SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch (EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents (EventBus.java:304)

at com.google.common.eventbus.EventBus.post (EventBus.java:275)

at cpw.mods.fml.common.LoadController.sendEventToModContainer (LoadController.java:212)

at cpw.mods.fml.common.LoadController.propogateStateMessage (LoadController.java:190)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent (EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent (SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch (EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents (EventBus.java:304)

at com.google.common.eventbus.EventBus.post (EventBus.java:275)

at cpw.mods.fml.common.LoadController.distributeStateMessage (LoadController.java:119)

at cpw.mods.fml.common.Loader.preinitializeMods (Loader.java:556)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading (FMLServerHandler.java:88)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart (FMLCommonHandler.java:314)

at net.minecraft.server.dedicated.DedicatedServer.func_71197_b (DedicatedServer.java:117)

at net.minecraft.server.MinecraftServer.run (MinecraftServer.java:387)

at net.minecraft.server.MinecraftServer $ 2.run (MinecraftServer.java:685)

St

The relevant information is already in the first line:

Can't run on server!

The Aegis system modification will only work with the integrated server, i.e. In single player mode.

Re

Many Thanks

I'll see if it's because of that

Re

I now have the Mod Aegis System out and the error message still comes.

St

From the server? The exact same message can then be impossible, because there's the exact line of code from the plugin.

Re

Cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net / minecraft / client / entity / EntityClientPlayerMP

at cpw.mods.fml.common.LoadController.transition (LoadController.java:163)

at cpw.mods.fml.common.Loader.initializeMods (Loader.java:739)

at cpw.mods.fml.server.FMLServerHandler.finishServerLoading (FMLServerHandler.java:97)

at cpw.mods.fml.common.FMLCommonHandler.onServerStarted (FMLCommonHandler.java:319)

at net.minecraft.server.dedicated.DedicatedServer.func_71197_b (DedicatedServer.java:210)

at net.minecraft.server.MinecraftServer.run (MinecraftServer.java:387)

at net.minecraft.server.MinecraftServer $ 2.run (MinecraftServer.java:685)

Caused by: java.lang.NoClassDefFoundError: net / minecraft / client / entity / EntityClientPlayerMP

at yalter.mousetweaks.loaders.MouseTweaksForge.init (Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:498)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent (FMLModContainer.java:532)

at sun.reflect.GeneratedMethodAccessor3.invoke (Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent (EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent (SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch (EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents (EventBus.java:304)

at com.google.common.eventbus.EventBus.post (EventBus.java:275)

at cpw.mods.fml.common.LoadController.sendEventToModContainer (LoadController.java:212)

at cpw.mods.fml.common.LoadController.propogateStateMessage (LoadController.java:190)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:498)

at com.google.common.eventbus.EventSubscriber.handleEvent (EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent (SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch (EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents (EventBus.java:304)

at com.google.common.eventbus.EventBus.post (EventBus.java:275)

at cpw.mods.fml.common.LoadController.distributeStateMessage (LoadController.java:119)

at cpw.mods.fml.common.Loader.initializeMods (Loader.java:737)

… 5 more

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityClientPlayerMP

at net.minecraft.launchwrapper.LaunchClassLoader.findClass (LaunchClassLoader.java:191)

at java.lang.ClassLoader.loadClass (ClassLoader.java:424)

at java.lang.ClassLoader.loadClass (ClassLoader.java:357)

… 32 more

Caused by: java.lang.ArrayIndexOutOfBoundsException

Re

This is the latest crash report

St

Mouse Tweaks is client-side only and therefore has to get out of the server.

Re

Okay, I see

Re

One more question, how do you find my mistakes so quickly

St

This is primarily experience in Java development and with Minecraft modding. With this knowledge, one can filter the exceptions relatively quickly for useful information. The most important thing is that you get the general information from the output of the exceptions, i.e. The first line and all following lines that contain "Caused by".

Example 1:

java.lang.IllegalStateException: ASM: Can't run on Server!

Edition → Mod can't run on server

at com.gitlab.minecraft_defense_force.asm.ModAegisSystem.preInit (ModAegisSystem.kt: 166)

=> Error in Aegis system

Example 2:

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net / minecraft / client / entity / EntityClientPlayerMP

A Minecraft class from net.minecraft.client could not be loaded => This is a client-side mod

at yalter.mousetweaks.loaders.MouseTweaksForge.init (Unknown Source)

=> Bug in Mouse Tweaks

Re

Thanks again for your help