java.lang.VerifyError: Inconsistent stackmap frames at branch target 41 Exception Details: Location: badClass.eval()V @41: iinc Reason: Type top (current frame, locals[4]) is not assignable to integer (stack map, locals[4]) Current Frame: bci: @35 flags: { } locals: { 'badClass', top, top, top, top, integer, integer, integer, integer, integer } stack: { integer } Stackmap Frame: bci: @41 flags: { } locals: { 'badClass', top, top, top, integer, integer, integer, integer, integer } stack: { } Bytecode: 0x0000000: 0499 0009 0387 48a7 0006 0387 4a03 3605 0x0000010: 1505 05a2 001c 0336 0603 3607 0336 0803 0x0000020: 3609 0499 0006 0336 0a84 0501 a7ff e4b1 0x0000030: Stackmap Table: same_frame(@10) same_frame(@13) full_frame(@16,{Object[#2],Top,Top,Top,Top,Integer},{}) full_frame(@41,{Object[#2],Top,Top,Top,Integer,Integer,Integer,Integer,Integer},{}) full_frame(@47,{Object[#2],Top,Top,Top,Top,Integer},{})

JBoss Issue Tracker | Alexey Kuznetsov | 8 months ago
  1. 0

    {code:java} package com.company; import javassist.ClassPool; import javassist.CtClass; import javassist.CtMethod; public class Main { public static void main(String[] args) { CtClass badClass = ClassPool.getDefault().makeClass("badClass"); String src = String.join(System.getProperty("line.separator"), "public void eval () {", " if (true) {", " double t=0;", " } else {", " double t=0;", " }", " for (int i=0; i < 2; i++) {", " int a=0;", " int b=0;", " int c=0;", " int d=0;", " if (true) {", " int e = 0;", " }", " }", "}"); System.out.println(src); try { badClass.addMethod(CtMethod.make(src, badClass)); Class clazzz = badClass.toClass(); Object obj = clazzz.newInstance(); // <-- falls here } catch (Exception e) { e.printStackTrace(); } } } {code} After running that i get output: {noformat} public void eval () { if (true) { double t=0; } else { double t=0; } for (int i=0; i < 2; i++) { int a=0; int b=0; int c=0; int d=0; if (true) { int e = 0; } } } Exception in thread "main" java.lang.VerifyError: Inconsistent stackmap frames at branch target 41 Exception Details: Location: badClass.eval()V @41: iinc Reason: Type top (current frame, locals[4]) is not assignable to integer (stack map, locals[4]) Current Frame: bci: @35 flags: { } locals: { 'badClass', top, top, top, top, integer, integer, integer, integer, integer } stack: { integer } Stackmap Frame: bci: @41 flags: { } locals: { 'badClass', top, top, top, integer, integer, integer, integer, integer } stack: { } Bytecode: 0x0000000: 0499 0009 0387 48a7 0006 0387 4a03 3605 0x0000010: 1505 05a2 001c 0336 0603 3607 0336 0803 0x0000020: 3609 0499 0006 0336 0a84 0501 a7ff e4b1 0x0000030: Stackmap Table: same_frame(@10) same_frame(@13) full_frame(@16,{Object[#2],Top,Top,Top,Top,Integer},{}) full_frame(@41,{Object[#2],Top,Top,Top,Integer,Integer,Integer,Integer,Integer},{}) full_frame(@47,{Object[#2],Top,Top,Top,Top,Integer},{}) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.newInstance(Class.java:412) at com.company.Main.main(Main.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Process finished with exit code 1 {noformat}

    JBoss Issue Tracker | 8 months ago | Alexey Kuznetsov
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 41 Exception Details: Location: badClass.eval()V @41: iinc Reason: Type top (current frame, locals[4]) is not assignable to integer (stack map, locals[4]) Current Frame: bci: @35 flags: { } locals: { 'badClass', top, top, top, top, integer, integer, integer, integer, integer } stack: { integer } Stackmap Frame: bci: @41 flags: { } locals: { 'badClass', top, top, top, integer, integer, integer, integer, integer } stack: { } Bytecode: 0x0000000: 0499 0009 0387 48a7 0006 0387 4a03 3605 0x0000010: 1505 05a2 001c 0336 0603 3607 0336 0803 0x0000020: 3609 0499 0006 0336 0a84 0501 a7ff e4b1 0x0000030: Stackmap Table: same_frame(@10) same_frame(@13) full_frame(@16,{Object[#2],Top,Top,Top,Top,Integer},{}) full_frame(@41,{Object[#2],Top,Top,Top,Integer,Integer,Integer,Integer,Integer},{}) full_frame(@47,{Object[#2],Top,Top,Top,Top,Integer},{})
  2. 0

    beta-6 - loading problem

    GitHub | 2 years ago | NitroxydeX
    java.lang.reflect.InvocationTargetException
  3. 0

    VerifyError with ShinobiControls and Robolectric

    Stack Overflow | 10 months ago | SJoshi
    java.lang.VerifyError: Expecting a stackmap frame at branch target 18 Exception Details: Location: com/shinobicontrols/charts/ChartFragment.onResume()V @8: ifnull Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 2ab7 000b 2ab4 0006 c600 0a2a b400 06b6 0x0000010: 0012 b1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    users-camel-apache - Fwd: solr 5.5.0 indexing - msg#00278 - Recent Discussion OSDir.com

    osdir.com | 9 months ago
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/apache/camel/component/solr/SolrComponent.shutdownServers(Lorg/apache/camel/component/solr/SolrComponent$SolrServerReference;Z)V @5: invokespecial Reason: Type 'org/apache/solr/client/solrj/impl/HttpSolrServer' (current frame, stack[1]) is not assignable to 'org/apache/solr/client/solrj/SolrServer' Current Frame: bci: @5 flags: { } locals: { 'org/apache/camel/component/solr/SolrComponent', 'org/apache/camel/component/solr/SolrComponent$SolrServerReference', integer } stack: { 'org/apache/camel/component/solr/SolrComponent', 'org/apache/solr/client/solrj/impl/HttpSolrServer' } Bytecode: 0x0000000: 2a2b b600 16b7 0017 a700 0f4e b200 1212 0x0000010: 192d b900 1a03 002a 2bb6 001b b700 17a7 0x0000020: 000f 4eb2 0012 121c 2db9 001a 0300 2a2b 0x0000030: b600 1db7 0017 a700 0f4e b200 1212 1c2d 0x0000040: b900 1a03 001c 9900 5601 4e2a b400 05b9 0x0000050: 001e 0100 b900 1f01 003a 0419 04b9 000d 0x0000060: 0100 9900 2b19 04b9 000e 0100 c000 203a 0x0000070: 0519 05b9 0021 0100 2ba6 0011 1905 b900 0x0000080: 2201 00c0 0001 4ea7 0006 a7ff d12d c600 0x0000090: 0e2a b400 052d b900 2302 0057 b1 Exception Handler Table: bci [0, 8] => handler: 11 bci [23, 31] => handler: 34 bci [46, 54] => handler: 57 Stackmap Table: same_locals_1_stack_item_frame(@11,Object[#94]) same_frame(@23) same_locals_1_stack_item_frame(@34,Object[#94]) same_frame(@46) same_locals_1_stack_item_frame(@57,Object[#94]) same_frame(@69) append_frame(@91,Object[#95],Object[#77]) same_frame(@138) chop_frame(@141,1) chop_frame(@156,1)
  6. 0

    solr 5.5.0 indexing

    camel-dev | 9 months ago | Mansour Al Akeel
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/apache/camel/component/solr/SolrComponent.shutdownServers(Lorg/apache/camel/component/solr/SolrComponent$SolrServerReference;Z)V @5: invokespecial Reason: Type 'org/apache/solr/client/solrj/impl/HttpSolrServer' (current frame, stack[1]) is not assignable to 'org/apache/solr/client/solrj/SolrServer' Current Frame: bci: @5 flags: { } locals: { 'org/apache/camel/component/solr/SolrComponent', 'org/apache/camel/component/solr/SolrComponent$SolrServerReference', integer } stack: { 'org/apache/camel/component/solr/SolrComponent', 'org/apache/solr/client/solrj/impl/HttpSolrServer' } Bytecode: 0x0000000: 2a2b b600 16b7 0017 a700 0f4e b200 1212 0x0000010: 192d b900 1a03 002a 2bb6 001b b700 17a7 0x0000020: 000f 4eb2 0012 121c 2db9 001a 0300 2a2b 0x0000030: b600 1db7 0017 a700 0f4e b200 1212 1c2d 0x0000040: b900 1a03 001c 9900 5601 4e2a b400 05b9 0x0000050: 001e 0100 b900 1f01 003a 0419 04b9 000d 0x0000060: 0100 9900 2b19 04b9 000e 0100 c000 203a 0x0000070: 0519 05b9 0021 0100 2ba6 0011 1905 b900 0x0000080: 2201 00c0 0001 4ea7 0006 a7ff d12d c600 0x0000090: 0e2a b400 052d b900 2302 0057 b1 Exception Handler Table: bci [0, 8] => handler: 11 bci [23, 31] => handler: 34 bci [46, 54] => handler: 57 Stackmap Table: same_locals_1_stack_item_frame(@11,Object[#94]) same_frame(@23) same_locals_1_stack_item_frame(@34,Object[#94]) same_frame(@46) same_locals_1_stack_item_frame(@57,Object[#94]) same_frame(@69) append_frame(@91,Object[#95],Object[#77]) same_frame(@138) chop_frame(@141,1) chop_frame(@156,1)

  1. esaar 1 times, last 4 months ago
  2. asvid 10 times, last 5 months ago
  3. Akshay 2 times, last 6 months ago
  4. tone5992 4 times, last 7 months ago
  5. Roberto Tomás 1 times, last 8 months ago
9 unregistered visitors
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

    Inconsistent stackmap frames at branch target 41 Exception Details: Location: badClass.eval()V @41: iinc Reason: Type top (current frame, locals[4]) is not assignable to integer (stack map, locals[4]) Current Frame: bci: @35 flags: { } locals: { 'badClass', top, top, top, top, integer, integer, integer, integer, integer } stack: { integer } Stackmap Frame: bci: @41 flags: { } locals: { 'badClass', top, top, top, integer, integer, integer, integer, integer } stack: { } Bytecode: 0x0000000: 0499 0009 0387 48a7 0006 0387 4a03 3605 0x0000010: 1505 05a2 001c 0336 0603 3607 0336 0803 0x0000020: 3609 0499 0006 0336 0a84 0501 a7ff e4b1 0x0000030: Stackmap Table: same_frame(@10) same_frame(@13) full_frame(@16,{Object[#2],Top,Top,Top,Top,Integer},{}) full_frame(@41,{Object[#2],Top,Top,Top,Integer,Integer,Integer,Integer,Integer},{}) full_frame(@47,{Object[#2],Top,Top,Top,Top,Integer},{})

    at java.lang.Class.getDeclaredConstructors0()
  2. Java RT
    Class.newInstance
    1. java.lang.Class.getDeclaredConstructors0(Native Method)
    2. java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
    3. java.lang.Class.getConstructor0(Class.java:3075)
    4. java.lang.Class.newInstance(Class.java:412)
    4 frames
  3. com.company
    Main.main
    1. com.company.Main.main(Main.java:31)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
    1 frame