【问题标题】:Unhandled event loop exception when I open a JSP file in eclipse helios当我在 eclipse helios 中打开 JSP 文件时出现未处理的事件循环异常
【发布时间】:2012-10-10 06:01:00
【问题描述】:

我想在 Eclipse 中生成 Crystal Reports,我最近为此下载了 Crystal Reports 2.0 for eclipse。我正在使用 eclipse-jee-helios-SR2-win32 (3.6) 版本和 Tomcat v5.5 服务器版本。

我可以从 Crystal Report 文件 (.rpt) 生成 JSP 文件,如 in this PDF 所示。但问题是当我打开它时。除文本编辑器外,任何编辑器都无法打开它。

与其他编辑一起打开时出现以下错误:

Message:

未处理的事件循环异常

Exception Stack Trace:

java.lang.NoSuchMethodError: org.eclipse.jst.jsp.ui.internal.contentassist.JSPStructuredContentAssistProcessor.setAutoActivationDelay(I)V 在 org.eclipse.jst.jsp.ui.internal.contentassist.JSPStructuredContentAssistProcessor.updateAutoActivationDelay(JSPStructuredContentAssistProcessor.java:114) 在 org.eclipse.jst.jsp.ui.internal.contentassist.JSPStructuredContentAssistProcessor.(JSPStructuredContentAssistProcessor.java:73) 在 org.eclipse.jst.jsp.ui.StructuredTextViewerConfigurationJSP.getContentAssistProcessors(StructuredTextViewerConfigurationJSP.java:189) 在 org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration.getContentAssistant(StructuredTextViewerConfiguration.java:291) 在 org.eclipse.wst.sse.ui.internal.StructuredTextViewer.configure(StructuredTextViewer.java:215) 在 org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3250) 在 org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53) 在 org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:432) 在 org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1507) 在 org.eclipse.jst.pagedesigner.ui.common.sash.SashEditorPart.addPage(SashEditorPart.java:110) 在 org.eclipse.jst.pagedesigner.editors.HTMLEditor$3.createPages(HTMLEditor.java:266) 在 org.eclipse.jst.pagedesigner.ui.common.sash.SashEditorPart.createPartControl(SashEditorPart.java:190) 在 org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:241) 在 org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:211) 在 org.eclipse.jst.pagedesigner.editors.HTMLEditor.sash_createAndAddDesignSourcePage(HTMLEditor.java:269) 在 org.eclipse.jst.pagedesigner.editors.HTMLEditor.createPages(HTMLEditor.java:440) 在 org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348) 在 org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) 在 org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) 在 org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) 在 org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) 在 org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863) 在 org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) 在 org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) 在 org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) 在 org.eclipse.swt.custom.BusyIndi​​cator.showWhile(BusyIndi​​cator.java:70) 在 org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) 在 org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) 在 org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331) 在 org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:179) 在 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 在 org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) 在 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) 在 org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) 在 org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) 在 org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) 在 org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) 在 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) 在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) 在 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:369) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:597) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1408)

我想我在安装过程中忘记了一些东西。任何人都可以在这里提供帮助,请提前致谢!

编辑:在我删除文件时解决了这个错误:

org.eclipse.jst.jsp.ui.source_1.1.601.v201108151912.jar org.eclipse.jst.jsp.ui_1.1.601.v201108151912.jar

并下载:

org.eclipse.jst.jsp.ui.source_1.1.401.v200908111935.jar org.eclipse.jst.jsp.ui_1.1.401.v200908111935.jar

但是现在我失去了 Eclipse 对 JSP 的完全支持。 Refer this for more information.

【问题讨论】:

  • 安装过程是什么? java.lang.NoSuchMethodError 几乎总是意味着安装失败。
  • @nitind- 我在安装过程中使用了这个链接:scn.sap.com/docs/DOC-29757
  • @nitind-Eclipse 更新管理器。
  • @nitind-我怀疑某处缺少某些文件...

标签: eclipse jsp exception tomcat5.5 eclipse-3.6


【解决方案1】:

解决了当我从 Help->About Eclipse SDK->Installation Details 卸载以下插件时出现的这个错误:

  • Android DDMS、Android 开发工具、Android Hierarchy Viewer、 Android Traceview。

  • Eclipse Java EE 开发者工具

  • JST Web UI 等...

然后再次重新安装它们。

最后,我在 Crystal Reports(.rpt) 文件上获得了 JSP 支持,并在 Eclipse 上获得了完整的 Android 支持。

【讨论】:

    猜你喜欢
    • 2019-11-09
    • 1970-01-01
    • 1970-01-01
    • 2016-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-12
    • 1970-01-01
    相关资源
    最近更新 更多