sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30657
Re: [Question #262228]: Getting [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception
Question #262228 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/262228
Status: Needs information => Open
Anantanag gave more information on the question:
I was creating an instance inside the constructor after moving that
outside I am getting the Numberformat exception in initialization
Caused by: java.lang.ExceptionInInitializerError
DEBUG - D:\gitRepo\testing-and-qa\Test Automation Project//ExecutionResults//HydraNew//CreateGA//ScreenShots\Failure\23_02_2015 101625 AM\null.jpg
at java.lang.J9VMInternals.initialize(J9VMInternals.java:259)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:204)
at APIs.HydraNew.tests.Common.open(Common.java:41)
... 71 more
Caused by: java.lang.NumberFormatException: For input string: "i"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:76)
at java.lang.Integer.parseInt(Integer.java:503)
at java.lang.Integer.parseInt(Integer.java:538)
at org.sikuli.script.RunTime.get(RunTime.java:135)
at org.sikuli.script.RunTime.get(RunTime.java:101)
at org.sikuli.script.RunTime.get(RunTime.java:238)
at org.sikuli.script.Region.<clinit>(Region.java:27)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
... 73 more
My Code:
package APIs.HydraNew.tests;
import org.sikuli.basics.Debug;
import org.sikuli.script.App;
import org.sikuli.script.Screen;
import utils.Log;
import APIs.HydraNew.screens.GroupedAssetPanelScreen;
import APIs.HydraNew.screens.HomeScreen;
import APIs.HydraNew.screens.LoginScreen;
import Helpers.ScriptHelper;
public class Common extends ScriptHelper {
protected static String hydraEnvironment = "";
protected static String hydraVersion = "";
protected static Screen hydraScreen;
protected static LoginScreen hydraLoginScreen;
protected static HomeScreen hydraHomeScreen;
protected static GroupedAssetPanelScreen hydraGroupedAssetPanelScreen;
protected static Log log;
public Common() {
log = new Log();
Debug.on(3);
}
/**
* Open Hydra Window
* @throws Exception ({@link #ExceptionHandler(Exception, String, String, String)})
*/
public void open() throws Exception {
try {
hydraScreen = new Screen();
} catch (Exception e) {
exceptionHandler(e, "open()", "Failed to open XXX!", "Yes");
}
}
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.