I ran into a similar problem while installing IBM Installation Manager (IBMIM) on CentOS 6.x and worked around the issue by installing several packages which were the cause of this identical error:
$ sudo /opt/IBM/InstallationManager/eclipse/IBMIM \ -record /root/was8nd_v85_install.xml \ -skipInstall /tmp/was8nd 00:00.46 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged Application error org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] at org.eclipse.swt.SWT.error(SWT.java:4387) at org.eclipse.swt.widgets.Display.createDisplay(Display.java:913) at org.eclipse.swt.widgets.Display.create(Display.java:899) at org.eclipse.swt.graphics.Device.<init>(Device.java:156) ... IBMIM: An error has occurred. See the log file /opt/IBM/InstallationManager/eclipse/configuration/1457978953529.log.
Solution part 1 - missing packages
$ sudo yum install \ gtk2 \ libXtst \ gnome-desktop \ xorg-x11-xauth \ dejavu-lgc-sans-fonts
Something similar to this could've been done on Ubuntu as well.
Solution part 2 - xauth
The other issue that'll arise is you're attempting to run the IBMIM installer (Eclipse based) as the root user via sudo. When you do this you'll get the above Application error from the installer:
00:00.46 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged Application error org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
To work around this you'll need to use xauth add
to add the initial user you logged in as to root's $HOME/.Xauthority
file.
As user1:
$ xauth list ip-10-10-10-10.us-west-1.compute.internal/unix:10 MIT-MAGIC-COOKIE-1 6902e8c245a01ca50XXXXXXXXXXXXXXXX
Then as root:
$ xauth add ip-10-10-10-10.us-west-1.compute.internal/unix:10 MIT-MAGIC-COOKIE-1 6902e8c245a01ca50XXXXXXXXXXXXXXXX xauth: creating new authority file /root/.Xauthority $ xauth list ip-10-10-10-10.us-west-1.compute.internal/unix:10 MIT-MAGIC-COOKIE-1 6902e8c245a01ca50XXXXXXXXXXXXXXXX
References