Eclipse 未处理的事件循环异常

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6554458/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:16:48  来源:igfitidea点击:

Eclipse Unhandled event loop exception

eclipseeclipse-pdt

提问by Mark

Im getting an exception in my eclipse indigo - im using the PDT plugin as well.. any ideas? When i code the lines start acting funny, disappearing, then reappearing.

我的 eclipse indigo 出现异常 - 我也在使用 PDT 插件......有什么想法吗?当我编写代码时,线条开始变得有趣,消失,然后重新出现。

Unhandled event loop exception

java.lang.Error: Error: could not match input at org.eclipse.wst.xml.core.internal.parser.XML10Names.zzScanError(XML10Names.java:473) at org.eclipse.wst.xml.core.internal.parser.XML10Names.isValidXML10Name(XML10Names.java:588) at org.eclipse.wst.xml.core.internal.parser.XML10Names.isValidXML10Name(XML10Names.java:271) at org.eclipse.wst.xml.core.internal.provisional.NameValidator.isValid(NameValidator.java:50) at org.eclipse.wst.xml.core.internal.document.DocumentImpl.isValidName(DocumentImpl.java:1015) at org.eclipse.wst.xml.core.internal.document.DocumentImpl.checkTagNameValidity(DocumentImpl.java:258) at org.eclipse.php.internal.core.documentModel.dom.DOMDocumentForPHP.createElement(DOMDocumentForPHP.java:44) at org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStartTag(XMLModelParser.java:1482) at org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStructuredDocumentRegion(XMLModelParser.java:1510) at org.eclipse.wst.xml.core.internal.document.XMLModelParser.replaceStructuredDocumentRegions(XMLModelParser.java:2354) at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.handleRefresh(DOMModelImpl.java:524) at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.nodesReplaced(DOMModelImpl.java:742) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:600) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1198) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1979) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2408) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:141) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144) at org.eclipse.wst.sse.ui.internal.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:1187) at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7180) at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7994) at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2456) at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5911) at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5941) at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5635) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) at org.eclipse.swt.widgets.Widget.sendIMKeyEvent(Widget.java:1344) at org.eclipse.swt.widgets.Control.gtk_commit(Control.java:2840) at org.eclipse.swt.widgets.Canvas.gtk_commit(Canvas.java:160) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1733) at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408) at org.eclipse.swt.internal.gtk.OS._gtk_im_context_filter_keypress(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_im_context_filter_keypress(OS.java:7793) at org.eclipse.swt.widgets.Control.filterKey(Control.java:2250) at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3012) at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743) at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408) at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8394) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1245) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2258) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

eclipse.buildId=I20110613-1736 java.version=1.6.0_22 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86

未处理的事件循环异常

java.lang.Error:错误:无法匹配 org.eclipse.wst.xml.core.internal 处的 org.eclipse.wst.xml.core.internal.parser.XML10Names.zzScanError(XML10Names.java:473) 处的输入。 parser.XML10Names.isValidXML10Name(XML10Names.java:588) 在 org.eclipse.wst.xml.core.internal.parser.XML10Names.isValidXML10Name(XML10Names.java:271) 在 org.eclipse.wst.xml.core.internal。 org.eclipse.wst.xml.core.internal.document.DocumentImpl.isValidName(DocumentImpl.java:1015) at org.eclipse.wst.xml.core.internal 上的临时.NameValidator.isValid(NameValidator.java:50)。 document.DocumentImpl.checkTagNameValidity(DocumentImpl.java:258) at org.eclipse.php.internal.core.documentModel.dom.DOMDocumentForPHP.createElement(DOMDocumentForPHP.java:44) at org.eclipse.wst.xml.core.internal。文档.XMLModelParser。insertStartTag(XMLModelParser.java:1482) at org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStructuredDocumentRegion(XMLModelParser.java:1510) at org.eclipse.wst.xml.core.internal.document.XMLModelParser。在 org.eclipse.wst.xml.core.internal.document.DOMModelImpl.handleRefresh(DOMModelImpl.java:524) 在 org.eclipse.wst.xml.core.internal.document.DOMModelImpl 替换StructuredDocumentRegions(XMLModelParser.java:2354)。 nodesReplaced(DOMModelImpl.java:742) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:600) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument。 fireStructuredDocumentEvent(BasicStructuredDocument.java:1198) 在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument。internalReplaceText(BasicStructuredDocument.java:1979) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument replaceText(BasicStructuredDocument.java:2408) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument $3.run(JobSafeStructuredDocument.java:141) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)在 org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144) 在 org.eclipse.wst.sse.ui.internal。StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:1187) at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7180) at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7994) at org .eclipse.swt.custom.StyledText.doContent(StyledText.java:2456) at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5911) at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText .java:5941) 在 org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5635) 在 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在 org.eclipse.swt .widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) ) 在 org.eclipse.swt。widgets.Widget.sendIMKeyEvent(Widget.java:1344) at org.eclipse.swt.widgets.Control.gtk_commit(Control.java:2840) at org.eclipse.swt.widgets.Canvas.gtk_commit(Canvas.java:160)在 org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1733) 在 org.eclipse.swt.widgets.Control.windowProc(Control.java:5016) 在 org.eclipse.swt.widgets.Display.windowProc (Display.java:4408) at org.eclipse.swt.internal.gtk.OS._gtk_im_context_filter_keypress(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_im_context_filter_keypress(OS.java:7793) at org.eclipse .swt.widgets.Control.filterKey(Control.java:2250) 在 org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3012) 在 org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java :734) 在 org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743) 在 org.eclipse.swt.widgets.Control.windowProc(Control.java:5016) 在 org.eclipse.swt.widgets.Display.windowProc(Display.java:4408) 在 org.eclipse.swt.internal .gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8394) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1245)在 org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) 在 org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2258) 在 org.eclipse.swt.widgets.Display。 readAndDispatch(Display.java:3207) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse .ui.internal.Workbench.access$4(Workbench.java:2494) 在 org.eclipse.ui。internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java) :667) 在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 在 org.eclipse.equinox。 internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在 org.eclipse.core.runtime.internal.adaptor。位于 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 的 EclipseAppLauncher.start(EclipseAppLauncher.java:79) 位于 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang. .reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) ) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1410)eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.爪哇:1410)eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.爪哇:1410)

