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

故障现象:有一个cxf项目在部署的时候经常出现,应用启动失败。
异常信息主要有两个,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

在这里插入图片描述

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

文章引用:https://www.cnblogs.com/suiyueqiannian/p/7066357.html

猜你喜欢

转载自blog.csdn.net/qq_36918149/article/details/82915888