Crash on server lauch

server boots then crashes

[15:47:37] [Server thread/INFO] [Sponge]: Creating injector in stage ‘PRODUCTION’
[15:47:37] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Encountered an unexpected exception
java.lang.NoSuchMethodError: org.apache.logging.log4j.spi.LoggerContextFactory.isClassLoaderDependent()Z
at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:49) ~[_aspongeforge-1.12.2-2838-7.4.7.jar:1.12.2-2838-7.4.7]
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46) ~[minecraft_server.1.12.2.jar:?]
at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33) ~[_aspongeforge-1.12.2-2838-7.4.7.jar:1.12.2-2838-7.4.7]
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) ~[_aspongeforge-1.12.2-2838-7.4.7.jar:1.12.2-2838-7.4.7]
at org.spongepowered.common.inject.SpongeImplementationModule.configure(SpongeImplementationModule.java:96) ~[SpongeImplementationModule.class:1.12.2-2838-7.4.7]
at org.spongepowered.mod.inject.SpongeForgeModule.configure(SpongeForgeModule.java:45) ~[SpongeForgeModule.class:1.12.2-2838-7.4.7]
at com.google.inject.PrivateModule.configure(PrivateModule.java:101) ~[PrivateModule.class:1.12.2-2838-7.4.7]
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:347) ~[Elements$RecordingBinder.class:1.12.2-2838-7.4.7]
at com.google.inject.spi.Elements.getElements(Elements.java:104) ~[Elements.class:1.12.2-2838-7.4.7]
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137) ~[InjectorShell$Builder.class:1.12.2-2838-7.4.7]
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:105) ~[InternalInjectorCreator.class:1.12.2-2838-7.4.7]
at com.google.inject.Guice.createInjector(Guice.java:87) ~[Guice.class:1.12.2-2838-7.4.7]
at com.google.inject.Guice.createInjector(Guice.java:78) ~[Guice.class:1.12.2-2838-7.4.7]
at org.spongepowered.mod.SpongeMod.(SpongeMod.java:219) ~[SpongeMod.class:1.12.2-2838-7.4.7]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_333]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_333]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_333]
at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_333]
at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_333]
at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:377) ~[Loader.class:?]
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:566) ~[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(Unknown Source) [?:1.8.0_333]
[15:47:37] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: This crash report has been saved to: C:\Users\Alex Lowe\Desktop\sxzc.\crash-reports\crash-2022-05-03_15.47.37-server.txt
[15:47:37] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Exception stopping the server
java.lang.IllegalStateException: Sponge has not been initialized!
at com.google.common.base.Preconditions.checkState(Preconditions.java:444) ~[minecraft_server.1.12.2.jar:?]
at org.spongepowered.api.Sponge.check(Sponge.java:77) ~[Sponge.class:1.12.2-2838-7.4.7]
at org.spongepowered.api.Sponge.getGame(Sponge.java:91) ~[Sponge.class:1.12.2-2838-7.4.7]
at org.spongepowered.api.Sponge.isServerAvailable(Sponge.java:229) ~[Sponge.class:1.12.2-2838-7.4.7]
at net.minecraft.server.MinecraftServer.handler$zjh000$onStopServer(MinecraftServer.java:4634) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71260_j(MinecraftServer.java) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:579) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_333]
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.IllegalStateException: SpongeImpl has not been initialized!
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at com.google.common.base.Preconditions.checkState(Preconditions.java:444)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at org.spongepowered.common.SpongeImpl.check(SpongeImpl.java:124)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at org.spongepowered.common.SpongeImpl.getGame(SpongeImpl.java:137)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraftforge.fml.common.LoadController.redirect$zza000$forgeImpl$PostEvent(LoadController.java:567)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraftforge.fml.common.Loader.serverStopped(Loader.java:847)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraftforge.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:508)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:587)
[15:47:37] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.Thread.run(Unknown Source)
[15:47:37] [Server Shutdown Thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.IllegalStateException: Sponge has not been initialized!
[15:47:37] [Server Shutdown Thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at com.google.common.base.Preconditions.checkState(Preconditions.java:444)

It looks like the Log4J protection is acting here.

Update your forge to fix it

Technical info:
There was a exploit in Log4J (which is used on many Java projects including Minecraft). When the exploit was shown to the world, Forge updated 1.12.2 (and many other versions) which updated the Log4J to prevent the exploit. Sponge then updated which checks the Log4J for the exploit and prevents booting (to protect your server from hackers)

update forge to what ver?
ive tried 2860
and 2838

2860 is the one with the fix (make sure you use the installer so it updates the libraries folder)

so use 2860? or thats the one that breaks it? im currently using 2860 and its still crashing

Did you update via the installer? And delete the libraries folder before installing?

i made a whole separate server with the 2860 installer. still nothing. i will try again

still never opened. here is the 2860 logs

[17:06:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[17:06:51] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[17:06:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[17:06:51] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2860 for Minecraft 1.12.2 loading
[17:06:51] [main/INFO] [FML]: Java is Java HotSpot™ Client VM, version 1.8.0_333, running on Windows 10:x86:10.0, installed at C:\Program Files (x86)\Java\jre1.8.0_333
[17:06:51] [main/INFO] [FML]: Searching C:\Users\Alex Lowe\Desktop\lasty one.\mods for mods
[17:06:51] [main/INFO] [FML]: Loading tweaker org.spongepowered.asm.launch.MixinTweaker from _aspongeforge-1.12.2-2838-7.4.7.jar
[17:06:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:06:51] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.launch.MixinTweaker
[17:06:51] [main/INFO] [mixin]: SpongePowered MIXIN Subsystem Version=0.8 Source=file:/C:/Users/Alex%20Lowe/Desktop/lasty%20one/./mods/_aspongeforge-1.12.2-2838-7.4.7.jar Service=LaunchWrapper Env=SERVER
[17:06:51] [main/WARN] [FML]: The coremod SpongeCoremod (org.spongepowered.mod.SpongeCoremod) is not signed!
[17:06:51] [main/INFO] [mixin]: Compatibility level set to JAVA_8
[17:06:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:06:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:06:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:06:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:06:52] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[17:06:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:06:52] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.launch.MixinTweaker
[17:06:52] [main/INFO] [mixin]: Initialised Mixin FML Remapper Adapter with net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper@3c4c1c
[17:06:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:06:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:06:52] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.mixin.EnvironmentStateTweaker
[17:06:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:06:52] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.mixin.EnvironmentStateTweaker
[17:06:53] [main/WARN] [mixin]: @Mixin target net/minecraft/block/state/BlockStateContainer$StateImplementation is public in mixins.common.api.json:mcp.block.state.StateImplementationMixin_API and should be specified in value
[17:06:55] [main/WARN] [mixin]: Static binding violation: PRIVATE @Overwrite method func_189509_E in mixins.common.core.json:world.WorldMixin cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded.
[17:06:56] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
[17:07:09] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Starting minecraft server version 1.12.2
[17:07:09] [Server thread/WARN] [net.minecraft.server.dedicated.DedicatedServer]: To start the server with more ram, launch it as “java -Xmx1024M -Xms1024M -jar minecraft_server.jar”
[17:07:09] [Server console handler/ERROR] [net.minecraft.server.dedicated.DedicatedServer]: Exception handling console input
java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_333]
at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_333]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_333]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_333]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_333]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_333]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_333]
at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_333]
at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_333]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_333]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_333]
at net.minecraft.server.dedicated.DedicatedServer$2.run(DedicatedServer.java:105) [nz$2.class:?]
[17:07:09] [Server thread/INFO] [FML]: MinecraftForge v14.23.5.2860 Initialized
[17:07:10] [Server thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[17:07:10] [Server thread/INFO] [FML]: Invalid recipe found with multiple oredict ingredients in the same ingredient…
[17:07:10] [Server thread/INFO] [FML]: Replaced 1227 ore ingredients
[17:07:11] [Server thread/INFO] [Sponge]: Found mcmod.info at jar:file:/C:/Users/Alex%20Lowe/Desktop/lasty%20one/./mods/_aspongeforge-1.12.2-2838-7.4.7.jar!/mcmod.info
[17:07:11] [Server thread/INFO] [Sponge]: Creating injector in stage ‘PRODUCTION’
[17:07:35] [Server thread/INFO] [FML]: Searching C:\Users\Alex Lowe\Desktop\lasty one.\mods for mods
[17:07:37] [Server thread/INFO] [FML]: Forge Mod Loader has identified 7 mods to load
[17:07:38] [Server thread/WARN] [FML]: Missing English translation for FML: assets/fml/lang/en_us.lang
[17:07:38] [Server thread/WARN] [FML]: Missing English translation for spongeapi: assets/spongeapi/lang/en_us.lang
[17:07:38] [Server thread/WARN] [FML]: Missing English translation for spongeforge: assets/spongeforge/lang/en_us.lang
[17:07:39] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, spongeapi, sponge, spongeforge] at CLIENT
[17:07:39] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, spongeapi, sponge, spongeforge] at SERVER
[17:07:42] [Server thread/WARN] [Sponge]: There’s no certificate fingerprint available
[17:07:42] [Server thread/INFO] [FML]: Processing ObjectHolder annotations
[17:07:42] [Server thread/INFO] [FML]: Found 1168 ObjectHolder annotations
[17:07:42] [Server thread/INFO] [FML]: Identifying ItemStackHolder annotations
[17:07:42] [Server thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[17:07:49] [Server thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[17:07:49] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[17:07:49] [Server thread/INFO] [org.spongepowered.mod.SpongeMod]: Log test
[17:07:56] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: AHEAD Target: null
[17:07:56] [Forge Version Check/INFO] [forge.VersionCheck]: [spongeforge] Starting version check at https://files.minecraftforge.net/maven/org/spongepowered/spongeforge/promotions_slim.json
[17:07:58] [Forge Version Check/INFO] [forge.VersionCheck]: [spongeforge] Found status: OUTDATED Target: 7.1.2

Is there more to this log? Apart from reading a file and your starting with default ram limits, there isnt anything invalid in this log (that i can see)

Try uploading the log to a site such as gist or pastebin and sending the link here as it fixes the format issues

its all fixed. needed to start it with start.bat and that along with your fix resolved my issue. ty

1 Like