Jump to content

Recommended Posts

Posted

Hello there.

 

My first mod deals with a bunch of custom user commands. I have coded it using the latest 1.7.2 forge src. The mod runs fine in the IDE (Eclipse). When I package the mod from the bin folder, the game runs fine, until I try to load a world, at which point the game will return to the main menu. Here is the log:

 

 

[21:21:11] [server thread/ERROR]: Fatal errors were detected during the transition from SERVER_ABOUT_TO_START to SERVER_STARTING. Loading cannot continue

[21:21:11] [server thread/ERROR]:

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available

FML{7.2.42.985} [Forge Mod Loader] (forge-1.7.2-10.12.0.985.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available

Forge{10.12.0.985} [Minecraft Forge] (forge-1.7.2-10.12.0.985.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available

creativeadditions{0.1.0} [creativeadditions] (sourcecoded.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Errored

[21:21:11] [server thread/ERROR]: The following problems were captured during this phase

[21:21:11] [server thread/ERROR]: Caught exception from creativeadditions

java.lang.AbstractMethodError

at net.minecraft.command.CommandHandler.func_71560_a(CommandHandler.java:132) ~[z.class:?]

at cpw.mods.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:44) ~[FMLServerStartingEvent.class:?]

at sourcecoded.mods.creativeAdditions.common.CreativeAdditionsBase.serverLoad(CreativeAdditionsBase.java:28) ~[CreativeAdditionsBase.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:534) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:205) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:185) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:116) [LoadController.class:?]

at cpw.mods.fml.common.Loader.serverStarting(Loader.java:722) [Loader.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:273) [FMLCommonHandler.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:96) [bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:412) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:705) [?:?]

[21:21:11] [server thread/ERROR]: A fatal exception occurred during the server starting event

cpw.mods.fml.common.LoaderException: java.lang.AbstractMethodError

at cpw.mods.fml.common.LoadController.transition(LoadController.java:160) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.serverStarting(Loader.java:723) [Loader.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:273) [FMLCommonHandler.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:96) [bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:412) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:705) [?:?]

Caused by: java.lang.AbstractMethodError

at net.minecraft.command.CommandHandler.func_71560_a(CommandHandler.java:132) ~[z.class:?]

at cpw.mods.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:44) ~[FMLServerStartingEvent.class:?]

at sourcecoded.mods.creativeAdditions.common.CreativeAdditionsBase.serverLoad(CreativeAdditionsBase.java:28) ~[CreativeAdditionsBase.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:534) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:205) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:185) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:116) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.serverStarting(Loader.java:722) ~[Loader.class:?]

... 4 more

[21:21:11] [server thread/INFO]: Stopping server

[21:21:11] [server thread/INFO]: Saving players

[21:21:11] [server thread/INFO]: Saving worlds

[21:21:11] [server thread/INFO]: Saving chunks for level 'Showcase -- Void'/Overworld

[21:21:11] [server thread/INFO]: Saving chunks for level 'Showcase -- Void'/Nether

[21:21:11] [server thread/INFO]: Saving chunks for level 'Showcase -- Void'/The End

[21:21:11] [server thread/INFO]: Unloading dimension 0

[21:21:11] [server thread/INFO]: Unloading dimension -1

[21:21:11] [server thread/INFO]: Unloading dimension 1

[21:21:11] [server thread/INFO]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.

[21:21:11] [server thread/INFO]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.

[21:21:14] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[21:21:14] [server thread/INFO]: Generating keypair

[21:21:14] [server thread/ERROR]: Fatal errors were detected during the transition from AVAILABLE to SERVER_ABOUT_TO_START. Loading cannot continue

[21:21:14] [server thread/ERROR]:

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available

FML{7.2.42.985} [Forge Mod Loader] (forge-1.7.2-10.12.0.985.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available

Forge{10.12.0.985} [Minecraft Forge] (forge-1.7.2-10.12.0.985.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available

creativeadditions{0.1.0} [creativeadditions] (sourcecoded.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Errored->Errored->Errored

[21:21:14] [server thread/ERROR]: The following problems were captured during this phase

[21:21:14] [server thread/ERROR]: Caught exception from creativeadditions

java.lang.AbstractMethodError

at net.minecraft.command.CommandHandler.func_71560_a(CommandHandler.java:132) ~[z.class:?]

at cpw.mods.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:44) ~[FMLServerStartingEvent.class:?]

at sourcecoded.mods.creativeAdditions.common.CreativeAdditionsBase.serverLoad(CreativeAdditionsBase.java:28) ~[CreativeAdditionsBase.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:534) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:205) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:185) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:116) [LoadController.class:?]

at cpw.mods.fml.common.Loader.serverStarting(Loader.java:722) [Loader.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:273) [FMLCommonHandler.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:96) [bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:412) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:705) [?:?]

[21:21:14] [server thread/ERROR]: A fatal exception occurred during the server about to start event

cpw.mods.fml.common.LoaderException: java.lang.AbstractMethodError

at cpw.mods.fml.common.LoadController.transition(LoadController.java:160) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.serverAboutToStart(Loader.java:793) [Loader.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleServerAboutToStart(FMLCommonHandler.java:268) [FMLCommonHandler.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:93) [bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:412) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:705) [?:?]

Caused by: java.lang.AbstractMethodError

at net.minecraft.command.CommandHandler.func_71560_a(CommandHandler.java:132) ~[z.class:?]

at cpw.mods.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:44) ~[FMLServerStartingEvent.class:?]

at sourcecoded.mods.creativeAdditions.common.CreativeAdditionsBase.serverLoad(CreativeAdditionsBase.java:28) ~[CreativeAdditionsBase.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:534) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:205) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:185) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?]

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:116) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.serverStarting(Loader.java:722) ~[Loader.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:273) ~[FMLCommonHandler.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:96) ~[bsk.class:?]

... 2 more

[21:21:14] [server thread/INFO]: Stopping server

[21:21:14] [server thread/INFO]: Saving players

[21:21:14] [server thread/INFO]: Saving worlds

[21:21:14] [server thread/INFO]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.

[21:21:14] [server thread/INFO]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.

[21:21:19] [Client thread/INFO]: Stopping!

 

 

 

 

The code to register the commands is here:

 

 

@EventHandler

public void serverLoad(FMLServerStartingEvent event)

    {

        event.registerServerCommand(new GetTimeCommand());

    }

 

 

 

Thank you in advance

  • 1 month later...
Posted

You need to obfuscate your mod to run it outside eclipse. You can't just collect the classes from the eclipse bin folder. Run "gradlew reobf" to generate an obfuscated jar at build/libs

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.