CommandHelper

CommandHelper

46.5k Downloads

Stacktrace on load

LadyCailinBot opened this issue ยท 3 comments

commented

CMDHELPER-2805 - Reported by Hekta

This stacktrace appears when WorldEdit is missing.

java.lang.reflect.InvocationTargetException
	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 com.laytonsmith.core.events.EventUtils.TriggerExternal(EventUtils.java:267)
	at com.laytonsmith.commandhelper.CommandHelperServerListener.onServerCommand(CommandHelperServerListener.java:33)
	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.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)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.laytonsmith.core.events.EventList
	at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:192)
	at com.laytonsmith.chadvanced.events.ServerCommand.triggerServerCommand(ServerCommand.java:31)
	... 19 more```
commented

Comment by jb_aero

Are you sure this is the right stacktrace? There is a known issue caused by the clipboard functions that is unhappy about lack of worldedit, but this doesn't look related.

commented

Comment by Hekta

I retried and effectively the stacktrace is different:

2013-09-24 00:23:08 [SEVERE] 	at java.lang.ClassLoader.defineClass1(Native Method)
2013-09-24 00:23:08 [SEVERE] 	at java.lang.ClassLoader.defineClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.security.SecureClassLoader.defineClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader.defineClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader.access$100(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader$1.run(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader$1.run(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.security.AccessController.doPrivileged(Native Method)
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader.findClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.JavaPluginLoader.getClassByName0(JavaPluginLoader.java:300)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:76)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
2013-09-24 00:23:08 [SEVERE] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.lang.Class.getDeclaringClass(Native Method)
2013-09-24 00:23:08 [SEVERE] 	at java.lang.Class.getEnclosingClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at com.laytonsmith.core.events.EventList.initEvents(EventList.java:105)
2013-09-24 00:23:08 [SEVERE] 	at com.laytonsmith.core.events.EventList.<clinit>(EventList.java:29)
2013-09-24 00:23:08 [SEVERE] 	at com.laytonsmith.core.AliasCore.reload(AliasCore.java:405)
2013-09-24 00:23:08 [SEVERE] 	at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:237)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264)
2013-09-24 00:23:08 [SEVERE] 	at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313)
2013-09-24 00:23:08 [SEVERE] 	at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290)
2013-09-24 00:23:08 [SEVERE] 	at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250)
2013-09-24 00:23:08 [SEVERE] 	at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151)
2013-09-24 00:23:08 [SEVERE] 	at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
2013-09-24 00:23:08 [SEVERE] 	at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
2013-09-24 00:23:08 [SEVERE] Caused by: java.lang.ClassNotFoundException: com.sk89q.worldedit.bukkit.BukkitCommandSender
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader$1.run(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader$1.run(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.security.AccessController.doPrivileged(Native Method)
2013-09-24 00:23:08 [SEVERE] 	at java.net.URLClassLoader.findClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
2013-09-24 00:23:08 [SEVERE] 	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
2013-09-24 00:23:08 [SEVERE] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2013-09-24 00:23:08 [SEVERE] 	... 32 more
2013-09-24 00:23:08 [SEVERE] Error occurred while enabling CommandHelper v3.3.1-SNAPSHOT:2390-a79107a,master (Is it up to date?)
java.lang.NoClassDefFoundError: Could not initialize class com.laytonsmith.core.events.EventList
	at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:263)
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
	at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282)
	at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264)
	at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313)
	at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290)
	at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250)
	at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151)
	at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
	at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)```


However I'm certain that the first stacktrace was thrown once, on load too, but I can't reproduce.

EDIT:
Finally I found, in fact the first stacktrace is thrown when a command is sent, if CommandHelper load failed due to the missing of WorldEdit.
commented

Comment by jb_aero

Ok, I'll fix this soon enough.