java.lang.VerifyError: Expecting a stackmap frame at branch target 231
Exception Details:
Location:
com/hikvision/energy/gbmc/logManage/controller/LogInfoController.logList(Lcom/hikvision/energy/gbmc/logManage/vo/LogListReq;)Lcom/hikvision/energy/gcommon/common/response/CommonResponse; @60: ifne
Reason:
Expected stackmap frame at this location.
Bytecode:
0x0000000: 1100 0311 0034 b800 ebbb 0023 5904 b700
Stackmap Table:
append_frame(@240,Object[#35],Object[#115],Object[#115])
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getDeclaredConstructors(Class.java:2020)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
查找后发现,我使用的是jdk8,
在eclipse 选择 Windows -> Preferences -> Installed JREs.
然后选择默认的jre环境,点击edit,在Default Vm argument 填写一个参数
如果是jdk7:请填写:-XX:-UseSplitVerifier
如果是jdk8:请填写:-noverify