異常信息主要有兩個,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包即可