Eclipse "Unhandled event loop exception"

From: Zak Burke (zdbw..artmouth.EDU)
Date: Thu Jan 31 2008 - 11:40:07 EST


I recently did an archive-and-install update from Mac OS X 10.4 to
10.5. In that process, the Eclipse component editor stopped working
for me. I'm running Eclipse classic 3.3.1.1 (build M20071023-1652)
with the very latest WOLips (3.3.4785). I previously had 3.3.4763
installed; that worked fine.

The first time I try to open a component in the component editor, I
get an "org.eclipse.swt.SWTError: No more handles" exception; the
second time I get a java.lang.NoClassDefFoundError from
org.eclipse.swt.browser.Safari.create(Safari.java:82) (stacktraces
below). I found Anjo's note about the latter exception:

        http://wiki.objectstyle.org/confluence/display/WOL/mail/2098117

but a fresh Eclipse/WOLips install didn't solve the problem. I get the
errors even in a fresh workspace with a single, new "WebObjects
Application" project.

What Eclipse/WOLips builds are folks running successfully on Leopard?

zak.

org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.browser.Safari.create(Safari.java:85)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:109)
at
org
.objectstyle
.wolips
.htmlpreview
.editor.HtmlPreviewEditor.createPartControl(HtmlPreviewEditor.java:134)
at
org
.objectstyle
.wolips
.componenteditor
.part
.ComponentEditorTab.createInnerPartControl(ComponentEditorTab.java:78)
at
org
.objectstyle
.wolips
.componenteditor.part.HtmlPreviewTab.createTab(HtmlPreviewTab.java:77)
at
org
.objectstyle
.wolips
.componenteditor
.part.ComponentEditorPart.createPages(ComponentEditorPart.java:178)
at
org
.eclipse
.ui
.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:
283)
at
org
.eclipse
.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
at
org
.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:
426)
at
org
.eclipse
.ui
.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:
592)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:
263)
at
org
.eclipse
.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:
2739)
at
org
.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:
2651)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:
2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2590)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2574)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2557)
at
org
.objectstyle
.wolips
.workbenchutilities
.WorkbenchUtilitiesPlugin.open(WorkbenchUtilitiesPlugin.java:433)
at
org
.objectstyle
.wolips
.componenteditor
.editormenu
.SwitchToHtmlEditorActionDelegate
.run(SwitchToHtmlEditorActionDelegate.java:73)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:
256)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at
org
.eclipse
.ui
.internal
.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
at
org
.eclipse
.core
.commands
.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429)
at
org
.eclipse
.ui
.internal.handlers.HandlerService.executeCommand(HandlerService.java:
165)
at
org
.eclipse
.ui
.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:
470)
at
org
.eclipse
.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:821)
at
org
.eclipse
.ui
.internal
.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:879)
at
org
.eclipse
.ui
.internal
.keys
.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:568)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access
$3(WorkbenchKeyboard.java:510)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard
$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1101)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1494)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1556)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1551)
at
org.eclipse.swt.widgets.Control.kEventUnicodeKeyPressed(Control.java:
2090)
at
org
.eclipse.swt.widgets.Composite.kEventUnicodeKeyPressed(Composite.java:
580)
at
org
.eclipse
.swt.widgets.Control.kEventTextInputUnicodeForKeyEvent(Control.java:
2071)
at org.eclipse.swt.widgets.Widget.textInputProc(Widget.java:1925)
at org.eclipse.swt.widgets.Display.textInputProc(Display.java:3806)
at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native
Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2938)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org
.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org
.eclipse
.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
106)
at
org
.eclipse
.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at
org
.eclipse
.core
.runtime
.internal
.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org
.eclipse
.core
.runtime
.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at
org
.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
363)
at
org
.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

java.lang.NoClassDefFoundError
        at org.eclipse.swt.browser.Safari.create(Safari.java:82)
        at org.eclipse.swt.browser.Browser.<init>(Browser.java:109)
        at
org
.objectstyle
.wolips
.htmlpreview
.editor.HtmlPreviewEditor.createPartControl(HtmlPreviewEditor.java:134)
        at
org
.objectstyle
.wolips
.componenteditor
.part
.ComponentEditorTab.createInnerPartControl(ComponentEditorTab.java:78)
        at
org
.objectstyle
.wolips
.componenteditor.part.HtmlPreviewTab.createTab(HtmlPreviewTab.java:77)
        at
org
.objectstyle
.wolips
.componenteditor
.part.ComponentEditorPart.createPages(ComponentEditorPart.java:178)
        at
org
.eclipse
.ui
.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:
283)
        at
org
.eclipse
.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
        at
org
.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:
426)
        at
org
.eclipse
.ui
.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:
592)
        at
org
.objectstyle
.wolips
.componenteditor
.launcher
.ComponentEditorMatchingStrategy
.matches(ComponentEditorMatchingStrategy.java:99)
        at
org.eclipse.ui.internal.EditorManager.findEditors(EditorManager.java:
485)
        at
org.eclipse.ui.internal.EditorManager.findEditors(EditorManager.java:
431)
        at
org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:394)
        at
org
.eclipse
.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:
2688)
        at
org
.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:
2651)
        at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:
2643)
        at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:
2595)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
67)
        at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2590)
        at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2574)
        at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2557)
        at
org
.objectstyle
.wolips
.workbenchutilities
.WorkbenchUtilitiesPlugin.open(WorkbenchUtilitiesPlugin.java:433)
        at
org
.objectstyle
.wolips
.ui.actions.OpenWOAction.openResourceIfPossible(OpenWOAction.java:95)
        at
org
.objectstyle
.wolips
.eomodeler
.eclipse
.PackageExplorerDoubleClickHandler
.doubleClick(PackageExplorerDoubleClickHandler.java:200)
        at org.eclipse.jface.viewers.StructuredViewer
$1.run(StructuredViewer.java:799)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.runtime.Platform.run(Platform.java:857)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
        at
org
.eclipse
.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:
797)
        at
org
.eclipse
.jface
.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:
1387)
        at org.eclipse.jface.viewers.StructuredViewer
$4.widgetDefaultSelected(StructuredViewer.java:1173)
        at
org
.eclipse
.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:
237)
        at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234)
        at org.eclipse.jface.util.OpenStrategy
$1.handleEvent(OpenStrategy.java:295)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
        at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:2734)
        at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:
1953)
        at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:367)
        at org.eclipse.swt.widgets.Display.controlProc(Display.java:835)
        at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native
Method)
        at org.eclipse.swt.widgets.Tree.kEventMouseDown(Tree.java:2363)
        at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1262)
        at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2819)
        at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native
Method)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2938)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
        at
org
.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
289)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
461)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
org
.eclipse
.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
106)
        at
org
.eclipse
.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
        at
org
.eclipse
.core
.runtime
.internal
.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
        at
org
.eclipse
.core
.runtime
.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
        at
org
.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
363)
        at
org
.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)



This archive was generated by hypermail 2.0.0 : Thu Jan 31 2008 - 11:42:05 EST