sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37597
Re: [Question #290184]: [1.1.0] Jenkins: gets headless exception --- SikuliX needs access to a real screen
Question #290184 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/290184
Status: Answered => Open
ssAlways is still having a problem:
thanks Kark & RaiMan. It seems doesn't work on Mac :(
My jenkins execute shell:
export DISPLAY=:0.0
echo $DISPLAY
/Applications/runsikulix -d 3 -r ~/macSikuli/testx.sikuli/
And results are:
Building remotely on TestMacBook in workspace /Users/testuser/jenkins/workspace/testjob3
[testjob3] $ /bin/sh -xe /var/folders/bl/14409mh50471wm7h_7sz7zrm0000gn/T/hudson809532701892123288.sh
+ export DISPLAY=:0.0
+ DISPLAY=:0.0
+ echo :0.0
:0.0
+ /Applications/runsikulix -d 3 -r /Users/testuser/macSikuli/testx.sikuli/
running SikuliX: /Applications/SikuliX.app/Contents/Java/sikulix.jar -d 3 -r /Users/testuser/macSikuli/testx.sikuli/
[debug] RunTimeINIT: loadOptions: check: /Users/testuser/jenkins/workspace/testjob3
[debug] RunTimeINIT: loadOptions: check: /Users/testuser
[debug] RunTimeINIT: loadOptions: check: /Users/testuser/Library/Application Support/Sikulix/SikulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: running in headless environment
[debug] RunTimeINIT: runs as sikulix.jar in: /Applications/SikuliX.app/Contents/Java
[debug] RunTimeINIT: exists libs folder at: /Users/testuser/Library/Application Support/Sikulix/SikulixLibs_201510051707
***** show environment for IDE (build 201510051707)
user.home: /Users/testuser
user.dir (work dir): /Users/testuser/jenkins/workspace/testjob3
user.name: testuser
java.io.tmpdir: /var/folders/bl/14409mh50471wm7h_7sz7zrm0000gn/T
running 64Bit on Mac OSX (10.11.4) as application .app
java 8-64 version 1.8.0_77-b03 vm 25.77-b03 class 52.0 arch x86_64
app data folder: /Users/testuser/Library/Application Support/Sikulix
libs folder: /Users/testuser/Library/Application Support/Sikulix/SikulixLibs_201510051707
executing jar: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump sikulix
0: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump end
***** show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] RunTimeIDE: initAPI: entering
[debug] RunTimeIDE: initAPI: leaving
Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:233)
at org.sikuli.ide.SikuliIDE.<init>(SikuliIDE.java:153)
at org.sikuli.ide.SikuliIDE.getInstance(SikuliIDE.java:158)
at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:179)
at org.sikuli.ide.Sikulix.main(Sikulix.java:21)
[debug] RunTimeIDE: final cleanup
[debug] FileManager: deleteFileOrFolder:
/var/folders/bl/14409mh50471wm7h_7sz7zrm0000gn/T/Sikulix_1963055098
Any hints would be much appreciated.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.