DiseaseCraft

DiseaseCraft

61.1k Downloads

Server Crash: Trying to load client-only classes on the server.

Laikulo opened this issue ยท 4 comments

commented
---- Minecraft Crash Report ----
// Oh - I know what I did wrong!

Time: 5/19/15 9:52 PM
Description: Exception in server tick loop

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen
        at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)
        at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:535)
        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)
Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen
        at mc.Mitchellbrine.diseaseCraft.DiseaseCraft.preInit(DiseaseCraft.java:130)
        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:497)
        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:497)
        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:497)
        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:533)
        ... 5 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiScreen
        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.RuntimeException: Attempted to load class bdw for invalid side SERVER
        at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)
        at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)
        at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)
        ... 34 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
        Minecraft Version: 1.7.10
        Operating System: Linux (amd64) version 3.14.32-xxxx-grs-ipv6-64
        Java Version: 1.8.0_40, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 418522376 bytes (399 MB) / 471334912 bytes (449 MB) up to 477626368 bytes (455 MB)
        JVM Flags: 2 total; -Xms512M -Xmx512M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.3.1408 11 mods loaded, 11 mods active
        mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
        FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.3.1408-1.7.10-universal.jar) Unloaded->Constructed->Pre-initialized
        Forge{10.13.3.1408} [Minecraft Forge] (forge-1.7.10-10.13.3.1408-1.7.10-universal.jar) Unloaded->Constructed->Pre-initialized
        DCModLoader{1.0} [DCModuleLoader] (minecraft.jar) Unloaded->Constructed->Pre-initialized
        jewelrycraft2{1.0.9} [Jewelrycraft 2] ([1.7.10] Jewelrycraft2-1.0.10-universal.jar) Unloaded->Constructed->Pre-initialized
        achget{1.0} [Achievement Get] (AchievementGet-1.7.10-1.0.1.jar) Unloaded->Constructed->Pre-initialized
        DiseaseCraft{2.0} [DiseaseCraft] (DiseaseCraft-1.7.10-2.0.jar) Unloaded->Constructed->Errored
        enderutilities{0.4.0} [Ender Utilities] (enderutilities-1.7.10-0.4.0.jar) Unloaded->Constructed->Pre-initialized
        hackery{0.2.1} [Hackery for Minecraft] (Hackery-0.2.1-jnks5-universal.jar) Unloaded->Constructed->Pre-initialized
        examplemod{1.0} [Example Mod] (modid-1.0.jar) Unloaded->Constructed->Pre-initialized
        progressiveautomation{1.6.0} [Progressive Automation] (ProgressiveAutomation-1.7.10-1.6.0.jar) Unloaded->Constructed->Pre-initialized
        Profiler Position: N/A (disabled)
        Is Modded: Definitely; Server brand changed to 'fml,forge'
        Type: Dedicated Server (map_server.txt)
commented

NetworkRegistry.INSTANCE.registerGuiHandler(DiseaseCraft.instance, new GuiHandler()); <<< That's supposed to be client-only?

commented

Okay, that's really weird. That line is registering a network registry.

commented

The GUI handler is on both, it can reference classes that are refrence client only things, but it can't reference them itself

commented

That's the only part of the code that the crash references. I'm don't know what's really going on. The GUI handler is set up correctly.