导入eclipse插件项目报错,整个插件依赖项,全都消失了

时间:2022-02-02 10:47:22
长时间没动那个eclipse插件项目,今天想着改点东西,打开eclipse之后,有三个插件项目,其中有两个全部找不到插件依赖项,在类文件里面引入的eclipse的相关包全部报错,另一个插件项目正常,尝试切换工作区间和重装eclipse,导入出问题的插件项目问题依然存在,导入没问题的插件项目则正常,eclipse报错信息如图:
见没有添加上插件依赖项,我就在plugin.xml文件里面将原本的插件依赖项除去,重新添加,添加之后保存,不能保存,保存会出现错误
eclipse.buildId=M20110210-1200
java.version=1.6.0_29
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Framework arguments:  -product org.eclipse.epp.package.rcp.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product

!ENTRY jp.gr.java_conf.ussiy.app.propedit 1 0 2013-10-23 15:32:48.421
!MESSAGE properties loading 'com.wy.promotion'

!ENTRY org.eclipse.jdt.core 4 2 2013-10-23 15:33:06.250
!MESSAGE 从插件调用代码时出现问题:“org.eclipse.jdt.core”。
!STACK 0
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85)
at org.eclipse.pde.internal.core.plugin.PluginHandler.startElement(PluginHandler.java:60)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at org.eclipse.pde.internal.core.plugin.AbstractExtensionsModel.load(AbstractExtensionsModel.java:85)
at org.eclipse.pde.internal.core.WorkspaceModelManager.loadModel(WorkspaceModelManager.java:247)
at org.eclipse.pde.internal.core.WorkspacePluginModelManager.createModel(WorkspacePluginModelManager.java:78)
at org.eclipse.pde.internal.core.WorkspacePluginModelManager.handleBundleManifestDelta(WorkspacePluginModelManager.java:286)
at org.eclipse.pde.internal.core.WorkspacePluginModelManager.handleFileDelta(WorkspacePluginModelManager.java:133)
at org.eclipse.pde.internal.core.WorkspaceModelManager.visit(WorkspaceModelManager.java:160)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
at org.eclipse.pde.internal.core.WorkspaceModelManager.handleResourceDelta(WorkspaceModelManager.java:125)
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.jdt.core 4 4 2013-10-23 15:33:06.265
!MESSAGE Exception occurred in listener of pre Java resource change notification
!STACK 0
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85)
at org.eclipse.pde.internal.core.plugin.PluginHandler.startElement(PluginHandler.java:60)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
at org.eclipse.pde.internal.core.plugin.AbstractExtensionsModel.load(AbstractExtensionsModel.java:85)
at org.eclipse.pde.internal.core.WorkspaceModelManager.loadModel(WorkspaceModelManager.java:247)
at org.eclipse.pde.internal.core.WorkspacePluginModelManager.createModel(WorkspacePluginModelManager.java:78)
at org.eclipse.pde.internal.core.WorkspacePluginModelManager.handleBundleManifestDelta(WorkspacePluginModelManager.java:286)
at org.eclipse.pde.internal.core.WorkspacePluginModelManager.handleFileDelta(WorkspacePluginModelManager.java:133)
at org.eclipse.pde.internal.core.WorkspaceModelManager.visit(WorkspaceModelManager.java:160)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
at org.eclipse.pde.internal.core.WorkspaceModelManager.handleResourceDelta(WorkspaceModelManager.java:125)
at org.eclipse.pde.internal.core.WorkspaceModelManager.resourceChanged(WorkspaceModelManager.java:113)
at org.eclipse.jdt.internal.core.DeltaProcessingState$1.run(DeltaProcessingState.java:465)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:460)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY jp.gr.java_conf.ussiy.app.propedit 1 0 2013-10-23 15:33:06.375
!MESSAGE properties loading 'com.wy.promotion'

!ENTRY org.eclipse.core.resources 4 2 2013-10-23 15:33:13.375
!MESSAGE 从插件调用代码时出现问题:“org.eclipse.core.resources”。
!STACK 0
java.lang.NullPointerException
at org.eclipse.pde.internal.core.builders.ExtensionsErrorReporter.validateInternalExtensionAttribute(ExtensionsErrorReporter.java:216)
at org.eclipse.pde.internal.core.builders.ExtensionsErrorReporter.validateElement(ExtensionsErrorReporter.java:189)
at org.eclipse.pde.internal.core.builders.ExtensionsErrorReporter.validateExtension(ExtensionsErrorReporter.java:110)
at org.eclipse.pde.internal.core.builders.ExtensionsErrorReporter.validateContent(ExtensionsErrorReporter.java:75)
at org.eclipse.pde.internal.core.builders.ManifestConsistencyChecker.validateFiles(ManifestConsistencyChecker.java:298)
at org.eclipse.pde.internal.core.builders.ManifestConsistencyChecker.validateProject(ManifestConsistencyChecker.java:223)
at org.eclipse.pde.internal.core.builders.ManifestConsistencyChecker.build(ManifestConsistencyChecker.java:157)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.resources 4 75 2013-10-23 15:33:13.406
!MESSAGE 在构建期间出错。
!SUBENTRY 1 org.eclipse.pde.core 4 75 2013-10-23 15:33:13.406
!MESSAGE 在项目“com.wy.promotion”中运行构建器“插件清单构建器”时出错。
!STACK 0
java.lang.NullPointerException
at org.eclipse.pde.internal.core.builders.ExtensionsErrorReporter.validateInternalExtensionAttribute(ExtensionsErrorReporter.java:216)
at org.eclipse.pde.internal.core.builders.ExtensionsErrorReporter.validateElement(ExtensionsErrorReporter.java:189)
at org.eclipse.pde.internal.core.builders.ExtensionsErrorReporter.validateExtension(ExtensionsErrorReporter.java:110)

3 个解决方案

#1


我也倒霉滩上了,我更新了eclipse,然后好像是显示要更新插件,不过更新老慢啦,就点了取消

然后重启eclipse时,什么插件都没拉,就留拉几个,我也不认识,然后一启动就报像你这样的错,一大堆,卸载了重装也没能解决,也不能安装新插件,求大神!

#2


从来不更新Eclipse,只是不停的换工作空间。。

#3


我这也不知道,到底是eclipse的问题还是那个插件项目的问题,我新弄一份eclipse,那个项目导入前,可以正常新建插件项目,那个项目一旦导入之后,新建项目都会出现和那个插件项目一样的问题,构建时出错,引入不了任何插件依赖项的包,哪位有好的解决方法啊

#1


我也倒霉滩上了,我更新了eclipse,然后好像是显示要更新插件,不过更新老慢啦,就点了取消

然后重启eclipse时,什么插件都没拉,就留拉几个,我也不认识,然后一启动就报像你这样的错,一大堆,卸载了重装也没能解决,也不能安装新插件,求大神!

#2


从来不更新Eclipse,只是不停的换工作空间。。

#3


我这也不知道,到底是eclipse的问题还是那个插件项目的问题,我新弄一份eclipse,那个项目导入前,可以正常新建插件项目,那个项目一旦导入之后,新建项目都会出现和那个插件项目一样的问题,构建时出错,引入不了任何插件依赖项的包,哪位有好的解决方法啊