← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679058]: Trying to get sikuli java-scripts running on Ubuntu through jenkins-maven

 

Question #679058 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679058

VJ posted a new comment:
I figured that we are using XVNC session to communicate with the browser
on the jenkins-slave..

When I execute my scripts, Screen object initialization failed...

my Code Snippet below:

import org.sikuli.script.Screen;
public class Login extends Base {

    public Screen screen;
    public Login() {
          System.out.println("==== Login Before Flag...");
          screen = new Screen();   <--- Failing here, error stack-trace below
          System.out.println("==== Login After Flag..");
    }
Before flag is getting printed but after-flag is not getting printed... below is the error

java.lang.ExceptionInInitializerError: null
	at org.sikuli.script.RunTime.init(RunTime.java:693)
	at org.sikuli.script.RunTime.get(RunTime.java:291)
	at org.sikuli.script.RunTime.get(RunTime.java:126)
	at org.sikuli.script.RunTime.get(RunTime.java:316)
	at org.sikuli.script.Region.<clinit>(Region.java:31)
	at main.java.apps.login.Login.<init>(Login.java:17)
	at test.java.tests.login.TestLoginHelper.createLoginObject(TestLoginHelper.java:21)
	at test.java.tests.login.TestLogin.setup(TestLogin.java:17)

Any pointer will be helpful.......

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.