java.lang.verifyerror:bad type on orerand stack

來源:互聯網
上載者:User

標籤:err   測試   framework   導致   obj   cli   版本問題   排查   unit   

問題:

junit測試的時候報這個錯:java.lang.verifyerror:bad type on orerand stack

 

原因:(多種,自行逐個排查)

1.class not find 引起的,看這個代碼裡面引用到的class檔案是否都存在,

2.jar包的版本問題導致,可能是因為部署環境存在2套以上版本衝突的JDBC驅動程式部署在應用伺服器不同的lib目錄下,或者是jar包被替換了。

3.引入Redis了的話,如果使用Maven,那就檢查依賴項,並且,注意版本,一般都是版本問題

4.使用了JRebel Eclipse外掛程式,也是版本問題,

5.編譯器eclipes的問題,關了重新開啟後,問題消失.(這個是我的解決方案,這個問題搞了我半天結果重啟eclipes就好了0v0)

 

參考:

https://jira.spring.io/browse/SPR-12176

https://stackoverflow.com/questions/22704518/jedispoolconfig-is-not-assignable-to-genericobjectpoolconfig

https://stackoverflow.com/questions/23082038/type-org-springframework-http-mediatype-current-frame-stack1-is-not-assig

https://www.cnblogs.com/tv151579/p/6139646.html

https://www.cnblogs.com/demingblog/p/5309864.html

https://www.cnblogs.com/softidea/p/5199585.html

 

個人學習筆記

java.lang.verifyerror:bad type on orerand stack

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.