stacktrace with yml_decode()
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-2772 - Reported by Hekta
If a string is not properly formated, the fonction produces a stacktrace (here I had forgotten the read() function).
2013-08-10 02:56:45 [SEVERE] Uh oh! You've found an error in CommandHelper. This is an error caused by your code, so you may be able to find a workaround, but is ultimately an error in CommandHelper itself. The line of code that caused the error was this:
yml_decode('test.yml')
on or around E:\Documents\Desktop\afaire\serv\bukkit\Requicraft\plugins\CommandHelper\LocalPackages\requicraft\extensions\dev\aliases.msa:1.
Please report this error to the developers, and be sure to include the version numbers: Server version: 1.6.2-R0.2-SNAPSHOT; CommandHelper version: 1628-32b6dcf. Here's the stacktrace:
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
at com.laytonsmith.core.functions.DataTransformations$yml_decode.exec(DataTransformations.java:189)
at com.laytonsmith.core.Script.eval(Script.java:301)
at com.laytonsmith.core.Script.eval(Script.java:265)
at com.laytonsmith.core.Script.seval(Script.java:211)
at com.laytonsmith.core.functions.Meta$eval.execs(Meta.java:407)
at com.laytonsmith.core.Script.eval(Script.java:257)
at com.laytonsmith.core.Script.eval(Script.java:265)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1489)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
at com.laytonsmith.core.Script.run(Script.java:165)
at com.laytonsmith.core.AliasCore.alias(AliasCore.java:140)
at com.laytonsmith.commandhelper.CommandHelperServerListener.onServerCommand(CommandHelperServerListener.java:41)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_6_R2.DedicatedServer.ar(DedicatedServer.java:258)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:227)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)