← Back to team overview

sikuli-driver team mailing list archive

[Question #569742]: "java.lang.ExceptionInInitializerError" thrown when I run Selenium+sikuli script in Linux

 

New question #569742 on Sikuli:
https://answers.launchpad.net/sikuli/+question/569742

Problem Description
=================
I  run my Selenium script from Linux environment. Using Selenium Grid concept, the browser is launched in a Remote desktop(Windows/MAC)
I am using Sikuli for simulating mouse events in my browser. 

When I run the script from the linux system, the script fails with the following error,
"<WARNING>Traceback (most recent call last):
  File "/home/aptRoot/tools/python/64/Python-2.7/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File "/home/srividra/public_html/testcase/SRIVISIM/Condition_List_edge_Testcase/170317102108/testcase/Condition_List_edge_Testcase.py", line 63, in runTest
    myClass.verifyLog(self.testcase.neip, self.testcase.browser, self.testcase.server_ip, self.testcase.app_name)
java.lang.LinkageErrorPyRaisable: java.lang.ExceptionInInitializerError
</WARNING>

This error is thrown when the following line is executed:
"Screen s = new Screen();"

So I am unable to proceed with the execution. 
NOTE:  The same script is working fine when I run from Eclipse in my local system. 
I have set Java path in linux "PATH" variable. 

-> echo $PATH
/home/srividra/APT/aptDev/testcase/webUI/libs/sikulixsetup-1.1.0.jar:/home/aptRoot/tools/jre1.7.0_71/bin:/home/aptRoot/tools/python/64/Python-2.7/bin:/home/srividra/APT/bin:/home/srividra/APT/aptDev/bin:/home/aptRoot/tools/bin64:/home/aptRoot/tools/perls/64/perl-5.8.8/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin

Please guide me on how to proceed here.

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