play framework 提示:VerifyError错误

12 篇文章 0 订阅

环境

jdk:1.7
play framework:1.2.7

前言

最近要改一个web项目;像往常一样,去gitlab中去拉取项目;
之后执行play eclipsify生成eclipse项目的格式,之后导入;
在之后,就是启动项目,并且访问localhost:9998,结果就报错:

Oops: VerifyError
An unexpected error occured caused by exception VerifyError: Expecting a stack map frame Exception Details:   Location:     controllers/adminManagement/Secure$Security.authentify(Ljava/lang/String;Ljava/lang/String;)Z @33: istore_3   Reason:     Error exists in the bytecode   Bytecode:     0000000: b800 7d12 782b b800 7a12 712a b800 77bb     0000010: 0010 59b7 0012 bf3a 0403 3eb8 0080 1904     0000020: bf3e b800 821d ac                         Exception Handler Table:     bci [0, 23] => handler: 23   Stackmap Table:     same_locals_1_stack_item_frame(@23,Object[#55]) 


play.exceptions.UnexpectedException: Unexpected Error
    at play.Invoker$Invocation.onException(Invoker.java:244)
    at play.Invoker$Invocation.run(Invoker.java:286)
    at Invocation.HTTP Request(Play!)
Caused by: java.lang.VerifyError: Expecting a stack map frame
Exception Details:
  Location:
    controllers/adminManagement/Secure$Security.authentify(Ljava/lang/String;Ljava/lang/String;)Z @33: istore_3
  Reason:
    Error exists in the bytecode
  Bytecode:
    0000000: b800 7d12 782b b800 7a12 712a b800 77bb
    0000010: 0010 59b7 0012 bf3a 0403 3eb8 0080 1904
    0000020: bf3e b800 821d ac                      
  Exception Handler Table:
    bci [0, 23] => handler: 23
  Stackmap Table:
    same_locals_1_stack_item_frame(@23,Object[#55])

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
    at java.lang.Class.getDeclaredMethods(Class.java:1855)
    at play.utils.JavaWithCaching.findAllAnnotatedMethods(Java.java:528)
    at play.utils.JavaWithCaching.findAllAnnotatedMethods(Java.java:535)
    at play.utils.JavaWithCaching.findAllAnnotatedMethods(Java.java:498)
    at play.utils.Java.findAllAnnotatedMethods(Java.java:277)
    at play.mvc.ActionInvoker.handleFinallies(ActionInvoker.java:390)
    at play.mvc.ActionInvoker.invoke(ActionInvoker.java:263)
    ... 1 more

解决方法

经过查询是因为 Any tool that modifies bytecode in a version 51 classfile must be sure to update the stackmap information to be consistent with the bytecode in order to pass verification.
中文意思就是: JDK7 引入版本为51的字节码规范,使用了严格的类型检查器,任何工具修改了字节码的,都需要更新stackmap,但是jws修改了字节码,而没有更新

解决方法:启动参数添加 -XX:-UseSplitVerifier

具体放置位置参考这篇,讲解java7、8添加的参数:java.lang.VerifyError: Expecting a stack map frame

参考地址:

http://blog.csdn.net/lili625/article/details/49427635

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

山鬼谣me

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值