Error when Xvnc tries to take screen shot.

13 views
Skip to first unread message

Cowmix

unread,
Nov 30, 2010, 12:47:27 PM11/30/10
to Hudson Users
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Taking screenshot.
[jdk_6_21] $ import -window root -display :89 screenshot.jpg
FATAL: Cannot run program "import" (in directory
"/var/lib/hudson/jobs/biolocator_jdb6_maven3_NG/workspace/CLIENT/
biolocator/jdk/jdk_6_21"):
java.io.IOException: error=2, No such file or directory
java.io.IOException: Cannot run program "import" (in directory
"/var/lib/hudson/jobs/biolocator_jdb6_maven3_NG/workspace/CLIENT/
biolocator/jdk/jdk_6_21"):
java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at hudson.Proc$LocalProc.<init>(Proc.java:192)
at hudson.Proc$LocalProc.<init>(Proc.java:164)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:638)
at hudson.Launcher$ProcStarter.start(Launcher.java:273)
at hudson.Launcher$ProcStarter.join(Launcher.java:280)
at hudson.plugins.xvnc.Xvnc$3.tearDown(Xvnc.java:120)
at hudson.model.Build$RunnerImpl.doRun(Build.java:145)
at hudson.model.AbstractBuild
$AbstractRunner.run(AbstractBuild.java:416)
at hudson.model.Run.run(Run.java:1280)
at hudson.matrix.MatrixRun.run(MatrixRun.java:137)
at
hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:139)
Caused by: java.io.IOException: java.io.IOException: error=2, No such
file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 12 more

Jesse Glick

unread,
Nov 30, 2010, 5:40:36 PM11/30/10
to Hudson Users
On Nov 30, 12:47 pm, Cowmix <mma...@gmail.com> wrote:
> [jdk_6_21] $ import -window root -display :89 screenshot.jpg
> FATAL: Cannot run program "import" (in directory "..."): java.io.IOException: error=2, No such file or directory

You need the 'import' command to be installed for screenshots to work.
On Debian-based Linux distros this is part of the imagemagick package.

Michael March

unread,
Dec 1, 2010, 1:16:26 AM12/1/10
to hudson...@googlegroups.com
That did it.. thanks!
Reply all
Reply to author
Forward
0 new messages