Java.lang.VerifyError:Inconsistent Stackmap Frames at branch target 81

Source: Internet
Author: User
Tags throwable ticket

The following code is in the Java project:
@RequestMapping (value = "/getmxlist") @ResponseBodypublic map<string, object> getmxlist (HttpServletRequest req, Model model) throws Managerexception {String reporttype = Commonutil.getstrvalue (Req.getparameter ("Reporttype"), ""); Try (cachecontext context = new Cachecontext ()) {if (Reporttype.equals ("Shop")) {return Shopiteminvoicingreport (req, model, context);} else {return Iteminvoicingreport (req, model, context);}} catch (Managerexception e) {throw e;} catch (Exception e) {throw new Managerexception (e);} finally {String ticket = string Utils.isempty (Req.getparameter ("Tiket"))? "": String.valueof (Req.getparameter ("Tiket")); Stringutils.isnotempty (Ticket)) req.getsession (). removeattribute (ticket);}}
After you start the project in Eclipse, the package follows an error:
Exception Details:location:cn/wonhigh/retail/gms/web/controller/iteminvoicingreportcontroller.getmxlist (Ljavax/ Servlet/http/httpservletrequest; Lorg/springframework/ui/model;) Ljava/util/map; @81:aload_1 Reason:type Top (current frame, locals[9]) was not assignable to ' java/lang/string ' (stack map, locals[9] Current FRAME:BCI: @73 flags: {} Locals: {' Cn/wonhigh/retail/gms/web/controller/iteminvoicingreportcontroll Er ', ' javax/servlet/http/httpservletrequest ', ' Org/springframework/ui/model ', ' java/lang/string ', ' java/lang/ Throwable ', ' java/lang/throwable ', ' Cn/wonhigh/retail/mdm/api/util/cachecontext ', Top, ' Java/util/map '} stack: {inte GER} stackmap FRAME:BCI: @81 flags: {} Locals: {' Cn/wonhigh/retail/gms/web/controller/iteminvoicingreportcon Troller ', ' javax/servlet/http/httpservletrequest ', ' Org/springframework/ui/model ', ' java/lang/string ', ' java/lang/ Throwable ', ' java/lang/throwable ', ' Cn/wonhigh/retail/mdm/api/util/cachecontext ', Top, ' java/uTil/map ', ' java/lang/string '} stack: {} bytecode:0000000:1100 0457 2b12 7cb9 007e 0200 1233 b800 0000010:84 4e 013a 0401 3a05 bb00 8a59 b700 8c3a 0000020:062d 128d b600 8f99 004f 2a2b 2c19 06b6 0000030:0093 3a08 1906 c600 0819 06b6 0097 2b12 0000040:9ab9 007e 0200 b800 9c99 0008 1233 a700 0000050:0e2b 129a b900 7e02 00b8 00a2 3a09 190  9 0000060:b800 a69a 0010 2bb9 00a9 0100 1909 b900 0000070:ad02 0019 08b0 2a2b 2c19 06b6 00b2 3a08 0000080:1906 c600 0819 06b6 0097 2b12 9ab9 007e 0000090:0200 b800 9c99 0008 1233 a700 0e2b 129a 00000a0:b900 7e02 00b8 00A2 3a    1909 b800 a69a 00000b0:0010 2bb9 00a9 0100 1909 b900 ad02 0019 00000c0:08b0 3a04 1906 c600 0819 06b6 0097 1904 00000d0: bf3a 0519 04c7 000a 1905 3a04 a700 1419 00000e0: 0419 05b8 037d 9900 0a19 0419 05b6 00b5 00000f0: 1904 b  F3A 0419 04bf 3a04 bb00 2e59 1904 0000100:b700 bbbf 3a07 2b12 9ab9 007e 0200 b800 0000110:9c99 0008 1233 a700 0e2b 129a b900 7e02 0000120:00b8 00a2 3a09 1909 b800 a69a 0010 2bb9 0000130:00a9 0100 1909 b900 ad02 0019 07bf Exception Handler Table: 9] = handler:209 BCI [+] = handler:243 BCI [118, 138] = handler:243 BCI [194, 243] = hand ler:243 BCI [+] = handler:248 BCI [118, 138] + handler:248 BCI [194, 243] = = handler:248 b    CI [+] = handler:260 BCI [118, 138] = handler:260 BCI [194, 260] = handler:260 Stackmap Table: Full_frame (@62,{object[#1],object[#127],object[#106],object[#88],object[#182],object[#182],object[#138],top, object[#194]},{}) Append_frame (@81,object[#88]) same_locals_1_stack_item_frame (@92,object[#88]) chop_frame (@115,1 ) Chop_frame (@118,2) append_frame (@138,top,object[#194]) append_frame (@157,object[#88]) same_locals_1_stack_it Em_frame (@168,object[#88]) chop_FRAME (@191,1) full_frame (@194,{object[#1],object[#127],object[#106],object[#88],object[#182],object[#182], object[#138]},{object[#182]}) chop_frame (@206,1) same_locals_1_stack_item_frame (@209,object[#182]) same_frame (@22 3) Same_frame (@240) full_frame (@243,{object[#1],object[#127],object[#106],object[#88]},{object[#46]}) same_locals _1_stack_item_frame (@248,object[#80]) same_locals_1_stack_item_frame (@260,object[#182]) full_frame (@281,{Object[ #1],object[#127],object[#106],object[#88],top,top,top,object[#182]},{}) same_locals_1_stack_item_frame (@292, object[#88]) same_frame (@315) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1455) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:519) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (Abstractautowirecapablebeanfactory.java:456) at Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject ( abstractbeanfactory.java:294) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:225) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:291) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:607) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:925) at Org.springframework.context.support.abstractapplicationcontext.__refresh (abstractapplicationcontext.java:472) at Org.springframework.context.support.AbstractApplicationContext.refresh ( Abstractapplicationcontext.java) at Org.springframework.web.servlet.FrameworkServlet.Configureandrefreshwebapplicationcontext (frameworkservlet.java:631) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext (frameworkservlet.java:588) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext (frameworkservlet.java:645) at Org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext (frameworkservlet.java:508) at Org.springframework.web.servlet.FrameworkServlet.initServletBean (frameworkservlet.java:449) at Org.springframework.web.servlet.HttpServletBean.init (httpservletbean.java:133) at Javax.servlet.GenericServlet.init (genericservlet.java:158) at Org.apache.catalina.core.StandardWrapper.initServlet (standardwrapper.java:1284) at Org.apache.catalina.core.StandardWrapper.loadServlet (standardwrapper.java:1197) at Org.apache.catalina.core.StandardWrapper.load (standardwrapper.java:1087) at Org.apache.catalina.core.StandardContext.loadOnStartup (standardcontext.java:5231) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5518) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1575) at Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1565) at Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker ( threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (ThreadPoolExecutor.java:615) At Java.lang.Thread.run (thread.java:745) caused by:java.lang.VerifyError:Inconsistent stackmap frames at branch target 81Exception Details:location:cn/wonhigh/retail/gms/web/controller/iteminvoicingreportcontroller.getmxlist ( Ljavax/servlet/http/httpservletrequest; Lorg/springframework/ui/model;) Ljava/util/map; @81:aload_1 Reason:type Top (current frame, locals[9]) was not assignable to ' java/lang/string ' (stack map, locals[9] Current FRAME:BCI: @73 flags: {} Locals: {' cn/wonhigh/retail/Gms/web/controller/iteminvoicingreportcontroller ', ' javax/servlet/http/httpservletrequest ', ' org/springframework /ui/model ', ' java/lang/string ', ' java/lang/throwable ', ' java/lang/throwable ', ' cn/wonhigh/retail/mdm/api/util/ Cachecontext ', top, ' Java/util/map '} stack: {integer} stackmap FRAME:BCI: @81 flags: {} Locals: {' Cn/wo Nhigh/retail/gms/web/controller/iteminvoicingreportcontroller ', ' javax/servlet/http/httpservletrequest ', ' org/ Springframework/ui/model ', ' Java/lan October 21, 2015 11:26:11 am org.apache.catalina.core.ApplicationContext Log
Resources:

Http://stackoverflow.com/questions/12774672/java-7-inconsistent-stackmap-frames-need-help-understanding-why-solution-wor

Http://stackoverflow.com/questions/7970622/java-7-jvm-verifyerror-in-eclipse

https://bugs.eclipse.org/bugs/show_bug.cgi?id=353467

Https://bugs.eclipse.org/bugs/show_bug.cgi?id=353467#c3

Http://stackoverflow.com/questions/8079504/akka-actors-fails-verifyerror-inconsistent-stackmap-frames-at-branch-target

Http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

Workaround:

Plus VM options:-xx:-usesplitverifier

    

Cause Analysis:

  

Java.lang.VerifyError:Inconsistent Stackmap Frames at branch target 81

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.