Help fixing server mob mod: NoClassDefFoundError

Started by SquishyFish on Fri, 02/08/2019 - 17:21

Topic category: Help with MCreator software

Last seen on 00:04, 9. Feb 2019
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help fixing server mob mod: NoClassDefFoundError
Fri, 02/08/2019 - 17:25 (edited)

I think this is related to a bug that won't be fixed until MCreator 2. Can anyone help me fix the code causing my local server to crash when starting? (it doesn't work with the server preview in MCreator either):

[12:13:43] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
java.lang.NoClassDefFoundError: net/minecraft/client/model/ModelBiped

I think it's trying to load classes from the client instead of the server? But I don't know what to replace in the code with because I don't know a lot about java.

Last login: Fri Feb  8 12:10:51 on ttys000
/Users/paulmorris/Desktop/MC\ Server\ Forge\ 1.12.2\ 2768/start.command ; exit;
paulmorris@iMac.local:~$ /Users/paulmorris/Desktop/MC\ Server\ Forge\ 1.12.2\ 2768/start.command ; exit;
[12:13:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[12:13:37] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[12:13:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[12:13:37] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[12:13:37] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_202-ea, running on Mac OS X:x86_64:10.13.6, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/jre
[12:13:37] [main/INFO] [FML]: Searching /Users/paulmorris/Desktop/MC Server Forge 1.12.2 2768/./mods for mods
[12:13:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:13:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:13:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:13:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:13:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:13:38] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[12:13:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:13:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:13:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:13:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:13:39] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
[12:13:42] [Server thread/INFO] [minecraft/DedicatedServer]: Starting minecraft server version 1.12.2
[12:13:42] [Server thread/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
[12:13:42] [Server thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[12:13:42] [Server thread/INFO] [FML]: Replaced 1036 ore ingredients
[12:13:42] [Server thread/INFO] [FML]: Config directory created successfully
[12:13:42] [Server thread/INFO] [FML]: Searching /Users/paulmorris/Desktop/MC Server Forge 1.12.2 2768/./mods for mods
[12:13:42] [Server thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[12:13:42] [Server thread/WARN] [FML]: Missing English translation for FML: assets/fml/lang/en_us.lang
[12:13:43] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, humanscum] at CLIENT
[12:13:43] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, humanscum] at SERVER
[12:13:43] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
java.lang.NoClassDefFoundError: net/minecraft/client/model/ModelBiped
	at mod.mcreator.humanscum.<clinit>(humanscum.java:97) ~[humanscum.class:?]
	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_202-ea]
	at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_202-ea]
	at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:526) ~[forge-1.12.2-14.23.5.2768-universal.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202-ea]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202-ea]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202-ea]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202-ea]
	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[minecraft_server.1.12.2.jar:?]
	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218) ~[forge-1.12.2-14.23.5.2768-universal.jar:?]
	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196) ~[forge-1.12.2-14.23.5.2768-universal.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202-ea]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202-ea]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202-ea]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202-ea]
	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[minecraft_server.1.12.2.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[minecraft_server.1.12.2.jar:?]
	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) ~[LoadController.class:?]
	at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593) ~[Loader.class:?]
	at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:98) ~[FMLServerHandler.class:?]
	at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333) ~[FMLCommonHandler.class:?]
	at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125) ~[nz.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202-ea]
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.model.ModelBiped
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_202-ea]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_202-ea]
	... 35 more
Caused by: java.lang.NullPointerException
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_202-ea]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_202-ea]
	... 35 more
[12:13:43] [Server thread/ERROR] [minecraft/MinecraftServer]: This crash report has been saved to: /Users/paulmorris/Desktop/MC Server Forge 1.12.2 2768/./crash-reports/crash-2019-02-08_12.13.43-server.txt
[12:13:43] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server
[12:13:43] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
[12:13:43] [Server thread/INFO] [FML]: The state engine was in incorrect state PREINITIALIZATION and forced into state SERVER_STOPPED. Errors may have been discarded.
[12:13:43] [Server Shutdown Thread/INFO] [minecraft/MinecraftServer]: Stopping server
[12:13:43] [Server Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving worlds
> logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

 

Edited by SquishyFish on Fri, 02/08/2019 - 17:25
Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Server? Says Online? Well,…
Fri, 02/08/2019 - 17:42

Server? Says Online?
Well, as far as I know MCreator still does not have good server support yet! :)

Even then you can not try, send it to the issue tracker!

Last seen on 00:04, 9. Feb 2019
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry what did you mean? I…
Sat, 02/09/2019 - 00:04

Sorry what did you mean? I don't see where it says online?

 But yea I guess I'll send it to the issue tracker. I think I saw a post on there already but I'll double check. Thanks

Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry if I got it wrong, but…
Sat, 02/09/2019 - 10:58

Sorry if I got it wrong, but send it to the tracker! :)