Skip to content

Instantly share code, notes, and snippets.

@psibi
Created January 19, 2017 03:47
Show Gist options
  • Save psibi/d8977fced92e32fd84af34c0644e5d9d to your computer and use it in GitHub Desktop.
Save psibi/d8977fced92e32fd84af34c0644e5d9d to your computer and use it in GitHub Desktop.
Stack1 error message
@sibi::jane { ~/github/codec-jvm }-> java Stack1
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.VerifyError: Inconsistent stackmap frames at branch target 28
Exception Details:
Location:
Stack1.main([Ljava/lang/String;)V @15: goto
Reason:
Current frame's stack size doesn't match stackmap.
Current Frame:
bci: @15
flags: { }
locals: { integer }
stack: { }
Stackmap Frame:
bci: @28
flags: { }
locals: { integer }
stack: { 'java/io/PrintStream' }
Bytecode:
0x0000000: 063b 1a05 a000 0eb2 0007 102b b600 0fa7
0x0000010: 000d b200 0710 2a10 2cb6 000f b1
Stackmap Table:
full_frame(@18,{Integer},{})
same_locals_1_stack_item_frame(@28,Object[#13])
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment