CommandHelper

CommandHelper

46.5k Downloads

java.lang.VerifyError in 6.1 using Spigot 1.8.6

LadyCailinBot opened this issue ยท 11 comments

commented

CMDHELPER-3080 - Reported by BentHTV7

[04:22:05] [extensionloader/WARN]: java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
com/laytonsmith/core/functions/WorldEdit$skcb_load.exec(Lcom/laytonsmith/core/constructs/Target;Lcom/laytonsmith/core/environments/Environment;[Lcom/laytonsmith/core/constructs/Construct;)Lcom/laytonsmith/core/constructs/Construct; @65: invokevirtual
Reason:
Type 'com/laytonsmith/core/functions/WorldEdit$CHCommandSender' (current frame, stack[1]) is not assignable to 'com/sk89q/worldedit/LocalPlayer'
Current Frame:
bci: @65
flags: { }
locals: { 'com/laytonsmith/core/functions/WorldEdit$skcb_load', 'com/laytonsmith/core/constructs/Target', 'com/laytonsmith/core/environments/Environment', '[Lcom/laytonsmith/core/constructs/Construct;', 'java/lang/String', 'java/io/File' }
stack: { 'com/sk89q/worldedit/WorldEdit', 'com/laytonsmith/core/functions/WorldEdit$CHCommandSender', 'java/io/File', 'java/lang/String', 'java/lang/String', '[Ljava/lang/String;' }
Bytecode:
0000000: 1206 2bb8 0007 2d03 32b6 0008 3a04 2bb8
0000010: 0009 b600 0a2b b800 09b6 000a b600 0bb4
0000020: 000c b600 0d3a 052b b800 09b6 000a 2bb8
0000030: 000e 1905 1904 120f 04bd 0010 5903 120f
0000040: 53b6 0011 3a06 1906 b600 129a 0024 bb00
0000050: 1359 bb00 1459 b700 1512 16b6 0017 1904
0000060: b600 1712 18b6 0017 b600 19b7 001a bf2b
0000070: b800 1b19 06b8 001c 1906 b600 1db6 001e
0000080: a700 3c3a 06bb 0020 5919 06b6 0021 b200
0000090: 032b b700 22bf 3a06 bb00 2059 1906 b600
00000a0: 23b2 0004 2bb7 0022 bf3a 06bb 0020 5919
00000b0: 06b6 0025 b200 042b b700 22bf b200 26b0
00000c0:
Exception Handler Table:
bci [39, 128] => handler: 131
bci [39, 128] => handler: 150
bci [39, 128] => handler: 169
Stackmap Table:
append_frame(@111,Object[#16],Object[#77],Object[#77])
full_frame(@131,{Object[#44],Object[#79],Object[#80],Object[#81],Object[#16],Object[#77]},{Object[#31]})
same_locals_1_stack_item_frame(@150,Object[#19])
same_locals_1_stack_item_frame(@169,Object[#36])
same_frame(@188)

[04:22:05] [extensionloader/WARN]: at java.lang.Class.forName0(Native Method)
[04:22:05] [extensionloader/WARN]: at java.lang.Class.forName(Class.java:274)
[04:22:05] [extensionloader/WARN]: at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:132)
[04:22:05] [extensionloader/WARN]: at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:47)
[04:22:05] [extensionloader/WARN]: at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassReferenceMirror.loadClass(ClassReferenceMirror.java:62)
[04:22:05] [extensionloader/WARN]: at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassMirror.loadClass(ClassMirror.java:434)
[04:22:05] [extensionloader/WARN]: at com.laytonsmith.core.extensions.ExtensionManager.Initialize(ExtensionManager.java:460)
[04:22:05] [extensionloader/WARN]: at com.laytonsmith.commandhelper.CommandHelperPlugin$5.run(CommandHelperPlugin.java:299)

commented

Comment by wizjany

dunno, no clue how CH works but this definitely isn't a WE issue.
In fact I doubt it's a CH issue either, more likely something for SKCompat?
afaik all WE/WG/etc functions were removed from commandhelper a while back.

commented

Comment by BentHTV7

Just odd because I only updated WE and WG (well, and ShopKeepers but that's probably not relevant).

Updating CH at least gave me another errmsg:
[06:52:28] [Server thread/INFO]: [CommandHelper] Loading CommandHelper v3.3.1-SNAPSHOT.2893-
[06:52:29] [Server thread/INFO]: [CommandHelper] Running initial class discovery, this will probably take a few seconds...
[06:52:36] [Server thread/ERROR]: No enum constant com.laytonsmith.abstraction.enums.MCVersion.MC1_8_6 initializing CommandHelper v3.3.1-SNAPSHOT.2893- (Is it up to date?)
java.lang.IllegalArgumentException: No enum constant com.laytonsmith.abstraction.enums.MCVersion.MC1_8_6
at java.lang.Enum.valueOf(Enum.java:236) ~[?:1.7.0_71]
at com.laytonsmith.abstraction.enums.MCVersion.valueOf(MCVersion.java:10) ~[?:?]
at com.laytonsmith.abstraction.bukkit.BukkitMCServer.getMinecraftVersion(BukkitMCServer.java:294) ~[?:?]
at com.laytonsmith.abstraction.enums.MCEntityType$MCVanillaEntityType.existsInCurrent(MCEntityType.java:133) ~[?:?]
at com.laytonsmith.abstraction.enums.bukkit.BukkitMCEntityType.build(BukkitMCEntityType.java:42) ~[?:?]
at com.laytonsmith.commandhelper.CommandHelperPlugin.onLoad(CommandHelperPlugin.java:290) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:296) [spigot.jar:git-Spigot-ff40448-d6ca19e]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [spigot.jar:git-Spigot-ff40448-d6ca19e]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:528) [spigot.jar:git-Spigot-ff40448-d6ca19e]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71]

commented

Comment by BentHTV7

And removing CH alltogether gets rid of the errmsg

commented

Comment by PseudoKnight

Your previous build wasn't compatible with WorldEdit 6.x, and the latest CH builds haven't been updated for 1.8.6 yet. However, build 2859 should still work for you.
http://builds.enginehub.org/job/commandhelper/6832

Just make sure to download SKCompat 1.1.3 if you use sk_ functions. This version matches compatibility with build 2859.
https://letsbuild.net/jenkins/job/SKCompat/12/

commented

Comment by BentHTV7

Yet another error message, this time from SKCompat:
[07:48:35] [Server thread/ERROR]: Could not load 'plugins/SKCompat-1.1.3.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:154) ~[spigot.jar:git-Spigot-ff40448-d6ca19e]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot.jar:git-Spigot-ff40448-d6ca19e]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:291) [spigot.jar:git-Spigot-ff40448-d6ca19e]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [spigot.jar:git-Spigot-ff40448-d6ca19e]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:528) [spigot.jar:git-Spigot-ff40448-d6ca19e]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 6 more

[root@minecraft plugins]# unzip -l SKCompat-1.1.3.jar | grep yml
[root@minecraft plugins]#

Tried a lot of other versions as well, same issue. Strange....

commented

Comment by BentHTV7

[root@minecraft plugins]# ls *jar | while read j ; do if ! unzip -l $j | grep -q plugin.yml ; then echo $j ; fi ; done
SKCompat-1.1.3.jar
[root@minecraft plugins]#

So all my other plugins have a plugin.yml

commented

Comment by PseudoKnight

Ah, forgot to mention that SKCompat is an extension. It goes in the extensions folder in CommandHelper.

commented

Comment by BentHTV7

Fantastic! Now I have almost everything working :-)

You wouldn't happen to know of any updates to HawkEye-reloaded?

"[08:12:34 ERROR]: [WorldEdit] Got request to set EditSessionFactory of type uk.co.oliwali.HawkEye.WorldEdit.WESessionFactory from uk.co.oliwali.HawkEye.WorldEdit but EditSessionFactories have been removed in favor of extending EditSession's extents.

This may mean that any block logger / intercepters addons/plugins/mods that you have installed will not intercept WorldEdit's changes! Please notify the maintainer of the other addon about this."

Or some alternative which will help me identify the lava-spreading griefers..... ;-)

Thanks a lot for your excellent help!

BR Bent

commented

Comment by PseudoKnight

Disable WE logging in HawkEye. It looks like it was never updated for 6.0.
Latest builds of HawkEye-Reloaded are here:
http://minebuilders.me:8080/job/HawkEye-Reloaded/

commented

Comment by wizjany

moved to commandhelper

commented

Comment by BentHTV7

Aha! So it could be due to me updating worldedit and not commandhelper?

CH is version 3.3.1-SNAPSHOT_build2807