天天看點

java.lang.VerifyError

java.lang.VerifyError

Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem. 

後來在網上查到底這個錯誤是什麼意思呢?這個錯誤指的是類是沒有錯誤但是版本不統一,這讓我更困惑了,這是自己寫的一個類怎麼會有版本不統一的情況出現呢?

神啊,原來是ADT版本和jdk版本上的問題,導緻在導入第三方jar包時會出現這樣不明覺厲的錯誤,沒有人能解釋這到底是什麼問題!不能解釋啊!我的天!

調試網頁時候發現報這個錯誤:java.lang.VerifyError錯誤。

google了下,看網友們的評述感覺是的jar包的問題,于是仔細檢查自己的情況;

發現了個奇怪的地方,可能是自己不小心拖動了jar包 導緻重複了

後來再classpath裡面添加了個用到的包,删除了多餘的jar包

問題就解決了,呵呵 ok

問題描述:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

root cause

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.

google結果:

針對“java.lang.VerifyError”的錯誤原因,主要是因為jar包的版本問題導緻,可能是因為部署環境存在2套以上版本沖突的JDBC驅動程式部署在應用伺服器不同的lib目錄下,或者是jar包被替換了。

問題解決:

我的也是同樣問題,又是jar包出問題了,webapp目錄下和tomcat的lib目錄下jar包重複了,然後我将webapp目錄下的Jar包删除掉,問題暫時OK了

補充說明:

我的是tomcat/6.0.10

http://tinypig.iteye.com/blog/214442