Free Programming

我的生活在一行又一行的代码中前行........

 

解决eclipse+myeclipse的Processing Dirty Regions错误

(来自:http://www.javaeye.com/post/542981

 

我的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的插件入手来解决。

posted on 2008-09-02 09:54  sharewind  阅读(1209)  评论(0编辑  收藏  举报

导航