Closed killerjerick closed 8 years ago
Could you provide a list of the mods?
@kashike I think this is probably an issue with one of the listed coremods preventing the mixin for ItemType
from being applied properly
Sorry, jumped a beat, missed the title, yeah definitely going to need a complete listing of mods.
The list is pretty long, like I said I don't want to waste your time but if any of these mods are known to cause issues please let me know :) Thanks guys! http://i.imgur.com/zNF6k0L.png
holy... I would be not surprised if more than one mod in there is causing the crash :tongue:
@killerjerick You should post the full log, as mixin has debug outputs.
One of the core mods seems to be loading the net.minecraft.item.Item
class earlier than SpongeForge can start mixins:
Caused by: java.lang.ClassCastException: net.minecraft.item.Item cannot be cast to org.spongepowered.api.item.ItemType
I tried to start a server DummyCore-2.2.189.0.jar to reproduce it.
java.lang.ClassCastException: net.minecraftforge.fml.common.event.FMLConstructionEvent cannot be cast to org.spongepowered.api.event.Event
at net.minecraftforge.fml.common.LoadController.redirect$onPost$0(LoadController.java:55) ~[LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?]
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:512) ~[Loader.class:?]
at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) ~[FMLServerHandler.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:320) ~[FMLCommonHandler.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:112) ~[ko.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]
[21:54:44] [Server thread/ERROR]: This crash report has been saved to: /home/jonathan/Sponge/./crash-reports/crash-2016-03-28_21.54.44-server.txt
[21:54:44] [Server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first.
> mar 28, 2016 9:54:44 PM com.google.common.eventbus.EventBus$LoggingSubscriberExceptionHandler handleException
GRAVE: Could not dispatch event: sponge to public void org.spongepowered.mod.SpongeMod.onStateEvent(net.minecraftforge.fml.common.event.FMLStateEvent)
[21:54:44] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.
[21:54:44] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.
I've added only DummyCore
forge-1.8.9-11.15.1.1808 spongeforge-1.8.9-1763-4.1.0-BETA-1220
Different error
mdcore is the causer.
Output:
$ java -jar forge-1.8.9-11.15.1.1808-universal.jar
[15:04:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:04:37] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:04:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:04:41] [main/INFO] [FML]: Forge Mod Loader version 11.15.1.1808 for Minecraft 1.8.9 loading
[15:04:41] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_74, running on Linux:amd64:4.4.5-1-ARCH, installed at /usr/lib/jvm/java-8-openjdk/jre
[15:04:41] [main/WARN] [FML]: The coremod com.mattdahepic.mdecore.asm.MDECoreMod does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[15:04:41] [main/INFO] [FML]: Loading tweaker org.spongepowered.asm.launch.MixinTweaker from spongeforge-1.8.9-1763-4.1.0-BETA-1220.jar
[15:04:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:04:41] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.launch.MixinTweaker
[15:04:41] [main/INFO] [mixin]: SpongePowered MIXIN Subsystem Version=0.5.3 Source=file:/home/jonathan/SpongeServer/mods/spongeforge-1.8.9-1763-4.1.0-BETA-1220.jar Env=SERVER
[15:04:41] [main/INFO] [mixin]: Compatibility level set to JAVA_8
[15:04:41] [main/INFO] [mixin]: Adding new token provider org.spongepowered.mod.SpongeCoremod$TokenProvider to MixinEnvironment[DEFAULT]
[15:04:41] [main/INFO] [mixin]: Adding new token provider org.spongepowered.mod.SpongeCoremod$TokenProvider to MixinEnvironment[PREINIT]
[15:04:41] [main/INFO] [mixin]: Adding new token provider org.spongepowered.mod.SpongeCoremod$TokenProvider to MixinEnvironment[INIT]
[15:04:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:04:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:04:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:04:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:04:44] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[15:04:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:04:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:04:44] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.launch.MixinTweaker
[15:04:48] [main/INFO] [mixin]: Initialised Mixin FML Remapper Adapter with net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper@4fce136b
[15:04:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:04:50] [main/INFO] [mdecore]: Patching MinecraftServer class for tickrate changing...
[15:04:50] [main/INFO] [mixin]: A re-entrant transformer '$wrapper.com.mattdahepic.mdecore.asm.TickrateTransformer' was detected and will no longer process meta class data
[15:04:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:04:50] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.mixin.MixinEnvironment$EnvironmentStateTweaker
[15:04:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:04:50] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.mixin.MixinEnvironment$EnvironmentStateTweaker
[15:04:50] [main/INFO] [mdecore]: Patching MinecraftServer class for tickrate changing...
[15:05:01] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
[15:05:13] [Server thread/INFO]: Starting minecraft server version 1.8.9
[15:05:13] [Server thread/INFO] [FML]: MinecraftForge v11.15.1.1808 Initialized
[15:05:13] [Server thread/INFO] [FML]: Replaced 204 ore recipies
[15:05:18] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.ExceptionInInitializerError
at org.spongepowered.common.registry.CommonModuleRegistry.registerCommonModules(CommonModuleRegistry.java:267) ~[CommonModuleRegistry.class:1.8.9-1763-4.1.0-BETA-1220]
at org.spongepowered.common.registry.CommonModuleRegistry.registerDefaultModules(CommonModuleRegistry.java:124) ~[CommonModuleRegistry.class:1.8.9-1763-4.1.0-BETA-1220]
at org.spongepowered.common.registry.SpongeGameRegistry.preRegistryInit(SpongeGameRegistry.java:127) ~[SpongeGameRegistry.class:1.8.9-1763-4.1.0-BETA-1220]
at org.spongepowered.mod.SpongeMod.<init>(SpongeMod.java:136) ~[SpongeMod.class:1.8.9-1763-4.1.0-BETA-1220]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_74]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_74]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_74]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_74]
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_74]
at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:339) ~[Loader.class:?]
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:488) ~[Loader.class:?]
at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) ~[FMLServerHandler.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:320) ~[FMLCommonHandler.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:112) ~[ko.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]
Caused by: java.lang.ClassCastException: net.minecraft.item.Item cannot be cast to org.spongepowered.api.item.ItemType
at net.minecraft.item.ItemStack.getItem(ItemStack.java:133) ~[zx.class:?]
at org.spongepowered.common.item.inventory.SpongeItemStackSnapshot.<init>(SpongeItemStackSnapshot.java:80) ~[SpongeItemStackSnapshot.class:1.8.9-1763-4.1.0-BETA-1220]
at net.minecraft.item.ItemStack.createSnapshot(ItemStack.java:210) ~[zx.class:?]
at org.spongepowered.common.registry.type.ItemTypeRegistryModule.<clinit>(ItemTypeRegistryModule.java:49) ~[ItemTypeRegistryModule.class:1.8.9-1763-4.1.0-BETA-1220]
... 16 more
[15:05:18] [Server thread/ERROR]: This crash report has been saved to: /home/jonathan/SpongeServer/./crash-reports/crash-2016-03-29_15.05.18-server.txt
[15:05:18] [Server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first.
[15:05:18] [Server thread/INFO] [FML]: The state engine was in incorrect state CONSTRUCTING and forced into state SERVER_STOPPED. Errors may have been discarded.
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.IllegalStateException: Sponge has not been initialized!
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.google.common.base.Preconditions.checkState(Preconditions.java:176)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at org.spongepowered.api.Sponge.getGame(Sponge.java:43)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:256)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at org.spongepowered.common.SpongeImpl.postState(SpongeImpl.java:184)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at org.spongepowered.common.SpongeImpl.postShutdownEvents(SpongeImpl.java:188)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraft.server.dedicated.DedicatedServer.handler$postGameStoppingEvent$0(DedicatedServer.java:72)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraft.server.dedicated.DedicatedServer.func_71240_o(DedicatedServer.java)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:545)
[15:05:18] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Thread.run(Thread.java:745)
Mods:
$ cd mods
$ ls
mdecore-1.8.9-1.1.1.jar spongeforge-1.8.9-1763-4.1.0-BETA-1220.jar
Well theres the problem... this transformer class loads his mods main class in order to use the logger which causes Item and Material to be classloaded as well
Any ideas on where to report to the developer of mdcore?
Hey guys thanks for the help, I've removed MDEcore and the mod that used it (Autooredictconverter) and now I'm getting a new error:
Description: Exception in server tick loop
java.lang.ClassCastException: net.minecraftforge.fml.common.event.FMLConstructionEvent cannot be cast to org.spongepowered.api.event.Event
at net.minecraftforge.fml.common.LoadController.redirect$onPost$0(LoadController.java:55)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:512)
at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87)
at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:320)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:112)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
at java.lang.Thread.run(Thread.java:745)
It seems to be the same one @JonathanxD was referencing
@killerjerick You'll have to re-create the process again to find out what core mod is loading the Forge event classes before SpongeForge can get to them.
I've fixed my end of the problem.
You could try using SpongeBootstrap - https://forums.spongepowered.org/t/spongebootstrap-fixes-ordering-issue-with-other-coremods/12275 I'm hoping it will be a short-term fix for these class loading edge-cases
Closing due to no response in over 20 days.
Hey guys, it's probably just an incompatibility but the crashlog seems to reference nothing of the sort so I thought I'd post the crash log and see if there is a fix for it.
1.8.9 Forge 1808 Sponge 1808