literalplus / commandblockerultimate

Blocks commands and does it well, or at least it thinks so. Compatible with BungeeCord and Spigot!
http://j.l1t.li/cmdblk
GNU General Public License v2.0
6 stars 5 forks source link

UnhandledException #18

Closed M9GLiquid closed 8 years ago

M9GLiquid commented 8 years ago

10.04 09:26:42 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin CommandBlockerUltimate v1.3.2 generated an exception while executing task 393 10.04 09:26:42 [Server] INFO at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) 10.04 09:26:42 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 10.04 09:26:42 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 10.04 09:26:42 [Server] INFO at java.lang.Thread.run(Thread.java:745) 10.04 09:26:42 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player; 10.04 09:26:42 [Server] INFO at io.github.xxyy.cmdblocker.lib.com.mcstats.Metrics.postPlugin(Metrics.java:357) 10.04 09:26:42 [Server] INFO at io.github.xxyy.cmdblocker.lib.com.mcstats.Metrics.access$400(Metrics.java:64) 10.04 09:26:42 [Server] INFO at io.github.xxyy.cmdblocker.lib.com.mcstats.Metrics$1.run(Metrics.java:245) 10.04 09:26:42 [Server] INFO at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71) 10.04 09:26:42 [Server] INFO at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) 10.04 09:26:42 [Server] INFO ... 3 more

literalplus commented 8 years ago

That seems to be related to the plugin metrics. Does the plugin still work as expected?

M9GLiquid commented 8 years ago

seems to be working but does it not have anything todo with the error before it? "Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;"?

I'm just curious :)

literalplus commented 8 years ago

That's actually the cause for the UnhandledException. Apparently, the version of Matrics included with the plugin has not been updated for "recent" API changes made in...1.7, I think? I'll look for a new version.

M9GLiquid commented 8 years ago

Ohh alright, looking forward to a update then :)

literalplus commented 8 years ago

Could you try this development build and report if it still has the issue? I don't have a 1.9 server at hand for testing.

M9GLiquid commented 8 years ago

will do give me a few secs here :)

M9GLiquid commented 8 years ago

somehow this makes it so that it doesn't block anything. I might have done something wrong on my end i'll double check but that's the result as of yet

It breaks the plugin as it doesn't even get loaded I noticed

literalplus commented 8 years ago

hm, weird. I'll set up a 1.9 server and test locally then.

M9GLiquid commented 8 years ago

Here found the issue:

10.04 10:16:02 [Server] ERROR Could not load 'plugins/CommandBlockerUltimate-1.3.5-SNAPSHOT.jar' in folder 'plugins' 10.04 10:16:02 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml 10.04 10:16:02 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[spigot52.jar:git-Spigot-1480adb-6247aa0] 10.04 10:16:02 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot52.jar:git-Spigot-1480adb-6247aa0] 10.04 10:16:02 [Server] INFO at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugins(CraftServer.java:296) [spigot52.jar:git-Spigot-1480adb-6247aa0] 10.04 10:16:02 [Server] INFO at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:201) [spigot52.jar:git-Spigot-1480adb-6247aa0] 10.04 10:16:02 [Server] INFO at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [spigot52.jar:git-Spigot-1480adb-6247aa0] 10.04 10:16:02 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66] 10.04 10:16:02 [Server] INFO Caused by: java.util.zip.ZipException: zip file is empty 10.04 10:16:02 [Server] INFO at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_66] 10.04 10:16:02 [Server] INFO at java.util.zip.ZipFile.<init>(ZipFile.java:219) ~[?:1.8.0_66] 10.04 10:16:02 [Server] INFO at java.util.zip.ZipFile.<init>(ZipFile.java:149) ~[?:1.8.0_66] 10.04 10:16:02 [Server] INFO at java.util.jar.JarFile.<init>(JarFile.java:166) ~[?:1.8.0_66] 10.04 10:16:02 [Server] INFO at java.util.jar.JarFile.<init>(JarFile.java:130) ~[?:1.8.0_66] 10.04 10:16:02 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:150) ~[spigot52.jar:git-Spigot-1480adb-6247aa0] 10.04 10:16:02 [Server] INFO ... 5 more

literalplus commented 8 years ago
java.util.zip.ZipException: zip file is empty

Try redownloading the development build, myabe there was an error with your download.

M9GLiquid commented 8 years ago

Yes that seemed to be the issue working fine now :) :+1:

literalplus commented 8 years ago

Confirmed working. Release will be out shortly.

literalplus commented 8 years ago

Released as 1.3.5, find more info here. Thanks for your help!