java.lang.VerifyError: Inconsistent stackmap frames at branch target 13 Exception Details: Location: com/cloveretl/gui/editors/query/SQLQueryEditor.<init>(Ljava/lang/Object;Ljava/lang/String;I)V @13: ldc Reason: Type 'java/sql/Connection' (current frame, stack[1]) is not assignable to null (stack map, stack[1]) Current Frame: bci: @6 flags: { flagThisUninit } locals: { uninitializedThis, 'java/lang/Object', 'java/lang/String', integer } stack: { uninitializedThis, 'java/sql/Connection', 'java/lang/String' } Stackmap Frame: bci: @13 flags: { flagThisUninit } locals: { uninitializedThis, top, top, integer } stack: { uninitializedThis, null } Bytecode: 0000000: 2a01 c000 062c c600 072c a700 0512 021d 0000010: b700 07b1 Stackmap Table: full_frame(@13,{UninitializedThis,Top,Top,Integer},{UninitializedThis,Null}) full_frame(@15,{UninitializedThis,Top,Top,Integer},{UninitializedThis,Null,Object[#5]})

proguard | krivanekm | 3 years ago
  1. 0

    java.lang.VerifyError: Inconsistent stackmap frames

    proguard | 3 years ago | krivanekm
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 13 Exception Details: Location: com/cloveretl/gui/editors/query/SQLQueryEditor.<init>(Ljava/lang/Object;Ljava/lang/String;I)V @13: ldc Reason: Type 'java/sql/Connection' (current frame, stack[1]) is not assignable to null (stack map, stack[1]) Current Frame: bci: @6 flags: { flagThisUninit } locals: { uninitializedThis, 'java/lang/Object', 'java/lang/String', integer } stack: { uninitializedThis, 'java/sql/Connection', 'java/lang/String' } Stackmap Frame: bci: @13 flags: { flagThisUninit } locals: { uninitializedThis, top, top, integer } stack: { uninitializedThis, null } Bytecode: 0000000: 2a01 c000 062c c600 072c a700 0512 021d 0000010: b700 07b1 Stackmap Table: full_frame(@13,{UninitializedThis,Top,Top,Integer},{UninitializedThis,Null}) full_frame(@15,{UninitializedThis,Top,Top,Integer},{UninitializedThis,Null,Object[#5]})
  2. 0

    How to mock hadoop filesystem

    Stack Overflow | 1 year ago | Pramod
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 42 Exception Details: Location: org/apache/hadoop/conf/Configured.<init>()V @42: aload_1 Reason: Type uninitializedThis (current frame, locals[1]) is not assignable to 'org/apache/hadoop/conf/Configured' (stack map, locals[1]) Current Frame: bci: @32 flags: { flagThisUninit } locals: { uninitializedThis, uninitializedThis, null, top, 'java/lang/Object' } stack: { 'java/lang/Object', 'java/lang/Object' } Stackmap Frame: bci: @42 flags: { flagThisUninit } locals: { uninitializedThis, 'org/apache/hadoop/conf/Configured', 'org/apache/hadoop/conf/Configuration' }
  3. 0

    When changing portal source and target level to 1.7 the mockito throws exception when runnin integration tests contains static mocking. {noformat} Inconsistent stackmap frames at branch target 40 Exception Details: Location: com/liferay/portal/kernel/lar/ExportImportDateUtilTest.<init>()V @40: aload_1 Reason: Type uninitializedThis (current frame, locals[1]) is not assignable to 'com/liferay/portal/kernel/lar/ExportImportDateUtilTest' (stack [1]) Current Frame: bci: @26 flags: { flagThisUninit } locals: { uninitializedThis, uninitializedThis, top, 'java/lang/Object' } stack: { 'java/lang/Object', 'java/lang/Object' } Stackmap Frame: bci: @40 flags: { flagThisUninit } locals: { uninitializedThis, 'com/liferay/portal/kernel/lar/ExportImportDateUtilTest' } stack: { } Bytecode: 0000000: 2a4c 1300 1cb8 0022 03bd 0024 1300 25b8 0000010: 0029 b800 2f4e 2db2 0033 a500 0e2a 01c0 0000020: 0035 b700 39a7 0009 2bb7 003b 0157 b1 Stackmap Table: append_frame(@40,Object[#18]) chop_frame(@46,1) java.lang.VerifyError: Inconsistent stackmap frames at branch target 40 Exception Details: Location: com/liferay/portal/kernel/lar/ExportImportDateUtilTest.<init>()V @40: aload_1 Reason: Type uninitializedThis (current frame, locals[1]) is not assignable to 'com/liferay/portal/kernel/lar/ExportImportDateUtilTest' (stack [1]) Current Frame: bci: @26 flags: { flagThisUninit } locals: { uninitializedThis, uninitializedThis, top, 'java/lang/Object' } stack: { 'java/lang/Object', 'java/lang/Object' } Stackmap Frame: bci: @40 flags: { flagThisUninit } locals: { uninitializedThis, 'com/liferay/portal/kernel/lar/ExportImportDateUtilTest' } stack: { } Bytecode: 0000000: 2a4c 1300 1cb8 0022 03bd 0024 1300 25b8 0000010: 0029 b800 2f4e 2db2 0033 a500 0e2a 01c0 0000020: 0035 b700 39a7 0009 2bb7 003b 0157 b1 Stackmap Table: append_frame(@40,Object[#18]) chop_frame(@46,1) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.privateGetPublicMethods(Class.java:2651) at java.lang.Class.getMethods(Class.java:1467) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.getTestMethods(PowerMockJUnit44RunnerDelegateImpl.jav at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.<init>(PowerMockJUnit44RunnerDelegateImpl.java:71) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl.<init>(PowerMockJUnit49RunnerDelegateImpl.java:29) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerI ) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerI at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:217) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init>(JUnit4TestSuiteChunkerImpl.java:59) at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init>(AbstractCommonPowerMockRunner.java:32) at org.powermock.modules.junit4.PowerMockRunner.<init>(PowerMockRunner.java:33) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) Test com.liferay.portal.kernel.lar.ExportImportDateUtilTest FAILED {noformat} More details about the issue can be found on the Powermock official site: http://code.google.com/p/powermock/issues/detail?id=355 One possible solution is to upgrade the library to version 1.5.4 or later.

    Liferay Issues | 2 years ago | Daniel Kocsis
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 40 Exception Details: Location: com/liferay/portal/kernel/lar/ExportImportDateUtilTest.<init>()V @40: aload_1 Reason: Type uninitializedThis (current frame, locals[1]) is not assignable to 'com/liferay/portal/kernel/lar/ExportImportDateUtilTest' (stack [1]) Current Frame: bci: @26 flags: { flagThisUninit } locals: { uninitializedThis, uninitializedThis, top, 'java/lang/Object' } stack: { 'java/lang/Object', 'java/lang/Object' } Stackmap Frame: bci: @40 flags: { flagThisUninit } locals: { uninitializedThis, 'com/liferay/portal/kernel/lar/ExportImportDateUtilTest' } stack: { } Bytecode: 0000000: 2a4c 1300 1cb8 0022 03bd 0024 1300 25b8 0000010: 0029 b800 2f4e 2db2 0033 a500 0e2a 01c0 0000020: 0035 b700 39a7 0009 2bb7 003b 0157 b1 Stackmap Table: append_frame(@40,Object[#18]) chop_frame(@46,1)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue 355 - powermock - Test generates java.lang.VerifyError: Inconsistent stackmap frames at branch target - PowerMock is a Java framework that allows you to unit test code normally regarded as untestable. - Google Project Hosting

    google.com | 11 months ago
    REDACTED.websockets.client.async.TokenAuthenticatedSocketManagerTest: Inconsistent stackmap frames at branch target 38 Exception Details: Location: REDACTED/websockets/client/async/TokenAuthenticatedSocketManagerTest.<init>()V @38: aload_1 Reason: Type uninitializedThis (current frame, locals[1]) is not assignable to 'REDACTED/websockets/client/async/TokenAuthenticatedSocketManagerTest' (stack map, locals[1]) Current Frame: bci: @24 flags: { flagThisUninit } locals: { uninitializedThis, uninitializedThis, top, 'java/lang/Object' } stack: { 'java/lang/Object', 'java/lang/Object' } Stackmap Frame: bci: @38 flags: { flagThisUninit } locals: { uninitializedThis, 'REDACTED/websockets/client/async/TokenAuthenticatedSocketManagerTest' } stack: { } Bytecode: 0x0000000: 2a4c 120f b800 1503 bd00 1712 18b8 001c 0x0000010: b800 224e 2db2 0026 a500 0e2a 01c0 0028 0x0000020: b700 2ca7 0009 2bb7 002e 0157 b1 Stackmap Table: append_frame(@38,Object[#12]) chop_frame(@44,1)
  6. 0

    Inconsistent stack map frames in 5.2.1

    proguard | 1 year ago | denis-ballant
    java.lang.VerifyError: Inconsistent stack map frames at branch target 70 Exception Details: Location: myproduct/aic.<init>(Lmyproduct/agw;Lmyproduct/aic$a;)V @70: new Reason: Current frame's flags are not assignable to stack map frame's. Current Frame: bci: @12 flags: { flagThisUninit } locals: { uninitializedThis, 'myproduct/aic$a', 'myproduct/aic$a' } stack: { uninitializedThis, 'myproduct/agw', integer } Stackmap Frame: bci: @70 flags: { } locals: { } stack: { uninitializedThis, 'myproduct/agw' } Bytecode: 0000000: 2a2b 2c4c b200 262b b600 422e aa00 0000 0000010: 0000 003a 0000 0001 0000 0003 0000 001c 0000020: 0000 0026 0000 0030 bb00 0a59 b700 33a7 0000030: 0021 bb00 0c59 b700 34a7 0017 bb00 0d59 0000040: b700 36a7 000d bb00 1f59 1204 b700 46bf 0000050: b700 40b1 Stackmap Table: full_frame(@40,{UninitializedThis},{UninitializedThis,Object[#23]}) full_frame(@50,{UninitializedThis},{UninitializedThis,Object[#23]}) full_frame(@60,{UninitializedThis},{UninitializedThis,Object[#23]}) full_frame(@70,{},{UninitializedThis,Object[#23]}) full_frame(@80,{UninitializedThis},{UninitializedThis,Object[#23],Object[#11 ]})

    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 13 Exception Details: Location: com/cloveretl/gui/editors/query/SQLQueryEditor.<init>(Ljava/lang/Object;Ljava/lang/String;I)V @13: ldc Reason: Type 'java/sql/Connection' (current frame, stack[1]) is not assignable to null (stack map, stack[1]) Current Frame: bci: @6 flags: { flagThisUninit } locals: { uninitializedThis, 'java/lang/Object', 'java/lang/String', integer } stack: { uninitializedThis, 'java/sql/Connection', 'java/lang/String' } Stackmap Frame: bci: @13 flags: { flagThisUninit } locals: { uninitializedThis, top, top, integer } stack: { uninitializedThis, null } Bytecode: 0000000: 2a01 c000 062c c600 072c a700 0512 021d 0000010: b700 07b1 Stackmap Table: full_frame(@13,{UninitializedThis,Top,Top,Integer},{UninitializedThis,Null}) full_frame(@15,{UninitializedThis,Top,Top,Integer},{UninitializedThis,Null,Object[#5]})

      at com.cloveretl.gui.main.Test.main()
    2. com.cloveretl.gui
      Test.main
      1. com.cloveretl.gui.main.Test.main(Unknown Source)
      1 frame