Re: [Sikuli-driver] [Question #262228]: Getting [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception
Question #262228 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/262228 Status: Answered = Open Anantanag is still having a problem: Hi RaiMan, Thank you. But sorry I still have an issue I downloaded new api from the following URL https://dl.dropboxusercontent.com/u/42895525/SikuliX-1.1/sikulixapi.jar But getting following exception while creating an instance of screen. [debug] Debug.init: from sikuli.Debug: on: 3 [error] RunTimeINIT: Java version not detected (using 7): pwi3270sr7fp1-20140712_01 (SR7 FP1) [debug] init user preferences [debug] RunTimeINIT: global init: entering as: API [debug] RunTimeINIT: ScreenDevice 0 contains (0,0) --- will be used as primary [debug] RunTimeINIT: runs as sikulixapi.jar in: D:\Sikuli [debug] RunTimeINIT: new libs folder at: D:\Users\ycy\AppData\Roaming\Sikulix\SikulixLibs_201502230944 [debug] RunTimeINIT: exists libs folder at: D:\Users\ycy\AppData\Roaming\Sikulix\SikulixLibs_201502230944 [debug] RunTimeINIT: libs folder empty or has wrong content [debug] RunTimeINIT: now exporting libs [debug] RunTimeINIT: libs to export are at: jar:file:/D:/Sikuli/sikulixapi.jar!/sikulixlibs/windows/libs32 [debug] RunTimeINIT: files exported: 17 from: /sikulixlibs/windows/libs32 to: D:\Users\ycy\AppData\Roaming\Sikulix\SikulixLibs_201502230944 [debug] RunTimeINIT: addToWindowsSystemPath: added to systempath: D:\Users\ycy\AppData\Roaming\Sikulix\SikulixLibs_201502230944 [error] RunTimeINIT: checkJavaUsrPath: get java.lang.NoSuchFieldException: usr_paths [error] RunTimeINIT: *** terminating: Problems setting up on Windows - see errors -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #262228]: Getting [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception
Question #262228 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/262228 Status: Answered = Open Anantanag is still having a problem: Hi, thank you for the detailed explanation, unfortunately it is not working for me. With the debug line added, it is not giving any additional logging. Deleted libs folder new Code: public void testMain(Object[] args) throws Exception { Debug.on(3); Screen screen = new Screen(); } getting following exception Exception occurred during playback of script [Runner.XXX.Creation] [RationalTestScriptError on line 30 of script Runner.XXX.XCreation: [java.lang.ExceptionInInitializerError] - null.]. Not sure if this is because I am using IBM JDK 7.1. I have integrated Sikuli code with in IBM RFT framework. It works find with Sikuli 1.0 but I have a trouble in using ocr in 1.0 so I am trying to switch to sikuli 1.1.0. It will be really helpful if this issue can be resolved. Thanks Anant -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #262228]: Getting [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception
Question #262228 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/262228 Status: Answered = Open Anantanag is still having a problem: Thank you RaiMan. I tried the second option. I replaced sikulixapi.jar with the one download from the link. But I am getting an initialization exception. [java.lang.ExceptionInInitializerError] - null.]. while creating an instance of Screen (Screen screen = new Screen();) Am I doing something wrong here..? Folder structure in the Sikuli folder: sikulixapi.jar Lib sikuli/ xlrd/ xutils/ xlwt/ HTML TestRunner.py sikulix.rb XMLTestRunner1.py XMLTestRunner2.py libs tessdata/ configs/ tessconfigs/ eng. files I did not follow the first option as I do not see any changes in the folder structure before crash and after the crash. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #262228]: Getting [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception
Question #262228 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/262228 Anantanag posted a new comment: Can any one please help me. Let me know if you need any additional information. This is very critical for my project. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #262228]: Getting [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception
Question #262228 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/262228 Description changed to: Hi, I have installed Sikuli 1.1.0 choosing option 2 and 3 on Windows 7 having JRE 7 64 Bit. Have following code systemArea = screen.find(D:/gitRepo/testing-and-qa/Test Automation Project/APIs/HydraNew/images/GroupedAsset/SystemArea.JPG).right().text().trim(); Added sikulixapi.jar to the Java build path Getting following Segmentation Error. [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception Type=Segmentation error vmState=0x0004 J9Generic_Signal_Number=0004 ExceptionCode=c005 ExceptionAddress=6567F5F1 ContextFlags=0001007f Handler1=66F80120 Handler2=66ADEF70 InaccessibleAddress= EDI=0027F378 ESI=0020 EAX=66FDE7D8 EBX= ECX=FFFDA000 EDX=23F5061C EIP=6567F5F1 ESP=0027F278 EBP=0027F370 EFLAGS=00010212 GS=002B FS=0053 ES=002B DS=002B Module=D:\Sikuli\libs\VisionProxy.dll Module_base_address=6564 Offset_in_DLL=0003f5f1 Target=2_60_20140627_204598 (Windows 7 6.1 build 7601 Service Pack 1) CPU=x86 (4 logical CPUs) (0xf88ef000 RAM) Can you please help me to resolve the issue. The installation log: [debug (17/02/15 4:32:48 PM)] Debug: setLogFile: D:\Sikuli\SikuliX-1.1.0-SetupLog.txt [debug (17/02/15 4:32:48 PM)] RunSetup: ... starting with no args given [debug (17/02/15 4:32:48 PM)] RunSetup: Setup in: D:\Sikuli using: D:\Sikuli\sikulixsetup-1.1.0.jar [debug (17/02/15 4:32:48 PM)] RunSetup: SikuliX Setup Build: 1.1.0 2015-01-16_01:00nightly [debug (17/02/15 4:32:48 PM)] RunSetup: RunningSystem: Windows 6.1 [debug (17/02/15 4:32:48 PM)] RunSetup: parent of jar/classes: D:\Sikuli [debug (17/02/15 4:32:48 PM)] RunSetup: RunningJava: Java 7 (x86) 1.7.0_65-b20 [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=LOCALE value=en_AU/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=USER_TYPE value=0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=IDE_SESSION value=/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CAPTURE_HOTKEY value=50/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CAPTURE_HOTKEY_MODIFIERS value=3/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CAPTURE_DELAY value=1.0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=STOP_HOTKEY value=67/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=STOP_HOTKEY_MODIFIERS value=9/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=EXPAND_TAB value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=TAB_WIDTH value=4/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=FONT_SIZE value=14/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=FONT_NAME value=Monospaced/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AUTO_NAMING value=0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=DEFAULT_THUMB_HEIGHT value=50/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_COMMAND_BAR value=1/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AUTO_CAPTURE_FOR_CMD_BUTTONS value=1/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AT_SAVE_MAKE_HTML value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AT_SAVE_CLEAN_BUNDLE value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_RUN_SAVE value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_HIGHLIGHT value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CHECK_UPDATE value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=LAST_SEEN_UPDATE value=0.0.0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=LAST_CHECK_UPDATE value=1424134163498/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=IDE_SIZE value=1770x980/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=IDE_LOCATION value=75,0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_IMAGES value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_IMAGES_PATH value=/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_MESSAGE value=0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_LOG_ACTIONS value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_LOG_INFO value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CONSOLE_CSS value=body { font-family:serif; font-size: 12px; }.normal{ color: black; }.debug { color:#505000; }.info { color: blue; }.log { color: #09806A; }.error { color: red; }/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_TEXT_SEARCH value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_TEXT_OCR value=false/ [debug (17/02/15 4:33:00 PM)] FileManager:
[Sikuli-driver] [Question #262228]: Getting [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception
New question #262228 on Sikuli: https://answers.launchpad.net/sikuli/+question/262228 Hi, I have installed Sikuli 1.1.0 choosing option 2 and 3 on Windows 7 having JRE 7 64 Bit. Have following code systemArea = screen.find(D:/gitRepo/testing-and-qa/Test Automation Project/APIs/HydraNew/images/GroupedAsset/SystemArea.JPG).right().text().trim(); Getting following Segmentation Error. [error] ResourceLoader: checkLibsDir: usr_paths Unhandled exception Type=Segmentation error vmState=0x0004 J9Generic_Signal_Number=0004 ExceptionCode=c005 ExceptionAddress=6567F5F1 ContextFlags=0001007f Handler1=66F80120 Handler2=66ADEF70 InaccessibleAddress= EDI=0027F378 ESI=0020 EAX=66FDE7D8 EBX= ECX=FFFDA000 EDX=23F5061C EIP=6567F5F1 ESP=0027F278 EBP=0027F370 EFLAGS=00010212 GS=002B FS=0053 ES=002B DS=002B Module=D:\Sikuli\libs\VisionProxy.dll Module_base_address=6564 Offset_in_DLL=0003f5f1 Target=2_60_20140627_204598 (Windows 7 6.1 build 7601 Service Pack 1) CPU=x86 (4 logical CPUs) (0xf88ef000 RAM) Can you please help me to resolve the issue. The installation log: [debug (17/02/15 4:32:48 PM)] Debug: setLogFile: D:\Sikuli\SikuliX-1.1.0-SetupLog.txt [debug (17/02/15 4:32:48 PM)] RunSetup: ... starting with no args given [debug (17/02/15 4:32:48 PM)] RunSetup: Setup in: D:\Sikuli using: D:\Sikuli\sikulixsetup-1.1.0.jar [debug (17/02/15 4:32:48 PM)] RunSetup: SikuliX Setup Build: 1.1.0 2015-01-16_01:00nightly [debug (17/02/15 4:32:48 PM)] RunSetup: RunningSystem: Windows 6.1 [debug (17/02/15 4:32:48 PM)] RunSetup: parent of jar/classes: D:\Sikuli [debug (17/02/15 4:32:48 PM)] RunSetup: RunningJava: Java 7 (x86) 1.7.0_65-b20 [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=LOCALE value=en_AU/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=USER_TYPE value=0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=IDE_SESSION value=/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CAPTURE_HOTKEY value=50/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CAPTURE_HOTKEY_MODIFIERS value=3/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CAPTURE_DELAY value=1.0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=STOP_HOTKEY value=67/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=STOP_HOTKEY_MODIFIERS value=9/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=EXPAND_TAB value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=TAB_WIDTH value=4/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=FONT_SIZE value=14/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=FONT_NAME value=Monospaced/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AUTO_NAMING value=0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=DEFAULT_THUMB_HEIGHT value=50/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_COMMAND_BAR value=1/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AUTO_CAPTURE_FOR_CMD_BUTTONS value=1/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AT_SAVE_MAKE_HTML value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=AT_SAVE_CLEAN_BUNDLE value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_RUN_SAVE value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_HIGHLIGHT value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CHECK_UPDATE value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=LAST_SEEN_UPDATE value=0.0.0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=LAST_CHECK_UPDATE value=1424134163498/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=IDE_SIZE value=1770x980/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=IDE_LOCATION value=75,0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_IMAGES value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_IMAGES_PATH value=/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_MESSAGE value=0/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_LOG_ACTIONS value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_LOG_INFO value=true/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=CONSOLE_CSS value=body { font-family:serif; font-size: 12px; }.normal{ color: black; }.debug { color:#505000; }.info { color: blue; }.log { color: #09806A; }.error { color: red; }/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_TEXT_SEARCH value=false/ [debug (17/02/15 4:33:00 PM)] RunSetup: main: Prefs: entry key=PREF_MORE_TEXT_OCR value=false/ [debug (17/02/15 4:33:00 PM)] FileManager: deleteFileOrFolder: D:\Sikuli\SikuliPrefs.txt [debug (17/02/15