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])

GitHub | mfilser | 1 year ago
  1. 0

    java.lang.VerifyError: Bad return type

    GitHub | 1 year ago | mfilser
    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])
  2. 0

    java.lang.VerifyError: Bad return type

    GitHub | 1 year ago | mfilser
    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])
  3. 0

    Fix If comparison of two longs/doubles/float

    GitHub | 2 months ago | JonathanxD
    java.lang.VerifyError: 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 Current Frame: bci: @37 flags: { } locals: { 'me/jonathanscripter/codeapi/test/SimpleTest2_bytecode', 'java/lang/String' } stack: { long, long_2nd, long, long_2nd } Bytecode: 0x0000000: 2ab7 000c 2a2b b500 0e2b c600 0db2 0014 0x0000010: 2bb6 0019 a700 0bb2 0014 121b b600 1914 0x0000020: 001c 1400 1ea2 000e b200 1412 21b6 0019 0x0000030: a700 0bb2 0014 1223 b600 19b1 Stackmap Table: full_frame(@23,{Object[#3],Object[#37]},{}) same_frame(@31) same_locals_1_stack_item_frame(@51,Long) same_locals_1_stack_item_frame(@59,Long)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Some Kotlin code using `fiber` doesn't work properly with AoT instrumentation

    GitHub | 1 year ago | Jire
    java.lang.VerifyError: 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 Frame: bci: @38 flags: { } locals: { '[Ljava/lang/String;', integer, 'java/util/concurrent/TimeUnit', integer, long, long_2nd } stack: { uninitialized 31, uninitialized 31, long, long_2nd, 'java/util/concurrent/TimeUnit' } Bytecode: 0x0000000: 2a12 3fb8 000f 1103 e83c 014d 053e 001d 0x0000010: 057e 9900 07b2 001c 4d00 1b85 3704 00bb 0x0000020: 0041 5916 042c b700 44c0 002f b800 3557 0x0000030: b200 4ab6 004e c000 50b6 0054 b800 59b1 0x0000040: Stackmap Table: append_frame(@25,Integer,Object[#25],Integer)
  6. 0

    Support Go c-shared library format

    GitHub | 2 months ago | laszlohordos
    java.lang.RuntimeException: java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/example/App$LibGo$jnr$ffi$0.Base64Encode([B)[Ljava/lang/String; @32: areturn Reason: Type long_2nd (current frame, stack[1]) is not assignable to reference type Current Frame: bci: @32 flags: { } locals: { 'org/example/App$LibGo$jnr$ffi$0', '[B', integer } stack: { long, long_2nd } Bytecode: 0x0000000: b200 0e2a b400 122a b400 162b 033d c600 0x0000010: 0a09 8402 01a7 0004 091c 9a00 07b6 001c 0x0000020: b01c 2bb8 0022 4e2b 2d2a b400 26b6 002a 0x0000030: a7ff f0 Stackmap Table: full_frame(@24,{Object[#2],Object[#44],Integer},{Object[#24],Object[#46],Long}) full_frame(@25,{Object[#2],Object[#44],Integer},{Object[#24],Object[#46],Long,Long}) same_locals_1_stack_item_frame(@32,Long) full_frame(@33,{Object[#2],Object[#44],Integer},{Object[#24],Object[#46],Long,Long})

    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 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>()
    2. btrace.test.verifyError
      Main.main
      1. btrace.test.verifyError.Main.<init>(Main.java:9)
      2. btrace.test.verifyError.Main.main(Main.java:14)
      2 frames