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},{})

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JBoss Issue Tracker by Alexey Kuznetsov, 1 year ago
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
via GitHub by ml-bauer
, 1 year ago
Illegal type at constant pool entry 12 in class test.Test Exception Details: Location: test/Test.aMethod()I @2: invokespecial Reason: Constant pool index 12 is invalid Bytecode: 0x0000000: 042a b700 0c60 ac
via Stack Overflow by Ramesh Subramanian
, 1 year ago
Expecting a stackmap frame at branch target 18 Exception Details: Location: com/sun/crypto/provider/SunJCE.getInstance()Lcom/sun/crypto/provider/SunJCE; @0: getstatic Reason: Expected stackmap frame at this location. Bytecode
via GitHub by hsyyid
, 4 months ago
Bad type on operand stack Exception Details: Location: com/javassist/test/Student$CopyExtractor.getValueList(Ljava/lang/Object;)Ljava/lang/String; @58: invokevirtual Reason: Type 'java/lang/Object' (current frame, stack[0]) is
via apache.org by Unknown author, 2 years ago
Bad type on operand stack Exception Details: Location: com/Controller.run()V @55: invokedynamic Reason: Type 'java/lang/Object' (current frame, stack[0]) is not assignable to 'java/lang/String' Current Frame: bci: @55 flags
via Oracle Community by 843833, 1 year ago
(class: oracle/epcis/services/queryservice/runtime/EPCISServiceBinding_Tie, method: invoke_getSubscriptionIDs signature: (Loracle/j2ee/ws/server/StreamingHandlerState;)V) Incompatible argument to function
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)

Users with the same issue

5 times, 7 months ago
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.