rainmanwy / robotframework-SikuliLibrary

Sikuli Robot Framework Library provide keywords for Robot Framework to test UI through Sikuli.
Apache License 2.0
147 stars 61 forks source link

"java.lang.ExceptionInInitializerError: null" at all Click keywords by X86 Enviroments #155

Open Nepitwin opened 3 years ago

Nepitwin commented 3 years ago

Hi,

we have found a problem for 32-bit machines. When we want to use the SikuliLibrary for this we get an ExceptionInInitializerError exception.

Testing Enviroment -> 21H1 Windows 10 X86

image

Here we initialize Sikuli with the New Mode during a test suite start and finish it.

*** Settings ***
Suite Setup     Init Sikuli Lib
Suite Teardown  Stop Sikuli Lib

*** Keywords ***
Init Sikuli Lib
    ${_path}=                           Normalize Path         ${CURDIR}/../Img
    Start Sikuli Process
    SikuliLibrary.Add Image Path        ${_path}

Stop Sikuli Lib
    Stop Sikuli

I have installed a wide variety of 32-bit Java runtimes and they all had the same initialization error.

However, if I run the same code on a 64 bit architecture with a 64 bit installation, the library works without problems.

I found already some issues by this Exception type: https://github.com/rainmanwy/robotframework-SikuliLibrary/issues/108 https://github.com/rainmanwy/robotframework-SikuliLibrary/issues/122

Does the Sikuli library support the 32-bit Java runtimes to execute test runs on X86 systems?

Nepitwin commented 3 years ago

After some investigation i got a specific exception after the first ExceptionInInitializerError by repeating the click keyword:

image