天天看點

An internal error occurred during: "JSP Semantics Validator (JSF)"

我的Eclipse 3.3.2 + MyEclipse 6.0.1在打開JSP檔案時出現以下錯誤:

An internal error occurred during: "Processing Dirty Regions".

org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

An internal error occurred during: "JSP Content Validator".

org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

An internal error occurred during: "JSP Semantics Validator (JSF)".

org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

An internal error occurred during: "JSP Syntax Validator".

org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

   這是一些網上的解決方案: 一. 這是由于插件org.eclipse.wst.sse.ui所緻,myeclipse中的這個插件是修改過的zmyeclipse版本(在 myeclipse安裝目錄/eclipse/plugins中),但之後自動更新功能下載下傳了更新版本的未修改版插件(在原eclipse的plugin 中),是以myeclipse據版本号判斷加載了更新的插件。

但myeclipse的運作依賴修改版本的插件添加的一些功能,可是新的插件未包含這些功能。

如錯誤中出現的org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper.class,其實在未修改版本中根本不存在這個類,是以出錯。

解決方案:将原eclipse中plugins中的org.eclipse.wst.sse.ui_1.x.xxxxxxx.jar挪到其他地方。

二.

有更好的解決方法

myeclips中,到Help -> Software Updates -> Manage Configuration

展開後有兩項,一項是原有eclipse,一項是myeclipse,展開原有eclipse,

右鍵選中Web Standard Tools(WST)xxx那一項,disable,重新開機myeclipse

我的解決方法:

但在我的原eclipse中根本找不到上面所說的那個檔案,我于是懷疑是我安裝的其他插件的問題,終于我找到了問題的所在,原來是我的JBPM流程設計器插件和myeclipse插件産生了沖突的問題,根據上面所說的解決方法,我認為myeclipse不但會和eclipse本身産生沖突,還會和eclipse安裝的其他插件産生問題,我在我安裝的所有插件的目錄中查找org.eclipse.wst.sse.ui這個關鍵字,結果在JBPM流程設計器的plugins目錄中找到了org.eclipse.wst.sse.ui_1.0.305.v200802142230.jar這樣一個檔案,是以我懷疑是這個檔案搞得怪,我把該檔案移到其他地方,并把eclipse的configuration目錄下除config.ini檔案外全部删掉,這樣可以讓eclipse回複到初始狀态,重新啟動eclipse,打開JSP檔案看看,終于可以了,eclipse不在報錯,完全正常。

通過這個解決過程,我明白了eclipse的一些原理,eclipse的插件會和eclipse本身産生沖突,而且eclipse的插件之間也會互相産生沖突,eclipse插件總是會啟用最新更新下載下傳的插件類,這樣就會産生一個問題,其他的插件會不會相容這個更新的插件類。從這個解決過程我也明白了以後出現類似的問題,可以從安裝的eclipse的插件入手來解決。

繼續閱讀