CommandHelper

CommandHelper

46.5k Downloads

StackTrace from using closures, used to work perfectly

LadyCailinBot opened this issue ยท 3 comments

commented

CMDHELPER-2764 - Reported by ryan_the_leach

Never had a problem with this until 1.6.x unsure where the issue lies as its not readily reproducible, however it tends to happen once every few days, which prevents the cooldowns on by /spawn script working.

2013-07-28 12:56:06 [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:
queue_push(set_world_time(@i))
on or around /home/tcagame/JohnW/458/plugins/CommandHelper/LocalPackages/TaamcSleeps/main.ms:8.
Please report this error to the developers, and be sure to include the version numbers: Server version: 1.6.2-R0.1-SNAPSHOT; CommandHelper version: 1587-7238c19. Here's the stacktrace:
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@6b0b7409 rejected from java.util.concurrent.ThreadPoolExecutor@3cef31c6[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at com.laytonsmith.PureUtilities.ExecutionQueue.startQueue(ExecutionQueue.java:233)
at com.laytonsmith.PureUtilities.ExecutionQueue.push(ExecutionQueue.java:83)
at com.laytonsmith.core.functions.ExecutionQueue$queue_push.exec(ExecutionQueue.java:75)
at com.laytonsmith.core.Script.eval(Script.java:301)
at com.laytonsmith.core.Script.eval(Script.java:265)
at com.laytonsmith.core.functions.DataHandling$forelse.execs(DataHandling.java:427)
at com.laytonsmith.core.functions.DataHandling$_for.execs(DataHandling.java:280)
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.events.AbstractEvent.execute(AbstractEvent.java:71)
at com.laytonsmith.core.events.BoundEvent.execute(BoundEvent.java:302)
at com.laytonsmith.core.events.BoundEvent.trigger(BoundEvent.java:261)
at com.laytonsmith.core.events.EventUtils.FireListeners(EventUtils.java:205)
at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:193)
at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitPlayerListener.onPlayerBedEnter(BukkitPlayerListener.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.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.EntityHuman.a(EntityHuman.java:1015)
at net.minecraft.server.v1_6_R2.EntityPlayer.a(EntityPlayer.java:430)
at net.minecraft.server.v1_6_R2.BlockBed.interact(SourceFile:98)
at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:382)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:630)
at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58)
at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
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)

#Causes stacktrace on CommandHelper version: 1587-7238c19
bind(player_leave_bed,null,null,@bed,
broadcast('Un-Zzz' '...' @bed[player] @bed[location][world])
)

bind(player_enter_bed,null,null,@bed,
broadcast(Zzz '...' @bed[player] @bed[location][world])
for(@i=0,@i<24000,@i=@i+100){
queue_push(closure(set_world_time(@i)))
queue_delay(50)
}
)

possible duplicate of http://youtrack.sk89q.com/issue/CMDHELPER-2741

commented

Comment by ryan_the_leach

possible duplicate of http://youtrack.sk89q.com/issue/CMDHELPER-2741

commented

Comment by PseudoKnight

You should avoid using /reloadaliases (/recompile) until this is fixed.

commented

Comment by LadyCailin

Dupe of 2741. Anyways, this is fixed now.