Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!

Talend CommandLine fails with 'org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]' on a headless system (no display)

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Talend CommandLine fails with 'org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]' on a headless system (no display)

Last Update:

Jan 22, 2024 9:35:30 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:10:54 AM

Talend Version      6.3.x

Summary

Talend CommandLine fails with org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] on a headless system (no display).
Additional Versions 
ProductTalend Data Integration
ComponentCommandLine
Problem Description

When trying to use the command line on a "headless" Linux system (system without display), it fails with the exception:

!ENTRY org.eclipse.osgi 4 0 2017-11-14 09:13:06.080
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4467)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:934)
Problem root causeSWT needs a display.
Solution or Workaround

Install xvfb:

> yum install xorg-x11-server-Xvfb

Modify the script launching the command line and add the lines:

> export DISPLAY=:1
> Xvfb :1 -screen 0 1024x768x16 &
JIRA ticket number 
Labels (1)
Version history
Last update:
‎2024-01-22 09:35 PM
Updated by: