CraftTweaker

CraftTweaker

151M Downloads

Server crash (Minetweaker has errored)

Eufranio opened this issue · 11 comments

commented

Every time that I try to launch my server with CraftTweaker, it crashes with the following error:

[22:09:19] [Server thread/ERROR] [FML/]: Caught exception from MineTweaker3
java.lang.NullPointerException
	at minetweaker.runtime.providers.ScriptIteratorDirectory.getName(ScriptIteratorDirectory.java:56) ~[ScriptIteratorDirectory.class:?]
	at minetweaker.runtime.providers.ScriptProviderDirectory$1.compare(ScriptProviderDirectory.java:52) ~[ScriptProviderDirectory$1.class:?]
	at minetweaker.runtime.providers.ScriptProviderDirectory$1.compare(ScriptProviderDirectory.java:49) ~[ScriptProviderDirectory$1.class:?]
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351) ~[?:1.8.0_45]
	at java.util.TimSort.sort(TimSort.java:216) ~[?:1.8.0_45]
	at java.util.Arrays.sort(Arrays.java:1512) ~[?:1.8.0_45]
	at java.util.ArrayList.sort(ArrayList.java:1454) ~[?:1.8.0_45]
	at minetweaker.runtime.providers.ScriptProviderDirectory.getScripts(ScriptProviderDirectory.java:49) ~[ScriptProviderDirectory.class:?]
	at minetweaker.runtime.providers.ScriptProviderCascade$MyScripterator.advance(ScriptProviderCascade.java:67) ~[ScriptProviderCascade$MyScripterator.class:?]
	at minetweaker.runtime.providers.ScriptProviderCascade$MyScripterator.<init>(ScriptProviderCascade.java:42) ~[ScriptProviderCascade$MyScripterator.class:?]
	at minetweaker.runtime.providers.ScriptProviderCascade.getScripts(ScriptProviderCascade.java:28) ~[ScriptProviderCascade.class:?]
	at minetweaker.runtime.providers.ScriptProviderMemory.collect(ScriptProviderMemory.java:41) ~[ScriptProviderMemory.class:?]
	at minetweaker.runtime.MTTweaker.load(MTTweaker.java:111) ~[MTTweaker.class:?]
	at minetweaker.MineTweakerImplementationAPI.reload(MineTweakerImplementationAPI.java:682) ~[MineTweakerImplementationAPI.class:?]
	at minetweaker.MineTweakerImplementationAPI.onServerStart(MineTweakerImplementationAPI.java:591) ~[MineTweakerImplementationAPI.class:?]
	at minetweaker.mc1710.MineTweakerMod.onServerAboutToStart(MineTweakerMod.java:167) ~[MineTweakerMod.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[FMLModContainer.class:1.7.10-1614.58]
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[server-1.7.10.jar:?]
	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[LoadController.class:1.7.10-1614.58]
	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.class:1.7.10-1614.58]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[server-1.7.10.jar:?]
	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:1.7.10-1614.58]
	at cpw.mods.fml.common.Loader.serverAboutToStart(Loader.java:859) [Loader.class:1.7.10-1614.58]
	at cpw.mods.fml.common.FMLCommonHandler.handleServerAboutToStart(FMLCommonHandler.java:278) [FMLCommonHandler.class:1.7.10-1614.58]
	at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:335) [lt.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:643) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
[22:09:19] [Server thread/ERROR] [FML/]: A fatal exception occurred during the server about to start event
java.lang.NullPointerException
	at minetweaker.runtime.providers.ScriptIteratorDirectory.getName(ScriptIteratorDirectory.java:56) ~[ScriptIteratorDirectory.class:?]
	at minetweaker.runtime.providers.ScriptProviderDirectory$1.compare(ScriptProviderDirectory.java:52) ~[ScriptProviderDirectory$1.class:?]
	at minetweaker.runtime.providers.ScriptProviderDirectory$1.compare(ScriptProviderDirectory.java:49) ~[ScriptProviderDirectory$1.class:?]
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351) ~[?:1.8.0_45]
	at java.util.TimSort.sort(TimSort.java:216) ~[?:1.8.0_45]
	at java.util.Arrays.sort(Arrays.java:1512) ~[?:1.8.0_45]
	at java.util.ArrayList.sort(ArrayList.java:1454) ~[?:1.8.0_45]
	at minetweaker.runtime.providers.ScriptProviderDirectory.getScripts(ScriptProviderDirectory.java:49) ~[ScriptProviderDirectory.class:?]
	at minetweaker.runtime.providers.ScriptProviderCascade$MyScripterator.advance(ScriptProviderCascade.java:67) ~[ScriptProviderCascade$MyScripterator.class:?]
	at minetweaker.runtime.providers.ScriptProviderCascade$MyScripterator.<init>(ScriptProviderCascade.java:42) ~[ScriptProviderCascade$MyScripterator.class:?]
	at minetweaker.runtime.providers.ScriptProviderCascade.getScripts(ScriptProviderCascade.java:28) ~[ScriptProviderCascade.class:?]
	at minetweaker.runtime.providers.ScriptProviderMemory.collect(ScriptProviderMemory.java:41) ~[ScriptProviderMemory.class:?]
	at minetweaker.runtime.MTTweaker.load(MTTweaker.java:111) ~[MTTweaker.class:?]
	at minetweaker.MineTweakerImplementationAPI.reload(MineTweakerImplementationAPI.java:682) ~[MineTweakerImplementationAPI.class:?]
	at minetweaker.MineTweakerImplementationAPI.onServerStart(MineTweakerImplementationAPI.java:591) ~[MineTweakerImplementationAPI.class:?]
	at minetweaker.mc1710.MineTweakerMod.onServerAboutToStart(MineTweakerMod.java:167) ~[MineTweakerMod.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[FMLModContainer.class:1.7.10-1614.58]
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[server-1.7.10.jar:?]
	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[LoadController.class:1.7.10-1614.58]
	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.class:1.7.10-1614.58]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[server-1.7.10.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[server-1.7.10.jar:?]
	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) ~[LoadController.class:1.7.10-1614.58]
	at cpw.mods.fml.common.Loader.serverAboutToStart(Loader.java:859) [Loader.class:1.7.10-1614.58]
	at cpw.mods.fml.common.FMLCommonHandler.handleServerAboutToStart(FMLCommonHandler.java:278) [FMLCommonHandler.class:1.7.10-1614.58]
	at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:335) [lt.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:643) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
[22:09:19] [Server thread/ERROR] [modtweaker2/]: Skipping event FMLModIdMappingEvent and marking errored mod modtweaker2 since required dependency MineTweaker3 has errored```

It doesn't happen in the client. CraftTweaker v3.0.13
Minecraft 1.7.10
Forge 1614
Thermos (server software) build 58
commented

1.7 is no longer supported. This action was performed via a bot, if it was done in error, please contact Jaredlll08 immediately

commented

@jaredlll08 do you know possible causes for this crash?

commented

yip, add another file to the scripts directory

commented

Like, create a empty file.zs there?

commented

Yes

On Nov 22, 2016 1:00 AM, "Eufranio" [email protected] wrote:

Like, create a empty file.zs there?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/99#issuecomment-262094970,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGHyAgaABRsz5VDR_GZcNQO-3OexiAaYks5rAiKBgaJpZM4K4xUr
.

commented

Didn't work =/

commented

nvm, the name of the file needed start with A

commented

Same error in a new server (1.7.10)...

commented
commented

Do you have any clue of how to fix?

commented

Removing the MineTweaker Recipe Maker folder will fix this issue...