Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWTError: No more handles in Eclipse 3.7.2 SDK on AIX 7.1(Combo Widget problems on AIX 7.1 with Eclipse SDK 3.7.2)
SWTError: No more handles in Eclipse 3.7.2 SDK on AIX 7.1 [message #880403] Sat, 02 June 2012 00:17 Go to next message
Paul Mac Alpine is currently offline Paul Mac AlpineFriend
Messages: 4
Registered: October 2010
Junior Member
Hello,

I am a developer on a RCP Application using the Eclipse 3.7.2 SDK. Our application used to be based on the 3.5.2 SDK, and we just moved to 3.7.2. I understand that one major change was moving from the Motif to the GTK libraries on AIX. However, I am encountering an issue in AIX 7.1 using the new 3.7.2 SDK. Anytime I try to access a screen containing a combo box (such as launching a File Browser Dialog or clicking next on a wizard when the next page has a combo box), I get a SWTError: No more handles exception.

Here is the error from my log file for when I try to access a file browser:

!ENTRY org.eclipse.ui 4 0 2012-05-31 09:56:25.939
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:4308)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Dialog.error(Dialog.java:198)
	at org.eclipse.swt.widgets.FileDialog.openChooserDialog(FileDialog.java:415)
	at org.eclipse.swt.widgets.FileDialog.open(FileDialog.java:398)
	at com.ibm.ecm.configmgr.app.acm.handlers.ProfileOpenHandler.execute(ProfileOpenHandler.java:80)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
	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.Display.runDeferredEvents(Display.java:3588)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at com.ibm.ecm.configmgr.app.acm.rcp.Application.start(Application.java:94)
	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:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	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)


Here is the error from my log file for when I try to navigate to an Eclipse panel that contains a combo:

!ENTRY org.eclipse.ui 4 0 2012-05-30 09:10:38.199
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:4308)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:466)
	at org.eclipse.swt.widgets.Combo.createHandle(Combo.java:432)
	at org.eclipse.swt.widgets.Widget.createWidget(Widget.java:412)
	at org.eclipse.swt.widgets.Control.createWidget(Control.java:570)
	at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:152)
	at org.eclipse.swt.widgets.Control.<init>(Control.java:97)
	at org.eclipse.swt.widgets.Composite.<init>(Composite.java:95)
	at org.eclipse.swt.widgets.Combo.<init>(Combo.java:113)
	at com.ibm.ecm.configmgr.app.acm.wizards.DropDownDiscoverer.<init>(DropDownDiscoverer.java:43)
	at com.ibm.ecm.configmgr.app.acm.wizards.DropDownDiscoverer.<init>(DropDownDiscoverer.java:54)
	at com.ibm.ecm.configmgr.app.acm.wizards.NewProfileWizardPageGetProfileEnvironmentProps.createControl(NewProfileWizardPageGetProfileEnvironmentProps.java:388)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1247)
	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1239)
	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1228)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1226)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	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.Display.runDeferredEvents(Display.java:3588)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at com.ibm.ecm.configmgr.app.acm.handlers.ProfileNewHandler.execute(ProfileNewHandler.java:90)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
	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.Display.runDeferredEvents(Display.java:3588)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at com.ibm.ecm.configmgr.app.acm.rcp.Application.start(Application.java:94)
	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:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	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)



Nothing will show up in the GUI. The error just gets silently logged. For example, I will click next on the wizard to browse to a page with a Combo widget, and nothing will happen. If I remove a combo from the wizard panel, I can go to the panel without any problems.

I know Eclipse 3.7.2 has not been officially verified against AIX 7.1, but Eclipse 3.5.2 worked without a problem.

BTW, here are my library versions, in case it is relevant:

cdrecord-1.9-7
mkisofs-1.13-4
unzip-5.51-1
glib-1.2.10-2
gtk+-1.2.10-4
atk-1.10.3-2
cairo-1.4.10-1
expat-1.95.7-4
zlib-1.2.3-4
freetype2-2.1.7-5
fontconfig-2.2.2-6
gettext-0.10.40-8
glib2-2.8.1-3
libpng-1.2.32-2
libtiff-3.8.2-1
libjpeg-6b-6
xrender-0.9.1-2
xcursor-1.1.7-2
xft-2.1.6-5
pango-1.10.0-2
gtk2-2.8.3-9
AIX-rpm-6.1.2.0-3


I've tried updating the gtk2 and glib2 libraries, though I am having difficulties since the site I am using (www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html) seems to have AIX 5.2 libraries.

So, anyone have any ideas of what I need to do? Are there any AIX 7.1 libraries I can get for gtk2?

Thanks!
Re: SWTError: No more handles in Eclipse 3.7.2 SDK on AIX 7.1 [message #882157 is a reply to message #880403] Wed, 06 June 2012 00:19 Go to previous message
Paul Mac Alpine is currently offline Paul Mac AlpineFriend
Messages: 4
Registered: October 2010
Junior Member
I figured out the problem. I just needed to update my gtk2 libraries. I also needed to update to SP 7100-00-01-1037 to update my rpm version, since my RPM version was from 6.1, not 7.1. So, after updating my rpm version with the service pack and updating my libraries, the issue went away.
Previous Topic:How to print contents of a scrolledComposite?
Next Topic:NUM_LOCK
Goto Forum:
  


Current Time: Thu Sep 24 09:34:26 GMT 2020

Powered by FUDForum. Page generated in 0.01485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top