cxf 整合 spring 时 java.lang.VerifyError异常

异常信息主要有两个,Falling off the end of the code 和 illegal instruction found at offset 1:

java.lang.VerifyError: (class: xxx/webservice/jaxws_asm/DoService, method: getRequest signature: ()Lxxx/service/webservice/Request;) Falling off the end of the code
java.lang.verifyerror: (class:xxxxxx ;)v) illegal instruction found at offset 1

 

经反复查找资料发现最终是asm jar包冲突导致的。直接通过maven进行依赖分析:

在控制台会输出一堆依赖信息,ctrl + f 查找 asm

我这里主要是因为集成了shiro , shiro中有asm包 和 cxf 中的asm包冲突了。排除掉shiro中的asm包即可。假如是因为集成其他框架导致的,同理排除掉框架中的asm包即可

 

posted @ 2017-06-22 17:51  岁月千年  阅读(2104)  评论(0编辑  收藏  举报