How to resolve TIBCO BusinessEvents Studio Eclipse error "org.eclipse.swt.SWTError: No more handles"
book
Article ID: KB0081499
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Description
Building an EAR file using TIBCO BusinessEvents Studio hangs and reports the below error message.
Error:
+++++++++
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:4517)
at org.eclipse.swt.SWT.error(SWT.java:4406)
at org.eclipse.swt.SWT.error(SWT.java:4377)
at org.eclipse.swt.widgets.Widget.error(Widget.java:482)
at org.eclipse.swt.widgets.Control.createHandle(Control.java:703)
at org.eclipse.swt.widgets.Composite.createHandle(Composite.java:306)
at org.eclipse.swt.widgets.Decorations.createHandle(Decorations.java:419)
at org.eclipse.swt.widgets.Shell.createHandle(Shell.java:584)
at org.eclipse.swt.widgets.Control.createWidget(Control.java:743)
at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:140)
at org.eclipse.swt.widgets.Decorations.createWidget(Decorations.java:427)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:297)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:375)
at org.eclipse.jface.window.Window.createShell(Window.java:486)
at org.eclipse.jface.window.Window.create(Window.java:429)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
+++++++++
Causes: The reported error is an eclipse based exception that generally refers to running out of resources. Here are two main causes of this:
1.BE Studio running out of memory. 2.Running out of Windows UI objects.
Issue/Introduction
How to resolve BE Studio eclipse error "org.eclipse.swt.SWTError: No more handles"
Environment
BusinessEvents 5.x
All Operating Systems
Resolution
If the issue is BE Studio running out of memory, please edit the studio.ini file to add more. To do this, open your studio.ini file and increase the "-Xmx" value.
If the issue is running out of Windows UI objects, then you likely have too many objects open inside of BE Studio. You can check the amount of user objects that are currently being used by opening up windows task manager and adding the user/GDI objects column with these steps: Open up Windows Task Manager Go to the Processes tab. Go to the View menu bar and click on "Select Columns" In the popped up Window, check "GDI Object" and "User Objects".
If the User or GDI Objects are more in number, then that is causing the Studio to hang state. In general, this will occur if you have too many UI objects opened up in BE Studio. Please make sure to close out as many opened objects.
Additionally clean up the eclipse plug-in by executing the below command. $BE_HOME\studio\eclipse> studio -clean -initialize $BE_HOME\studio\eclipse> studio