CommandHelper issue
LadyCailinBot opened this issue ยท 19 comments
CMDHELPER-2959 - Reported by TheChampTF
[13:45:35 ERROR]: Could not load class 'com.laytonsmith.core.functions.WorldEdit.skcb_load'
[13:45:35 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)
[13:45:35 WARN]: at java.lang.Class.forName0(Native Method)
[13:45:35 WARN]: at java.lang.Class.forName(Class.java:270)
[13:45:35 WARN]: at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:130)
[13:45:35 WARN]: at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:45)
[13:45:35 WARN]: at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassReferenceMirror.loadClass(ClassReferenceMirror.java:62)
[13:45:35 WARN]: at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassMirror.loadClass(ClassMirror.java:434)
[13:45:35 WARN]: at com.laytonsmith.core.extensions.ExtensionManager.Initialize(ExtensionManager.java:460)
[13:45:35 WARN]: at com.laytonsmith.commandhelper.CommandHelperPlugin$5.run(CommandHelperPlugin.java:298)
Comment by sk89q
Unsure if this should be a WE bug or a CmdHelper bug.
The new version of WorldEdit (6.x) that you get from the dev builds has some major changes.
Comment by TheChampTF
Still getting the bellow message on WorldEdit 6.0 and using Commandhelper 2807
[14:27:22 ERROR]: Could not load class 'com.laytonsmith.core.functions.WorldEdit.skcb_load'
[14:27:22 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)
[14:27:22 WARN]: at java.lang.Class.forName0(Native Method)
[14:27:22 WARN]: at java.lang.Class.forName(Class.java:274)
[14:27:22 WARN]: at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:132)
[14:27:22 WARN]: at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:47)
[14:27:22 WARN]: at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassReferenceMirror.loadClass(ClassReferenceMirror.java:62)
[14:27:22 WARN]: at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassMirror.loadClass(ClassMirror.java:434)
[14:27:22 WARN]: at com.laytonsmith.core.extensions.ExtensionManager.Initialize(ExtensionManager.java:460)
[14:27:22 WARN]: at com.laytonsmith.commandhelper.CommandHelperPlugin$5.run(CommandHelperPlugin.java:299)
Comment by jb_aero
Use the WG 5.9 backport until CH can support or switch to WG 6. You can find the backport here: http://builds.enginehub.org/job/worldguard?branch=versions%2Fspigot1.8-5.x
Comment by PseudoKnight
WE6 compatibility is needed if we want full 1.8 support for things like inventory content when pasting. It's also out of beta, unlike WG6, which still has issues.
Comment by TheChampTF
@jb_aero Use the WG 5.9 backport until CH can support or switch to WG 6. You can find the backport here: http://builds.enginehub.org/job/worldguard?branch=versions%2Fspigot1.8-5.x
Sadly I'm not on spigot, but thanks (:
Comment by TheChampTF
Down to this now when testing around:
15.12 13:36:43 [Server] WARN at com.laytonsmith.commandhelper.CommandHelperPlugin$5.run(CommandHelperPlugin.java:299)
15.12 13:36:43 [Server] WARN at com.laytonsmith.core.extensions.ExtensionManager.Initialize(ExtensionManager.java:460)
15.12 13:36:43 [Server] WARN at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassMirror.loadClass(ClassMirror.java:434)
15.12 13:36:43 [Server] WARN at com.laytonsmith.PureUtilities.ClassLoading.ClassMirror.ClassReferenceMirror.loadClass(ClassReferenceMirror.java:62)
15.12 13:36:43 [Server] WARN at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:47)
15.12 13:36:43 [Server] WARN at com.laytonsmith.PureUtilities.Common.ClassUtils.forCanonicalName(ClassUtils.java:132)
15.12 13:36:43 [Server] WARN at java.lang.Class.forName(Unknown Source)
15.12 13:36:43 [Server] WARN at java.lang.Class.forName0(Native Method)
15.12 13:36:43 [Server] WARN java.lang.VerifyError: Bad type on operand stack in method 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; at offset 65
15.12 13:36:43 [Server] ERROR Could not load class 'com.laytonsmith.core.functions.WorldEdit.skcb_load'
On WorldEdit version 6.0.0-SNAPSHOT:3170-d9cea95
Comment by PseudoKnight
Should be fixed in build 2816 as soon as that builds.
You'll need this extension if you want WE/WG support on future builds:
https://github.com/jb-aero/SKCompat/releases
Comment by PseudoKnight
Whatever broke it was after build 3157 in WorldEdit. [edit] Build 3184 specifically.
EngineHub/WorldEdit@ebe2bc6
Comment by PseudoKnight
Well, ya, it wasn't updated in CH yet. Until then we need to use WorldEdit builds prior to 3184.
Comment by kilorat
I get this error too, but I can't tell if it affects anything. sudo and runas are broken, could that be related? If not, I'll open a new issue on that.
Comment by PseudoKnight
Use the official versions on dev.bukkit.org until 6.0 is released. They're the backports.
Comment by kilorat
I'm using Spigot, the newest dev build, and sudo is still broken.
I can reproduce it by making an alias: /sudotest = sudo(/list)
then when I run it, the server prints this stack trace:
http://pastebin.com/raw.php?i=PRdRkVWE
Spigot build #1627
Comment by TheChampTF
@LadyCailin Any chance of a successful build for the fixed things? (The current 'stabil' one is more then 2 weeks old (:
Sorry, but don't have any other way to contact you.
Comment by PseudoKnight
--Development for Bukkit plugins is nearly non-existent anymore. Eventually everything will be moved over to Sponge, then we'll see official builds for WE6 and WG6. I wouldn't blame anyone if they wanted to wait until then.--
Spigot team has stepped up to the plate.
Comment by LadyCailin
I'm still making commits, but there are no builds, official or otherwise right now. You'll need to build from source yourself in order to get a copy right now.
Comment by PseudoKnight
A Spigot build for 1.8 is right around the corner, which may make WorldEdit 6.0 compatibility a high priority as I don't think NMS support will be down ported.
Also, I should not here the WG6 functions that are currently broken:
- sk_current_regions()
- sk_region_addmember()
- sk_region_remmember()
- sk_region_addowner()
- sk_region_remowner()
- sk_region_check_flag()
- sk_region_intersect()
- sk_region_overlaps()
- sk_region_remove()
- sk_region_rename()
- sk_regions_at()
I think some of those aren't obvious in an IDE. I went through and tested them individually to be sure.
Comment by PseudoKnight
For reference:
https://github.com/sk89q/WorldGuard/blob/master/CHANGELOG.md#api-changes