java.lang.VerifyError

Bad return type Exception Details: Location: btrace/test/verifyError/Persons.getPerson(Ljava/lang/String;)Lbtrace/test/verifyError/Person; @56: areturn Reason: Type 'java/lang/Object' (current frame, stack[0]) is not assignable to 'btrace/test/verifyError/Person' (from method signature) Current Frame: bci: @56 flags: { } locals: { 'btrace/test/verifyError/Persons', 'java/lang/String', long, long_2nd, long, long_2nd, 'java/lang/Object' } stack: { 'java/lang/Object' } Bytecode: 0000000: 1400 1041 b800 1737 0412 21b8 000f bb00 0000010: 2359 2bb7 0025 3a06 2bb6 002b 9a00 0dbb 0000020: 002d 592b b700 2e3a 0619 06b8 0017 1604 0000030: 6541 1221 20b8 001b b0 Stackmap Table: append_frame(@41,Long,Long,Object[#4])


Solutions on the web3066

Solution icon of github
' } Bytecode: 0000000: 1400 1041 b800 1737 0412 21b8 000f bb00 0000010: 2359 2bb7 0025 3a06 2bb6 002b 9a00 0dbb 0000020: 002d 592b b700 2e3a 0619 06b8 0017 1604 0000030: 6541 1221 20b8 001b b0 Stackmap Table: append_frame(@41,Long,Long,Object[#4])

Solution icon of github
Bad type on operand stack Exception Details: Location: me/jonathanscripter/codeapi/test/SimpleTest2_bytecode.<init>(Ljava/lang/String;)V @37: if_icmpge Reason: Type long_2nd (current frame, stack[3]) is not assignable to integer

Solution icon of github
Bad type on operand stack Exception Details: Location: org/abendigo/AbendigoKt.main([Ljava/lang/String;)V @38: invokespecial Reason: Type long_2nd (current frame, stack[3]) is not assignable to 'kotlin/jvm/functions/Function0' Current

Solution icon of github
Bad type on operand stack Exception Details: Location: test/ProxyedInterface_Proxy_T3rJCc0Y.setPrimitive(JLjava/lang/String;)V @33: aastore Reason: Type long_2nd (current frame, stack[7]) is not assignable to 'java/lang/Object' Current

Solution icon of stackoverflow
Bad type on operand stack Exception Details: Location: zw/co/esol/eswitch/model/Test.<init>(JLjava/lang/String;)V @2: invokevirtual Reason: Type uninitializedThis (current frame, stack[0]) is not assignable to 'zw/co/esol/eswitch/model

Solution icon of stackoverflow
via Stack Overflow by Tirrel
, 1 year ago
Bad type on operand stack Exception Details: Location: it/app/manage/EncrypterManager.<init>()V @59: invokevirtual Reason: Type 'java/lang/Object' (current frame, stack[1]) is not assignable to 'java/security/GeneralSecurityException' Current Frame

Solution icon of github
Bad local variable type Exception Details: Location: com/pjfun/ext/zervice/zone/model/ZoneData.replyMsg(JJJLjava/lang/String;Ljava/util/Date;)J @0: aload_1 Reason: Type long (current frame, locals[1]) is not assignable to reference type

Solution icon of stackoverflow
via Stack Overflow by udani
, 1 year ago
Bad type on operand stack Exception Details: Location: org/h2/jdbc/JdbcConnection.prepareStatement(Ljava/lang/String;)Ljava/sql/PreparedStatement; @38: i2l Reason: Type 'java/lang/Long' (current frame, stack[0]) is not assignable to

Solution icon of web
]) is not assignable to 'javasoft/sqe/tests/lang/lmbd010/lmbd01001m6/lmbd01001m6' Current Frame: bci: @1 flags: { } locals: { '[Ljava/lang/String;', 'java/io/PrintStream' } stack: { '[Ljava/lang/String;' } Bytecode: 0000000: 2aba

Solution icon of stackoverflow
/RegexStringComparator' (current frame, stack[3]) is not assignable to 'org/apache/hadoop/hbase/filter/WritableByteArrayComparable'| Current Frame:| bci: @56| flags: { }| locals: { '[Ljava/lang/String;', 'org/apache/hadoop/hbase/filter/Filter

Stack trace

  • java.lang.VerifyError: Bad return type Exception Details: Location: btrace/test/verifyError/Persons.getPerson(Ljava/lang/String;)Lbtrace/test/verifyError/Person; @56: areturn Reason: Type 'java/lang/Object' (current frame, stack[0]) is not assignable to 'btrace/test/verifyError/Person' (from method signature) Current Frame: bci: @56 flags: { } locals: { 'btrace/test/verifyError/Persons', 'java/lang/String', long, long_2nd, long, long_2nd, 'java/lang/Object' } stack: { 'java/lang/Object' } Bytecode: 0000000: 1400 1041 b800 1737 0412 21b8 000f bb00 0000010: 2359 2bb7 0025 3a06 2bb6 002b 9a00 0dbb 0000020: 002d 592b b700 2e3a 0619 06b8 0017 1604 0000030: 6541 1221 20b8 001b b0 Stackmap Table: append_frame(@41,Long,Long,Object[#4]) at btrace.test.verifyError.Main.<init>(Main.java:9) at btrace.test.verifyError.Main.main(Main.java:14)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.