ReflectionUtils.getDeclaredMethods() has thrown a VerifyError

java.lang.VerifyError
Javadoc
Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem. @author unascribed @since JDK1.0
at java.lang.Class.getDeclaredMethods0
(source)
at java.lang.Class.privateGetDeclaredMethods
(source)
at java.lang.Class.getDeclaredMethods
(source)
at org.springframework.util.ReflectionUtils.getDeclaredMethods
(source)
3 frames hidden

Typical Exception Messages

  1. Inconsistent stackmap frames at branch target 49 Exception Details: Location: com/x/game/repository/FileSystemGameSessionRepositoryImpl.lambda$getAllGameSessions$1(Ljava/nio/file/Path;)Lcom/x/game/model/GameSession; @49: aload Reason: Type 'java/lang/Object' (current frame, locals[4]) is not assignable to 'com/x/game/model/GameSession' (stack map, locals[4]) Current Frame: bci: @20 flags: { } locals: { 'com/x/game/repository/FileSystemGameSessionRepositoryImpl', 'java/nio/file/Path', 'java/io/BufferedReader', null, 'java/lang/Object' } stack: { 'java/io/BufferedReader' } Stackmap Frame: bci: @49 flags: { } locals: { 'com/x/game/repository/FileSystemGameSessionRepositoryImpl', 'java/nio/file/Path', 'java/io/BufferedReader', 'java/lang/Throwable', 'com/x/game/model/GameSession' } stack: { } Bytecode: 0x0000000: 2bb8 0006 4d01 4e2a b400 042c 1207 b600 0x0000010: 083a 042c c600 1d2d c600 152c b600 0aa7 0x0000020: 0012 3a05 2d19 05b6 000c a700 072c b600 0x0000030: 0a19 04b0 3a04 1904 4e19 04bf 3a06 2cc6 0x0000040: 001d 2dc6 0015 2cb6 000a a700 123a 072d 0x0000050: 1907 b600 0ca7 0007 2cb6 000a 1906 bf4d 0x0000060: 2cb6 000e 01b0 Exception Handler Table: bci [27, 31] => handler: 34 bci [7, 19] => handler: 52 bci [7, 19] => handler: 60 bci [70, 74] => handler: 77 bci [52, 62] => handler: 60 bci [0, 49] => handler: 95 bci [52, 95] => handler: 95 Stackmap Table: full_frame(@34,{Object[#72],Object[#105],Object[#74],Object[#75],Object[#91]},{Object[#75]}) same_frame(@45) same_frame(@49) full_frame(@52,{Object[#72],Object[#105],Object[#74],Object[#75]},{Object[#75]}) same_locals_1_stack_item_frame(@60,Object[#75]) full_frame(@77,{Object[#72],Object[#105],Object[#74],Object[#75],Top,Top,Object[#75]},{Object[#75]}) same_frame(@88) same_frame(@92) full_frame(@95,{Object[#72],Object[#105]},{Object[#77]})
  2. Expecting a stackmap frame at branch target 29 Exception Details: Location: com/xxxxx/xxxxV1(Ljava/lang/String;)Ljavax/ws/rs/core/Response; @12: aload_0 Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 2b4d b204 732a 2a2c b804 794e 2a2c 2db8 0x0000010: 049c 01b2 0473 b804 a0c0 010c b03a 04b8 0x0000020: 04a7 1904 b204 732d b604 ab19 04bf Exception Handler Table: bci [12, 29] => handler: 29

Origin

Class.getDeclaredMethods() has thrown a VerifyError

java.lang.VerifyError
2 frames hidden
java.lang.Class.getDeclaredMethods
28Web pages

Similar

Specific cases

External results for this pattern (2)

  1. Expecting a stackmap frame at branch target 29 Exception Details: Location: com/xxxxx/xxxxV1(Ljava/lang/String;)Ljavax/ws/rs/core/Response; @12: aload_0 Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 2b4d b204 732a 2a2c b804 794e 2a2c 2db8 0x0000010: 049c 01b2 0473 b804 a0c0 010c b03a 04b8 0x0000020: 04a7 1904 b204 732d b604 ab19 04bf Exception Handler Table: bci [12, 29] => handler: 29
    Show stack trace
  2. Inconsistent stackmap frames at branch target 49 Exception Details: Location: com/x/game/repository/FileSystemGameSessionRepositoryImpl.lambda$getAllGameSessions$1(Ljava/nio/file/Path;)Lcom/x/game/model/GameSession; @49: aload Reason: Type 'java/lang/Object' (current frame, locals[4]) is not assignable to 'com/x/game/model/GameSession' (stack map, locals[4]) Current Frame: bci: @20 flags: { } locals: { 'com/x/game/repository/FileSystemGameSessionRepositoryImpl', 'java/nio/file/Path', 'java/io/BufferedReader', null, 'java/lang/Object' } stack: { 'java/io/BufferedReader' } Stackmap Frame: bci: @49 flags: { } locals: { 'com/x/game/repository/FileSystemGameSessionRepositoryImpl', 'java/nio/file/Path', 'java/io/BufferedReader', 'java/lang/Throwable', 'com/x/game/model/GameSession' } stack: { } Bytecode: 0x0000000: 2bb8 0006 4d01 4e2a b400 042c 1207 b600 0x0000010: 083a 042c c600 1d2d c600 152c b600 0aa7 0x0000020: 0012 3a05 2d19 05b6 000c a700 072c b600 0x0000030: 0a19 04b0 3a04 1904 4e19 04bf 3a06 2cc6 0x0000040: 001d 2dc6 0015 2cb6 000a a700 123a 072d 0x0000050: 1907 b600 0ca7 0007 2cb6 000a 1906 bf4d 0x0000060: 2cb6 000e 01b0 Exception Handler Table: bci [27, 31] => handler: 34 bci [7, 19] => handler: 52 bci [7, 19] => handler: 60 bci [70, 74] => handler: 77 bci [52, 62] => handler: 60 bci [0, 49] => handler: 95 bci [52, 95] => handler: 95 Stackmap Table: full_frame(@34,{Object[#72],Object[#105],Object[#74],Object[#75],Object[#91]},{Object[#75]}) same_frame(@45) same_frame(@49) full_frame(@52,{Object[#72],Object[#105],Object[#74],Object[#75]},{Object[#75]}) same_locals_1_stack_item_frame(@60,Object[#75]) full_frame(@77,{Object[#72],Object[#105],Object[#74],Object[#75],Top,Top,Object[#75]},{Object[#75]}) same_frame(@88) same_frame(@92) full_frame(@95,{Object[#72],Object[#105]},{Object[#77]})
    Show stack trace