New question #403406 on Sikuli: https://answers.launchpad.net/sikuli/+question/403406
We are using sikulixapi/1.1.1-SNAPSHOT + testng + maven + eclipse to make and run tests written in java under tibbo Aggregate platform(http://aggregate.tibbo.com). OS - Windows 7 - x64 SP1, jre - java 7-64 version 1.7.0_79-b15 vm 24.79-b02 class 51.0 arch amd64 If I run it from Eclipse it works. If I run it from command prompt as "java -jar ALL_MY_TESTS.jar TEST_1" it works fine as well. But when I run my test under Aggregate(compiled C1475848854801.class, see below) it crushes on creation of 1st sikulix class instance, in my case it's Screen. After call: s = Screen.getPrimaryScreen(); I get this: Cannot instantiate class webScripts.test.C1475848854801 - [Thread-43] users_admin_models_webScript_runScript$TestThread.run (users_admin_models_webScript_runScript.java:155) org.testng.TestNGException: Cannot instantiate class webScripts.test.C1475848854801 at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:40) at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:382) at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:295) at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:118) at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:183) at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:128) at org.testng.TestRunner.initMethods(TestRunner.java:416) at org.testng.TestRunner.init(TestRunner.java:242) at org.testng.TestRunner.init(TestRunner.java:212) at org.testng.TestRunner.<init>(TestRunner.java:159) at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:549) at org.testng.SuiteRunner.init(SuiteRunner.java:161) at org.testng.SuiteRunner.<init>(SuiteRunner.java:114) at org.testng.TestNG.createSuiteRunner(TestNG.java:1290) at org.testng.TestNG.createSuiteRunners(TestNG.java:1277) at org.testng.TestNG.runSuitesLocally(TestNG.java:1131) at org.testng.TestNG.run(TestNG.java:1048) at nalog.ru.NalogRu.runScript(NalogRu.java:148) at users_admin_models_webScript_runScript$TestThread.run(users_admin_models_webScript_runScript.java:102) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29) ... 18 more Caused by: java.lang.StackOverflowError at java.awt.GraphicsEnvironment.getHeadlessProperty(Unknown Source) at java.awt.GraphicsEnvironment.isHeadless(Unknown Source) at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source) at java.awt.Toolkit.areExtraMouseButtonsEnabled(Unknown Source) (last message repeated 1020 times in aggregate server log) If it helps I switched on sikulix debug mode 3: [debug] Debug: setLogFile: C:\AggreGate/error.log [debug] Debug.init: from sikuli.Debug: on: 3 [debug] RunTimeINIT: loadOptions: check: C:\AggreGate [debug] RunTimeINIT: loadOptions: check: C:\Users\Sikulix [debug] RunTimeINIT: loadOptions: check: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixStore [debug] RunTimeINIT: global init: entering as: API [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0) [debug] RunTimeINIT: Monitor 0: (0, 0) 1920 x 1080 [debug] RunTimeINIT: runs as nalog.ru-1.1.0-jar-with-dependencies.jar in: C:\AggreGate\lib [debug] RunTimeINIT: exists libs folder at: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixLibs_201610231259 [debug] RunTimeINIT: addToWindowsSystemPath: added to systempath: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixLibs_201610231259 [debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths ***** show environment for API (build 201610231259) user.home: C:\Users\Sikulix user.dir (work dir): C:\AggreGate user.name: Sikulix java.io.tmpdir: C:\Users\Sikulix\AppData\Local\Temp running 64Bit on Windows (6.1) from a jar java 7-64 version 1.7.0_79-b15 vm 24.79-b02 class 51.0 arch amd64 app data folder: C:\Users\Sikulix\AppData\Roaming\Sikulix libs folder: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixLibs_201610231259 executing jar: C:\AggreGate\lib\nalog.ru-1.1.0-jar-with-dependencies.jar *** classpath dump sikulix *** classpath dump end ***** show environment end [debug] RunTimeAPI: global init: leaving [debug] RunTimeAPI: initAPI: entering [debug] RunTimeAPI: resourceList: enter [debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.RunTime) /Lib/sikuli [debug] RunTimeAPI: resourceList: having jar: jar:file:C:\AggreGate\lib\nalog.ru-1.1.0-jar-with-dependencies.jar!/Lib/sikuli [debug] RunTimeAPI: files exported: 7 from: Lib/sikuli to: C:\Users\Sikulix\AppData\Roaming\Sikulix\Lib\sikuli [debug] RunTimeAPI: initAPI: leaving [debug] RunTimeAPI: loadLib: VisionProxy.dll Below the sikulix debug log during succesfull run from command prompt: [debug] Debug: setLogFile: C:\Users\Sikulix\workspace\nalog.ru\target/error.log [debug] Debug.init: from sikuli.Debug: on: 3 [debug] RunTimeINIT: loadOptions: check: C:\Users\Sikulix\workspace\nalog.ru\target [debug] RunTimeINIT: loadOptions: check: C:\Users\Sikulix [debug] RunTimeINIT: loadOptions: check: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixStore [debug] RunTimeINIT: global init: entering as: API [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0) [debug] RunTimeINIT: Monitor 0: (0, 0) 1920 x 1080 [debug] RunTimeINIT: runs as nalog.ru-1.1.0-jar-with-dependencies.jar in: C:\Users\Sikulix\workspace\nalog.ru\target [debug] RunTimeINIT: folder target detected - supposing Maven project: C:\Users\Sikulix\workspace [debug] RunTimeINIT: exists libs folder at: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixLibs_201610231259 [debug] RunTimeINIT: addToWindowsSystemPath: added to systempath: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixLibs_201610231259 [debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths ***** show environment for API (build 201610231259) user.home: C:\Users\Sikulix user.dir (work dir): C:\Users\Sikulix\workspace\nalog.ru\target user.name: Sikulix java.io.tmpdir: C:\Users\Sikulix\AppData\Local\Temp running 64Bit on Windows (6.1) in Maven project from some jar java 7-64 version 1.7.0_79-b15 vm 24.79-b02 class 51.0 arch amd64 app data folder: C:\Users\Sikulix\AppData\Roaming\Sikulix libs folder: C:\Users\Sikulix\AppData\Roaming\Sikulix\SikulixLibs_201610231259 executing jar: C:\Users\Sikulix\workspace\nalog.ru\target\nalog.ru-1.1.0-jar-with-dependencies.jar *** classpath dump sikulix 0: /C:/Users/Sikulix/workspace/nalog.ru/target/nalog.ru-1.1.0-jar-with-dependencies.jar *** classpath dump end ***** show environment end [debug] RunTimeAPI: global init: leaving [debug] RunTimeAPI: initAPI: entering [debug] RunTimeAPI: resourceList: enter [debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.RunTime) /Lib/sikuli [debug] RunTimeAPI: resourceList: having jar: jar:file:/C:/Users/Sikulix/workspace/nalog.ru/target/nalog.ru-1.1.0-jar-with-dependencies.jar!/Lib/sikuli [debug] RunTimeAPI: files exported: 7 from: Lib/sikuli to: C:\Users\Sikulix\AppData\Roaming\Sikulix\Lib\sikuli [debug] RunTimeAPI: initAPI: leaving [debug] RunTimeAPI: loadLib: VisionProxy.dll [debug] Mouse: init start [debug] Mouse: init end [debug] KeyBoard: init [debug] ImagePath: add: /C:/AggreGate/EKP/ [debug] RunTimeAPI: loadLib: WinUtil.dll [debug] App.immediate: mspaint.exe [debug] App.create: [-1:mspaint.exe] [debug] App.open [3376:mspaint.exe] [debug] ImagePath: new BundlePath: /C:/Users/Sikulix/workspace/nalog.ru/target/ [debug] Image: loaded: test_gui_loaded.png (file:/C:/AggreGate/EKP/test_gui_loaded.png) [debug] Image: cached: test_gui_loaded.png (18 KB) (# 1 KB 18 -- 0 % of 64 MB) [debug] Region: exists: waiting 30,0 secs for test_gui_loaded.png to appear in S(0)[0,0 1920x1080] [debug] Region: exists: test_gui_loaded.png has appeared (M[502,95 76x61]@S(S(0)[0,0 1920x1080]) S:1,00 C:540,125 [1912 msec]) [debug] Image: loaded: test_gui_loaded_2.png (file:/C:/AggreGate/EKP/test_gui_loaded_2.png) [debug] Image: cached: test_gui_loaded_2.png (65 KB) (# 2 KB 83 -- 0 % of 64 MB) [debug] Region: exists: waiting 30,0 secs for test_gui_loaded_2.png to appear in S(0)[0,0 1920x1080] [debug] Region: exists: test_gui_loaded_2.png has appeared (M[1033,89 228x73]@S(S(0)[0,0 1920x1080]) S:1,00 C:1147,125 [416 msec]) [debug] Image: loaded: test_gui_loaded_3.png (file:/C:/AggreGate/EKP/test_gui_loaded_3.png) [debug] Image: cached: test_gui_loaded_3.png (44 KB) (# 3 KB 127 -- 0 % of 64 MB) [debug] Region: exists: waiting 30,0 secs for test_gui_loaded_3.png to appear in S(0)[0,0 1920x1080] [debug] Region: exists: test_gui_loaded_3.png has appeared (M[637,90 163x70]@S(S(0)[0,0 1920x1080]) S:1,00 C:718,125 [445 msec]) [debug] WinUtil.getApp: 3376 [debug] App.close: [3376:mspaint.exe] [debug] RunTimeAPI: final cleanup [debug] FileManager: deleteFileOrFolder: C:\Users\Sikulix\AppData\Local\Temp\hsperfdata_Sikulix [debug] FileManager: deleteFileOrFolder: C:\Users\Sikulix\AppData\Local\Temp\Sikulix_257959366 Any help would be really appreciated. P.S. Our Selenium webdriver + testng tests run from aggregate without any problem. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