eclipse.buildId=I20110613-1736 java.version=1.6.0_22 java.vendor=Sun Microsystems Inc. BootLoader 常量:OS=linux, ARCH=x86, WS=gtk, NL=en_US 命令行参数:-os linux -ws gtk -arch x86

回答by sieppl

NEW SOLUTION: There is new PDT Indigo bundle (3.0.2) which runs fine for me, out-of-the-box: http://code.google.com/p/zend-sdk/downloads/list

新解决方案:有新的 PDT Indigo 包 (3.0.2) 对我来说运行良好,开箱即用:http: //code.google.com/p/zend-sdk/downloads/list

OLD SOLUTION (PDT 3.0.0):

旧解决方案(PDT 3.0.0):

Thank you Valentin, I could fix my Eclipse. For me it worked from your link like that:

谢谢瓦伦丁,我可以修复我的 Eclipse。对我来说,它是通过你的链接工作的:

  1. Open https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/lastStableBuild/artifact/build/
  2. Click on build number N*
  3. Download pdt-Update-N*.zip
  4. In Eclipse goto "Install New Software"
  5. Create a new site with archive and choose the downloaded zip
  6. Now PDT is updated from the downloaded zip
  1. 打开https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/lastStableBuild/artifact/build/
  2. 单击内部版本号 N*
  3. 下载 pdt-Update-N*.zip
  4. 在 Eclipse 中转到“安装新软件”
  5. 使用存档创建一个新站点并选择下载的 zip
  6. 现在从下载的 zip 更新 PDT

Link updated, thanks to Daff!

链接已更新,感谢 Daff!

回答by Valentin Tutu

It is a bug in pdt that seems to be fixed: https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=350139

这是 pdt 中的一个错误,似乎已修复:https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=350139

(I know I'm answering pretty late, but it will help other people that come from google)

(我知道我回答得很晚,但它会帮助来自谷歌的其他人)



edit: how I fixed it on my computer (and I don't recommend you to do it like me):

编辑:我是如何在我的电脑上修复它的(我不建议你像我一样这样做):

Got the latest stable nightly build of pdt from https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/which for me was: https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/166/artifact/build/N201107150957/

https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/获得了 pdt 的最新稳定夜间版本,对我来说是:https: //hudson.eclipse.org/hudson/job/ cbi-pdt-3.0-indigo/166/artifact/build/N201107150957/

There seems to be a way to update eclipse plugins by using pdt-Update-.zip files explained here Getting Eclipse PDT nightly build from Hudson. I couldn't do that on my computer and I didn't had time to investigate why it didn't worked. I got the other zip file (pdt-SDK-.zip), removed the old plugins from eclipse library directory and put the new ones instead. It didn't work, the PHP perspective was nowhere to be found after that. So, I did a dirty hack: took org.eclipse.php.core_3.0.0.v201107150957.jar from the archive, removed the old one from the eclipse library directory (org.eclipse.php.core_3.0.0.v20110516-1100.jar in my case) and renamed the new one like the old one.

似乎有一种方法可以通过使用此处解释的 pdt-Update-.zip文件来更新 Eclipse 插件,Getting Eclipse PDT nightly build from Hudson我不能在我的电脑上这样做,我也没有时间去调查为什么它不起作用。我得到了另一个 zip 文件(pdt-SDK-.zip),从 eclipse 库目录中删除了旧插件,并把新插件代替。它没有用,之后就再也找不到 PHP 透视图了。所以,我做了一个肮脏的黑客:从存档中取出 org.eclipse.php.core_3.0.0.v201107150957.jar,从 eclipse 库目录中删除旧的(org.eclipse.php.core_3.0.0.v20110516-1100.jar)。 jar 在我的情况下)并将新的重命名为旧的。

I am aware that this may break things and I don't recommend to other people to do that unless they do it as a temporary hackish fix :-)

我知道这可能会破坏事情,我不建议其他人这样做,除非他们将其作为临时黑客修复:-)

I should have tried PDT 2 though...

不过我应该尝试过 PDT 2...

回答by riserice78

Cleaning up my Available Software Sitespreferences (Help>Install New Software), then updating Eclipse again (Help>Check for Updates) removed this error for me.

清理我的Available Software Sites首选项(帮助>安装新软件),然后再次更新 Eclipse(帮助>检查更新)为我消除了这个错误。

回答by Chapi

If anyone still looking for this, it just happened to me, and found out that closing "AMD gaming evolved" application fixed it.. If I open it again it happens, just close that if you have it and try

如果有人还在寻找这个,它只是发生在我身上,并发现关闭“AMD游戏进化”应用程序修复了它。如果我再次打开它,它会发生,如果你有它并尝试关闭它