org.eclipse.swt.SWTError: 우분투에서 Spoon.sh를 실행할 때 더 이상 핸들이 없습니다. [gtk_init_check() 실패]

org.eclipse.swt.SWTError: 우분투에서 Spoon.sh를 실행할 때 더 이상 핸들이 없습니다. [gtk_init_check() 실패]

Ubuntu에서 파일을 실행하면 spoon.sh다음 오류가 발생합니다.

[santosh@sbx data-integration]$ ./spoon.sh
/home/decathlon/Pentaho-5.0.1/data-integration
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
    at org.eclipse.swt.widgets.Display.create(Unknown Source)
    at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:582)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)

누구든지 같은 문제를 해결하도록 도와줄 수 있나요?

답변1

나는 같은 문제가있었습니다 (Ubuntu 14.04에서). 권한 문제로 밝혀졌습니다. 이 문제는 그래픽 환경에 대한 액세스 권한이 있는 사용자로 Spoon.sh를 시작하여 해결되었습니다. Ubuntu 데스크탑에서는 로그인하는 사용자가 안전한 선택입니다. 또는 Pentaho 사용자에게 올바른 권한을 부여하세요.

답변2

답변을 찾는 데 시간이 좀 걸렸기 때문에 xhost를 사용하여 권한을 설정할 수 있다는 점을 추가하고 싶습니다.

xhost +local:

여기에서 찾으세요:https://wiki.archlinux.org/index.php/Xhost

답변3

VNC를 통해 Ubuntu에 액세스하는 경우 VNC 서버와 동일한 사용자로 Spoon.sh를 실행하고 있는지 확인하십시오.

관련 정보