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包即可

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM