Getting java.lang.ExceptionInInitializerError: null error

Asked by Anand Bala on 2019-04-08

Hi, When I try to instantitate Screen Object I get the following error

java.lang.ExceptionInInitializerError: null
 at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
 at java.base/java.lang.Integer.parseInt(Integer.java:638)
 at java.base/java.lang.Integer.parseInt(Integer.java:770)
 at org.sikuli.basics.Settings.<clinit>(Settings.java:123)
 at org.sikuli.basics.Debug.log(Debug.java:697)
 at org.sikuli.basics.Debug.logx(Debug.java:675)
 at org.sikuli.script.RunTime.log(RunTime.java:99)
 at org.sikuli.script.RunTime.get(RunTime.java:184)
 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 LandingPage.titleSelect(LandingPage.java:68)
 at testscenarios.DownloadVideo.downloadUserAuthorization(DownloadVideo.java:27)

Code:
Screen scr=new Screen();

I am using Maven

POM snippet:

<!-- https://mvnrepository.com/artifact/org.sikuli/sikuli-api -->
 <dependency>
     <groupId>org.sikuli</groupId>
     <artifactId>sikuli-api</artifactId>
     <version>1.2.0</version>
 </dependency>

My requirement is to click on the upload folder windows image.
Any help is highly appreciated

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Anand Bala
Solved:
2019-04-09
Last query:
2019-04-09
Last reply:
2019-04-08
RaiMan (raimund-hocke) said : #1

Wrong place here. Other project.

RaiMan (raimund-hocke) said : #2

... but the error is from SikuliX - so revise your setup and decide for a sikuli to use.
Recommended: SikuliX 1.1.4

Anand Bala (agbanand) said : #3

Hi Raimund,
I am using sikuli only

Please find the POM file below (correct me If am wrong)

 <dependency>
     <groupId>org.sikuli</groupId>
     <artifactId>sikuli-api</artifactId>
     <version>1.2.0</version>
 </dependency>

RaiMan (raimund-hocke) said : #4

Sorry, but you are wrong:
see here about the coordinates for SikuliX:
https://github.com/RaiMan/SikuliX1

Anand Bala (agbanand) said : #5

HI,
Thanks for your help, Working fine now