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)

Liferay Issues | Daniel Kocsis | 2 years ago
  1. 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)
  2. 0

    Builds but cannot run...

    GitHub | 2 years ago | kodpraktikanten
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/estatio/dom/lease/invoicing/InvoiceItemForLease.compareTo(Lorg/estatio/dom/invoice/InvoiceItem;)I @2: invokespecial Reason: Type 'org/estatio/dom/invoice/InvoiceItem' (current frame, stack[1]) is not assignable to 'org/estatio/dom/UdoDomainObject' Current Frame: bci: @2 flags: { } locals: { 'org/estatio/dom/lease/invoicing/InvoiceItemForLease', 'org/estatio/dom/invoice/InvoiceItem' } stack: { 'org/estatio/dom/lease/invoicing/InvoiceItemForLease', 'org/estatio/dom/invoice/InvoiceItem' } Bytecode: 0000000: 2a2b b700 c03d 1c99 0005 1cac 2bc1 0002 0000010: 9900 0fb2 00c2 2a2b c000 02b6 00c8 ac2a 0000020: b600 ceb6 00d4 2bb6 00ce b600 d4b6 00d9 0000030: ac Stackmap Table: append_frame(@12,Integer) same_frame(@31)
  3. 0

    Getting java.lang.VerifyError: StackMapTable error: bad offset while mocking a private method using Powermock

    Stack Overflow | 2 years ago
    java.lang.VerifyError: StackMapTable error: bad offset Exception Details: Location: edu/apollogrp/common/HandyTestBase.<clinit>()V @0: iconst_0 Reason: Invalid stackmap specification. Current Frame: bci: @188 flags: { } locals: { 'java/lang/StringBuilder', 'java/lang/String' } stack: { } Bytecode: 0000000: 03b3 042b 014b 0e48 014e 2a01 a500 082a 0000010: 4ea7 000a 1304 2db8 042f 4e2d 1304 3103 0000020: bd00 0813 0433 b804 3513 0437 b804 393a 0000030: 0419 04b2 043b a600 0ab8 043f 48a7 000c 0000040: 1904 c000 3cb6 0442 4827 1404 436b 8eb3 0000050: 0446 0000 0000 014b 014c 1304 47b8 0449 0000060: 03bd 0008 1304 4ab8 044c b804 4e4d 2cb2 0000070: 0450 a500 2f2c c101 4f99 0020 b804 5213 0000080: 0453 b804 5512 0801 b604 57b6 0459 01b6 0000090: 045b c001 824c a700 082c c001 824c a700 00000a0: 0bbb 0182 59b7 045d 4c2b 1304 5f4c 4b01 00000b0: 4d01 4e2a 01a5 0008 2a4e a700 0a13 0460 00000c0: b804 624e 2d13 0463 04bd 0008 5903 2b53 00000d0: 1304 64b8 0466 1304 67b8 0469 3a04 1904 00000e0: b204 6ba6 000c 2a2b b604 6d4d a700 0919 00000f0: 04c0 0182 4d2c b804 6f4c 4b01 4d01 4e2a 0000100: 01a5 0008 2a4e a700 0a13 0470 b804 724e 0000110: 2d13 0473 04bd 0008 5903 2b53 1304 74b8 0000120: 0476 1304 77b8 0479 3a04 1904 b204 7ba6 0000130: 000c 2a2b b604 7d4d a700 0919 04c0 0182 0000140: 4d2c 4b01 4c01 4d2a 01a5 0008 2a4d a700 0000150: 0a13 047e b804 804d 2c13 0481 03bd 0008 0000160: 1304 82b8 0484 1304 85b8 0487 4e2d b204 0000170: 89a6 000b 2ab6 048b 4ca7 0008 2dc0 0082 0000180: 4c2b b304 8db1 Stackmap Table: same_frame(@20) full_frame(@27,{Top,Top,Top,Object[#157]},{}) full_frame(@64,{Top,Top,Top,Top,Object[#8]},{}) full_frame(@73,{Top,Double},{}) full_frame(@153,{Top,Top,Object[#8]},{}) full_frame(@158,{Top,Object[#386]},{}) chop_frame(@161,2) append_frame(@169,Top,Object[#386]) full_frame(@188,{Object[#386],Object[#130]},{}) append_frame(@195,Top,Object[#8]) full_frame(@238,{Top,Top,Top,Top,Object[#8]},{}) full_frame(@244,{Top,Top,Object[#386]},{}) full_frame(@264,{Object[#386],Object[#130]},{}) append_frame(@271,Top,Object[#8]) full_frame(@314,{Top,Top,Top,Top,Object[#8]},{}) full_frame(@320,{Top,Top,Object[#386]},{}) full_frame(@336,{Object[#386]},{}) append_frame(@343,Top,Object[#8]) full_frame(@379,{Top,Top,Top,Object[#8]},{}) full_frame(@384,{Top,Object[#130]},{})
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    powermock

    solutionscore.com | 1 year ago
    java.lang.VerifyError: StackMapTable error: bad offset Exception Details: Location: edu/apollogrp/common/HandyTestBase.<clinit>()V @0: iconst_0 Reason: Invalid stackmap specification. Current Frame: bci: @188 flags: { } locals: { 'java/lang/StringBuilder', 'java/lang/String' } stack: { } Bytecode: 0000000: 03b3 042b 014b 0e48 014e 2a01 a500 082a 0000010: 4ea7 000a 1304 2db8 042f 4e2d 1304 3103 0000020: bd00 0813 0433 b804 3513 0437 b804 393a 0000030: 0419 04b2 043b a600 0ab8 043f 48a7 000c 0000040: 1904 c000 3cb6 0442 4827 1404 436b 8eb3 0000050: 0446 0000 0000 014b 014c 1304 47b8 0449 0000060: 03bd 0008 1304 4ab8 044c b804 4e4d 2cb2 0000070: 0450 a500 2f2c c101 4f99 0020 b804 5213 0000080: 0453 b804 5512 0801 b604 57b6 0459 01b6 0000090: 045b c001 824c a700 082c c001 824c a700 00000a0: 0bbb 0182 59b7 045d 4c2b 1304 5f4c 4b01 00000b0: 4d01 4e2a 01a5 0008 2a4e a700 0a13 0460 00000c0: b804 624e 2d13 0463 04bd 0008 5903 2b53 00000d0: 1304 64b8 0466 1304 67b8 0469 3a04 1904 00000e0: b204 6ba6 000c 2a2b b604 6d4d a700 0919 00000f0: 04c0 0182 4d2c b804 6f4c 4b01 4d01 4e2a 0000100: 01a5 0008 2a4e a700 0a13 0470 b804 724e 0000110: 2d13 0473 04bd 0008 5903 2b53 1304 74b8 0000120: 0476 1304 77b8 0479 3a04 1904 b204 7ba6 0000130: 000c 2a2b b604 7d4d a700 0919 04c0 0182 0000140: 4d2c 4b01 4c01 4d2a 01a5 0008 2a4d a700 0000150: 0a13 047e b804 804d 2c13 0481 03bd 0008 0000160: 1304 82b8 0484 1304 85b8 0487 4e2d b204 0000170: 89a6 000b 2ab6 048b 4ca7 0008 2dc0 0082 0000180: 4c2b b304 8db1 Stackmap Table: same_frame(@20) full_frame(@27,{Top,Top,Top,Object[#157]},{}) full_frame(@64,{Top,Top,Top,Top,Object[#8]},{}) full_frame(@73,{Top,Double},{}) full_frame(@153,{Top,Top,Object[#8]},{}) full_frame(@158,{Top,Object[#386]},{}) chop_frame(@161,2) append_frame(@169,Top,Object[#386]) full_frame(@188,{Object[#386],Object[#130]},{}) append_frame(@195,Top,Object[#8]) full_frame(@238,{Top,Top,Top,Top,Object[#8]},{}) full_frame(@244,{Top,Top,Object[#386]},{}) full_frame(@264,{Object[#386],Object[#130]},{}) append_frame(@271,Top,Object[#8]) full_frame(@314,{Top,Top,Top,Top,Object[#8]},{}) full_frame(@320,{Top,Top,Object[#386]},{}) full_frame(@336,{Object[#386]},{}) append_frame(@343,Top,Object[#8]) full_frame(@379,{Top,Top,Top,Object[#8]},{}) full_frame(@384,{Top,Object[#130]},{})
  6. 0

    PowerMock and Java 7 (Java 1.7)

    Google Groups | 5 years ago | Kevin Wong
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 40 in method com.xxx.orion.core.util.test.OrionTestCase.<init>()V at offset 26

    5 unregistered visitors
    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 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()
    2. Java RT
      Class.getMethods
      1. java.lang.Class.getDeclaredMethods0(Native Method)
      2. java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
      3. java.lang.Class.privateGetPublicMethods(Class.java:2651)
      4. java.lang.Class.getMethods(Class.java:1467)
      4 frames