Eclipse報錯java.lang.VerifyError處理

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

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

查找後發現,我使用的是jdk8,eclipse

在eclipse  選擇   Windows -> Preferences -> Installed JREs. this

而後選擇默認的jre環境,點擊edit,在Default Vm argument 填寫一個參數.net

若是是jdk7:請填寫:-XX:-UseSplitVerifiercode

若是是jdk8:請填寫:-noverifyip

相關文章
相關標籤/搜索