Eclipse 未处理的事件循环异常

发布于 2024-11-18 07:00:03 字数 6644 浏览 1 评论 0原文

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

未处理的事件循环异常

java.lang.Error:错误:无法 匹配输入 org.eclipse.wst.xml.core.internal.parser.XML10Names.zzScanError(XML10Names.java:473) 在 org.eclipse.wst.xml.core.internal.parser.XML10Names.isValidXML10Name(XML10Names.java:588) 在 org.eclipse.wst.xml.core.internal.parser.XML10Names.isValidXML10Name(XML10Names.java:271) 在 org.eclipse.wst.xml.core.internal.provisional.NameValidator.isValid(NameValidator.java:50) 在 org.eclipse.wst.xml.core.internal.document.DocumentImpl.isValidName(DocumentImpl.java:1015) 在 org.eclipse.wst.xml.core.internal.document.DocumentImpl.checkTagNameValidity(DocumentImpl.java:258) 在 org.eclipse.php.internal.core.documentModel.dom.DOMDocumentForPHP.createElement(DOMDocumentForPHP.java:44) 在 org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStartTag(XMLModelParser.java:1482) 在 org.eclipse.wst.xml.core.internal.document.XMLModelParser.insertStructuredDocumentRegion(XMLModelParser.java:1510) 在 org.eclipse.wst.xml.core.internal.document.XMLModelParser.replaceStructuredDocumentRegions(XMLModelParser.java:2354) 在 org.eclipse.wst.xml.core.internal.document.DOMModelImpl.handleRefresh(DOMModelImpl.java:524) 在 org.eclipse.wst.xml.core.internal.document.DOMModelImpl.nodesReplaced(DOMModelImpl.java:742) 在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:600) 在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1198) 在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1979) 在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423) 在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2408) 在 org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1) 在 org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:141) 在 org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 在 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) 在 org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7180) 在 org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7994) 在 org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2456) 在 org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5911) 在 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) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) 在 org.eclipse.swt.widgets.Widget.sendIMKeyEvent(Widget.java:1344) 在 org.eclipse.swt.widgets.Control.gtk_commit(Control.java:2840) 在 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) 在 org.eclipse.swt.internal.gtk.OS._gtk_im_context_filter_keypress(本机方法) org.eclipse.swt.internal.gtk.OS.gtk_im_context_filter_keypress(OS.java:7793) 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(本机 方法)在 org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8394) 在 org.eclipse.swt.widgets.Display.eventProc(Display.java:1245) 在 org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(本机 方法)在 org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2258) 在 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207) 在 org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) 在 org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) 在 org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) 在 org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) 在 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 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.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native 方法)在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:616) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1410)

eclipse.buildId=I20110613-1736 java.version=1.6.0_22 java.vendor=Sun Microsystems Inc. 引导加载程序 常量:OS=linux、ARCH=x86、WS=gtk、 NL=en_US 命令行参数:-os linux -ws gtk -arch x86

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.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

不知在何时 2024-11-25 07:00:03

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

旧解决方案(PDT 3.0.0):

谢谢 Valentin,我可以修复我的 Eclipse。对我来说,它从您的链接开始工作:

  1. Open 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. 现在 PDT 已从下载的 zip 更新

链接已更新,感谢 Daff!

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

OLD SOLUTION (PDT 3.0.0):

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

  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

Link updated, thanks to Daff!

〗斷ホ乔殘χμё〖 2024-11-25 07:00:03

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

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


编辑:我是如何修复它的在我的计算机上(我不建议您像我一样这样做):

https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/ 对我来说是: https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/166/artifact/build/N201107150957/

似乎有一种方法可以使用 pdt 更新 eclipse 插件-Update-.zip 文件解释如下从 Hudson 获取 Eclipse PDT 每晚构建 。我无法在我的计算机上做到这一点,而且我没有时间调查为什么它不起作用。我得到了另一个 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 在我的例子中)并将新的像旧的一样重命名。

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

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

It is a bug in pdt that seems to be fixed:
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/

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.

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...

说不完的你爱 2024-11-25 07:00:03

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

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

烙印 2024-11-25 07:00:03

如果有人仍在寻找这个,它就发生在我身上,并发现关闭“AMD gamesvolved”应用程序修复了它。.如果我再次打开它,它会发生,只需关闭它,如果你有它并尝试

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文