java.lang.VerifyError: Bad <init> method call from inside of a branch Exception Details: Location: MyGroovyFile.<init>(Ljava/lang/String;)V @93: invokespecial Reason: Error exists in the bytecode Bytecode: 0000000: b800 174d 04bd 0019 5903 2b53 5910 ff12 0000010: 04b8 001f 2a5f ab00 0000 00d7 0000 0006 0000020: aad3 b1ff 0000 003a afa3 00e4 0000 004d 0000030: d9ca eaf6 0000 0067 e925 fa09 0000 0086 0000040: 53cd d136 0000 00a3 60fa 8f17 0000 00c2 0000050: 5f5a 5903 32b8 0025 c000 275f 57b7 0029 0000060: a700 975f 5a59 0332 b800 25c0 0027 5f59 0000070: 0432 b800 2f5f 57b7 0032 a700 7d5f 5a59 0000080: 0332 1204 b800 36c0 0004 5f59 0432 b800 0000090: 25c0 0027 5f57 b700 39a7 005e 5f5a 5903 00000a0: 32b8 0025 c000 275f 5904 32b8 0025 c000 00000b0: 275f 57b7 003c a700 415f 5a59 0332 b800 00000c0: 25c0 0027 5f59 0432 1204 b800 36c0 0004 00000d0: 5f57 b700 3fa7 0022 5f5a 5903 3212 41b8 00000e0: 0036 c000 415f 57b7 0044 a700 0dbb 0046 00000f0: 5912 48b7 0049 bf57 2ab6 004d 4e2d 2a5f 0000100: b500 4f2d 57b1 Stackmap Table: full_frame(@80,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@99,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@125,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@156,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@185,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@216,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@237,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@247,{Object[#2],Object[#39],Object[#85]},{Object[#87]})

Apache's JIRA Issue Tracker | Ben Jammin | 2 years ago
  1. 0

    [GROOVY-6951] java.lang.VerifyError: Bad <init> method call from inside of a branch - ASF JIRA

    apache.org | 11 months ago
    java.lang.VerifyError: Bad <init> method call from inside of a branch Exception Details: Location: MyGroovyFile.<init>(Ljava/lang/String;)V @93: invokespecial Reason: Error exists in the bytecode Bytecode: 0000000: b800 174d 04bd 0019 5903 2b53 5910 ff12 0000010: 04b8 001f 2a5f ab00 0000 00d7 0000 0006 0000020: aad3 b1ff 0000 003a afa3 00e4 0000 004d 0000030: d9ca eaf6 0000 0067 e925 fa09 0000 0086 0000040: 53cd d136 0000 00a3 60fa 8f17 0000 00c2 0000050: 5f5a 5903 32b8 0025 c000 275f 57b7 0029 0000060: a700 975f 5a59 0332 b800 25c0 0027 5f59 0000070: 0432 b800 2f5f 57b7 0032 a700 7d5f 5a59 0000080: 0332 1204 b800 36c0 0004 5f59 0432 b800 0000090: 25c0 0027 5f57 b700 39a7 005e 5f5a 5903 00000a0: 32b8 0025 c000 275f 5904 32b8 0025 c000 00000b0: 275f 57b7 003c a700 415f 5a59 0332 b800 00000c0: 25c0 0027 5f59 0432 1204 b800 36c0 0004 00000d0: 5f57 b700 3fa7 0022 5f5a 5903 3212 41b8 00000e0: 0036 c000 415f 57b7 0044 a700 0dbb 0046 00000f0: 5912 48b7 0049 bf57 2ab6 004d 4e2d 2a5f 0000100: b500 4f2d 57b1 Stackmap Table: full_frame(@80,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@99,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@125,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@156,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@185,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@216,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@237,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@247,{Object[#2],Object[#39],Object[#85]},{Object[#87]})
  2. 0

    {panel:title=Edit by blackdrag} Known JVM versions with this problem: 1.7.0 update 55 1.7.0 update 65 1.7.0 update 67 1.8.0 update 11 1.8.0 update 20 (build 31 would fix it, release build is 36 though) JVM versions older than that should not be a problem Unverified JVM versions with this fixed: 1.7.0 update 72 1.8.0 update 25 And of course all versions after. Details can be found here: https://bugs.openjdk.java.net/browse/JDK-8051012 {panel} {code} class MyGroovyFile extends File { MyGroovyFile(String p) { super(p) } } class MyGroovyFileTest extends GroovyTestCase { void testCtor() { def mgf = new MyGroovyFile("/tmp/abc123") } } {code} running above results in: {noformat} Exception in thread "main" java.lang.VerifyError: Bad <init> method call from inside of a branch Exception Details: Location: MyGroovyFile.<init>(Ljava/lang/String;)V @93: invokespecial Reason: Error exists in the bytecode Bytecode: 0000000: b800 174d 04bd 0019 5903 2b53 5910 ff12 0000010: 04b8 001f 2a5f ab00 0000 00d7 0000 0006 0000020: aad3 b1ff 0000 003a afa3 00e4 0000 004d 0000030: d9ca eaf6 0000 0067 e925 fa09 0000 0086 0000040: 53cd d136 0000 00a3 60fa 8f17 0000 00c2 0000050: 5f5a 5903 32b8 0025 c000 275f 57b7 0029 0000060: a700 975f 5a59 0332 b800 25c0 0027 5f59 0000070: 0432 b800 2f5f 57b7 0032 a700 7d5f 5a59 0000080: 0332 1204 b800 36c0 0004 5f59 0432 b800 0000090: 25c0 0027 5f57 b700 39a7 005e 5f5a 5903 00000a0: 32b8 0025 c000 275f 5904 32b8 0025 c000 00000b0: 275f 57b7 003c a700 415f 5a59 0332 b800 00000c0: 25c0 0027 5f59 0432 1204 b800 36c0 0004 00000d0: 5f57 b700 3fa7 0022 5f5a 5903 3212 41b8 00000e0: 0036 c000 415f 57b7 0044 a700 0dbb 0046 00000f0: 5912 48b7 0049 bf57 2ab6 004d 4e2d 2a5f 0000100: b500 4f2d 57b1 Stackmap Table: full_frame(@80,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@99,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@125,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@156,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@185,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@216,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@237,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@247,{Object[#2],Object[#39],Object[#85]},{Object[#87]}) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getMethod0(Class.java:2813) at java.lang.Class.getMethod(Class.java:1663) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) :run FAILED FAILURE: Build failed with an exception. {noformat}

    Apache's JIRA Issue Tracker | 2 years ago | Ben Jammin
    java.lang.VerifyError: Bad <init> method call from inside of a branch Exception Details: Location: MyGroovyFile.<init>(Ljava/lang/String;)V @93: invokespecial Reason: Error exists in the bytecode Bytecode: 0000000: b800 174d 04bd 0019 5903 2b53 5910 ff12 0000010: 04b8 001f 2a5f ab00 0000 00d7 0000 0006 0000020: aad3 b1ff 0000 003a afa3 00e4 0000 004d 0000030: d9ca eaf6 0000 0067 e925 fa09 0000 0086 0000040: 53cd d136 0000 00a3 60fa 8f17 0000 00c2 0000050: 5f5a 5903 32b8 0025 c000 275f 57b7 0029 0000060: a700 975f 5a59 0332 b800 25c0 0027 5f59 0000070: 0432 b800 2f5f 57b7 0032 a700 7d5f 5a59 0000080: 0332 1204 b800 36c0 0004 5f59 0432 b800 0000090: 25c0 0027 5f57 b700 39a7 005e 5f5a 5903 00000a0: 32b8 0025 c000 275f 5904 32b8 0025 c000 00000b0: 275f 57b7 003c a700 415f 5a59 0332 b800 00000c0: 25c0 0027 5f59 0432 1204 b800 36c0 0004 00000d0: 5f57 b700 3fa7 0022 5f5a 5903 3212 41b8 00000e0: 0036 c000 415f 57b7 0044 a700 0dbb 0046 00000f0: 5912 48b7 0049 bf57 2ab6 004d 4e2d 2a5f 0000100: b500 4f2d 57b1 Stackmap Table: full_frame(@80,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@99,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@125,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@156,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@185,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@216,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@237,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@247,{Object[#2],Object[#39],Object[#85]},{Object[#87]})
  3. 0

    {panel:title=Edit by blackdrag} Known JVM versions with this problem: 1.7.0 update 55 1.7.0 update 65 1.7.0 update 67 1.8.0 update 11 1.8.0 update 20 (build 31 would fix it, release build is 36 though) JVM versions older than that should not be a problem Unverified JVM versions with this fixed: 1.7.0 update 72 1.8.0 update 25 And of course all versions after. Details can be found here: https://bugs.openjdk.java.net/browse/JDK-8051012 {panel} {code} class MyGroovyFile extends File { MyGroovyFile(String p) { super(p) } } class MyGroovyFileTest extends GroovyTestCase { void testCtor() { def mgf = new MyGroovyFile("/tmp/abc123") } } {code} running above results in: {noformat} Exception in thread "main" java.lang.VerifyError: Bad <init> method call from inside of a branch Exception Details: Location: MyGroovyFile.<init>(Ljava/lang/String;)V @93: invokespecial Reason: Error exists in the bytecode Bytecode: 0000000: b800 174d 04bd 0019 5903 2b53 5910 ff12 0000010: 04b8 001f 2a5f ab00 0000 00d7 0000 0006 0000020: aad3 b1ff 0000 003a afa3 00e4 0000 004d 0000030: d9ca eaf6 0000 0067 e925 fa09 0000 0086 0000040: 53cd d136 0000 00a3 60fa 8f17 0000 00c2 0000050: 5f5a 5903 32b8 0025 c000 275f 57b7 0029 0000060: a700 975f 5a59 0332 b800 25c0 0027 5f59 0000070: 0432 b800 2f5f 57b7 0032 a700 7d5f 5a59 0000080: 0332 1204 b800 36c0 0004 5f59 0432 b800 0000090: 25c0 0027 5f57 b700 39a7 005e 5f5a 5903 00000a0: 32b8 0025 c000 275f 5904 32b8 0025 c000 00000b0: 275f 57b7 003c a700 415f 5a59 0332 b800 00000c0: 25c0 0027 5f59 0432 1204 b800 36c0 0004 00000d0: 5f57 b700 3fa7 0022 5f5a 5903 3212 41b8 00000e0: 0036 c000 415f 57b7 0044 a700 0dbb 0046 00000f0: 5912 48b7 0049 bf57 2ab6 004d 4e2d 2a5f 0000100: b500 4f2d 57b1 Stackmap Table: full_frame(@80,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@99,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@125,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@156,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@185,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@216,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@237,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@247,{Object[#2],Object[#39],Object[#85]},{Object[#87]}) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getMethod0(Class.java:2813) at java.lang.Class.getMethod(Class.java:1663) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) :run FAILED FAILURE: Build failed with an exception. {noformat}

    Apache's JIRA Issue Tracker | 2 years ago | Ben Jammin
    java.lang.VerifyError: Bad <init> method call from inside of a branch Exception Details: Location: MyGroovyFile.<init>(Ljava/lang/String;)V @93: invokespecial Reason: Error exists in the bytecode Bytecode: 0000000: b800 174d 04bd 0019 5903 2b53 5910 ff12 0000010: 04b8 001f 2a5f ab00 0000 00d7 0000 0006 0000020: aad3 b1ff 0000 003a afa3 00e4 0000 004d 0000030: d9ca eaf6 0000 0067 e925 fa09 0000 0086 0000040: 53cd d136 0000 00a3 60fa 8f17 0000 00c2 0000050: 5f5a 5903 32b8 0025 c000 275f 57b7 0029 0000060: a700 975f 5a59 0332 b800 25c0 0027 5f59 0000070: 0432 b800 2f5f 57b7 0032 a700 7d5f 5a59 0000080: 0332 1204 b800 36c0 0004 5f59 0432 b800 0000090: 25c0 0027 5f57 b700 39a7 005e 5f5a 5903 00000a0: 32b8 0025 c000 275f 5904 32b8 0025 c000 00000b0: 275f 57b7 003c a700 415f 5a59 0332 b800 00000c0: 25c0 0027 5f59 0432 1204 b800 36c0 0004 00000d0: 5f57 b700 3fa7 0022 5f5a 5903 3212 41b8 00000e0: 0036 c000 415f 57b7 0044 a700 0dbb 0046 00000f0: 5912 48b7 0049 bf57 2ab6 004d 4e2d 2a5f 0000100: b500 4f2d 57b1 Stackmap Table: full_frame(@80,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@99,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@125,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@156,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@185,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@216,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@237,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@247,{Object[#2],Object[#39],Object[#85]},{Object[#87]})
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ASM增加局部变量 - CSDN博客

    csdn.net | 1 year ago
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 26 Exception Details: Location: com/vlis/ostm/codeenhance/LocalClassTestExample.setInt1(I)V @26: return Reason: Type top (current frame, locals[2]) is not assignable to integer (stack map, locals[2]) Current Frame: bci: @2 flags: { } locals: { 'com/vlis/ostm/codeenhance/LocalClassTestExample', integer } stack: { integer, integer } Stackmap Frame: bci: @26 flags: { } locals: { 'com/vlis/ostm/codeenhance/LocalClassTestExample', integer, integer } stack: { } Bytecode: 0000000: 1b04 a000 182a 1b2a b400 943d b500 942a 0000010: 1295 2ab4 0094 1cb8 0098 b1 Stackmap Table: append_frame(@26,Integer)
  6. 0

    Tomcat8 + JDK8 - Exception in thread "main" java.lang.VerifyError

    GitHub | 2 years ago | cougil
    java.lang.VerifyError: Expecting a stackmap frame at branch target 64 Exception Details: Location: org/apache/catalina/startup/Bootstrap.<clinit>()V @37: ifnull Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 1202 b801 bbb3 0046 01b3 0159 1301 bdb8 0x0000010: 01c1 b301 8f13 01c3 b800 d54b 12cc b800 0x0000020: d54c 014d 2bc6 001b bb01 8159 2bb7 01c4 0x0000030: 4e2d b601 c74d a700 0a3a 042d b601 ca4d 0x0000040: 2cc7 0034 bb01 8159 2a13 01cc b701 cf4e 0x0000050: 2db6 01d2 9900 21bb 0181 592a 1301 d4b7 0x0000060: 01cf 3a04 1904 b601 c74d a700 0b3a 0519 0x0000070: 04b6 01ca 4d2c c700 1bbb 0181 592a b701 0x0000080: c44e 2db6 01c7 4da7 000a 3a04 2db6 01ca 0x0000090: 4d2c b301 7f12 ccb2 017f b601 84b8 01d8 0x00000a0: 5712 d1b8 00d5 4e2d c700 0cb2 017f b301 0x00000b0: 86a7 0025 bb01 8159 2db7 01c4 3a04 1904 0x00000c0: b601 c73a 04a7 000c 3a05 1904 b601 ca3a 0x00000d0: 0419 04b3 0186 12d1 b201 86b6 0184 b801 0x00000e0: d857 b1 Exception Handler Table: bci [49, 54] => handler: 57 bci [100, 106] => handler: 109 bci [130, 135] => handler: 138 bci [190, 197] => handler: 200

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.VerifyError

      Bad <init> method call from inside of a branch Exception Details: Location: MyGroovyFile.<init>(Ljava/lang/String;)V @93: invokespecial Reason: Error exists in the bytecode Bytecode: 0000000: b800 174d 04bd 0019 5903 2b53 5910 ff12 0000010: 04b8 001f 2a5f ab00 0000 00d7 0000 0006 0000020: aad3 b1ff 0000 003a afa3 00e4 0000 004d 0000030: d9ca eaf6 0000 0067 e925 fa09 0000 0086 0000040: 53cd d136 0000 00a3 60fa 8f17 0000 00c2 0000050: 5f5a 5903 32b8 0025 c000 275f 57b7 0029 0000060: a700 975f 5a59 0332 b800 25c0 0027 5f59 0000070: 0432 b800 2f5f 57b7 0032 a700 7d5f 5a59 0000080: 0332 1204 b800 36c0 0004 5f59 0432 b800 0000090: 25c0 0027 5f57 b700 39a7 005e 5f5a 5903 00000a0: 32b8 0025 c000 275f 5904 32b8 0025 c000 00000b0: 275f 57b7 003c a700 415f 5a59 0332 b800 00000c0: 25c0 0027 5f59 0432 1204 b800 36c0 0004 00000d0: 5f57 b700 3fa7 0022 5f5a 5903 3212 41b8 00000e0: 0036 c000 415f 57b7 0044 a700 0dbb 0046 00000f0: 5912 48b7 0049 bf57 2ab6 004d 4e2d 2a5f 0000100: b500 4f2d 57b1 Stackmap Table: full_frame(@80,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@99,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@125,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@156,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@185,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@216,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@237,{UninitializedThis,Object[#39],Object[#85]},{Object[#87],UninitializedThis}) full_frame(@247,{Object[#2],Object[#39],Object[#85]},{Object[#87]})

      at java.lang.Class.getDeclaredMethods0()
    2. Java RT
      LauncherHelper.checkAndLoadMain
      1. java.lang.Class.getDeclaredMethods0(Native Method)
      2. java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
      3. java.lang.Class.getMethod0(Class.java:2813)
      4. java.lang.Class.getMethod(Class.java:1663)
      5. sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
      6. sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
      6 frames