今天部署项目时MyEclipse包如下错误所有的web项目部署启动时都会报如下错误Problemsoccurredwheninvokingcodefromplug-in:"org.eclipse.ui.workbench
问题原因:工作空间中的tomcat部署文件.metdata出现问题
解决方法:重新生成新的的.metdata文件1重建工作空间文件夹2删除当前工作空间.metdata文件重新打开MyEclipse会自动生成.metdata文件(导入工作空间的所有的工程)
具体报错xinxi!ENTRYorg.eclipse.ui.workbench422013-10-1510:24:17.103!MESSAGEProblemsoccurredwheninvokingcodefromplug-in:"org.eclipse.ui.workbench".!STACK0java.lang.NullPointerExceptionatorg.eclipse.atf.mozilla.ide.debug.ui.internal.action.BreakOnDebuggerKeywordMenuDelegate.selectio
nChanged(BreakOnDebuggerKeywordMenuDelegate.java:34)atorg.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)atorg.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277)atorg.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:289)atorg.eclipse.ui.part.PageBookView$5.run(PageBookView.java:256)atorg.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)atorg.eclipse.core.runtime.Platform.run(Platform.java:888)atorg.eclipse.ui.part.PageBookView$SelectionManager.selectionChanged
(PageBookView.java:254)atorg.eclipse.ui.part.PageBookView$SelectionProvider.selectionChanged
(PageBookView.java:320)atorg.eclipse.ui.part.PageBookView.pageSelectionChanged(PageBookView.java:897)atorg.eclipse.ui.part.PageBookView.access$2(PageBookView.java:892)atorg.eclipse.ui.part.PageBookView$2.selectionChanged(PageBookView.java:164)atorg.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)atorg.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)atorg.eclipse.core.runtime.Platform.run(Platform.java:888)atorg.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)atorg.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)atorg.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)atorg.eclipse.jface.viewers.StructuredViewer.updateSelection
(StructuredViewer.java:2132)atorg.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1669)atorg.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1124)atorg.eclipse.debug.internal.ui.viewers.model.InternalTreeModelViewer.setSelection
(InternalTreeModelViewer.java:1674)atorg.eclipse.debug.internal.ui.viewers.model.InternalTreeModelViewer.setSelection
(InternalTreeModelViewer.java:1689)atorg.eclipse.debug.internal.ui.viewers.model.TreeModelContentProvider.handleSelect
(TreeModelContentProvider.java:356)atorg.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes
(ModelContentProvider.java:947)atorg.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes
(ModelContentProvider.java:953)atorg.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes
(ModelContentProvider.java:953)atorg.eclipse.debug.internal.ui.viewers.model.ModelContentProvider$9.runInUIThread
(ModelContentProvider.java:862)atorg.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)atorg.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)atorg.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)atorg.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)atorg.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)atorg.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)atorg.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)atorg.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)atorg.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)atorg.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)atorg.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)atorg.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)atorg.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)atorg.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)atorg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)atorg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)atorg.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)atorg.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)atorg.eclipse.equinox.launcher.Main.basicRun(Main.java:514)atorg.eclipse.equinox.launcher.Main.run(Main.java:1311)