← Back to team overview

sikuli-driver team mailing list archive

[Question #272065]: Sikuli C# Integration Issue - Win32Util.dll: %1 is not a valid Win32 application

 

New question #272065 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272065

We are integrating the Sikuli in our C# selenium ui automation script. We are facing issues while executing some of the methods in SikulActions class. Please find the below.

Using Sikuli 
1.       We could identify an image in UI - working
2.       We could click on an image - working
3.       Double click on an image throws the attached error  “Win32Util.dll: %1 is not a valid Win32 application” 
System.Exception was unhandled by user code
  HResult=-2146233088
  Message=Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\THANGAMX\Documents\Visual Studio 2013\Projects\ImagingServices\ImagingServices\bin\Debug\libs\Win32Util.dll: %1 is not a valid Win32 application
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(Unknown Source)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.load0(Unknown Source)
	at java.lang.System.load(Unknown Source)
	at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
	at org.sikuli.script.Win32Util.<clinit>(Win32Util.java:19)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.sikuli.script.Env.getOSUtil(Env.java:91)
	at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:180)
	at org.sikuli.script.ScreenHighlighter.<init>(ScreenHighlighter.java:293)
	at org.sikuli.script.Screen.initBounds(Screen.java:105)
	at org.sikuli.script.Screen.<init>(Screen.java:117)
	at com.sikuliintegrator.Operation.DoubleClick(Operation.java:93)
	at com.sikuliintegrator.Pointer.main(Pointer.java:102)

  Source=SikuliModule
  StackTrace:
       at SikuliModule.Commander.ConsumeResult(String output, String error) in c:\Users\Angel\Dropbox\Projects\SikuliModule\SikuliModule\Commander.cs:line 94
       at SikuliModule.Commander.Execute(Command command, String mainPattern, String extraPattern, Single similarity, Int32 timeout) in c:\Users\Angel\Dropbox\Projects\SikuliModule\SikuliModule\Commander.cs:line 73
       at SikuliModule.SikuliAction.DoubleClick(String pattern) in c:\Users\Angel\Dropbox\Projects\SikuliModule\SikuliModule\SikuliAction.cs:line 58
       at ImagingServices.MouseTools.MarkupManager.MarkupManagerTests.Verify_Revert_ConfirmationBox() in c:\Users\THANGAMX\Documents\Visual Studio 2013\Projects\ImagingServices\ImagingServices\MouseTools\MarkupManager\MarkupManagerTests.cs:line 66
  InnerException: 

4.       DragDrop on an image throws the attached error “Win32Util.dll: %1 is not a valid Win32 application”
System.Exception was unhandled by user code
  HResult=-2146233088
  Message=Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\THANGAMX\Documents\Visual Studio 2013\Projects\ImagingServices\ImagingServices\bin\Debug\libs\Win32Util.dll: %1 is not a valid Win32 application
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(Unknown Source)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.load0(Unknown Source)
	at java.lang.System.load(Unknown Source)
	at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
	at org.sikuli.script.Win32Util.<clinit>(Win32Util.java:19)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.sikuli.script.Env.getOSUtil(Env.java:91)
	at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:180)
	at org.sikuli.script.ScreenHighlighter.<init>(ScreenHighlighter.java:293)
	at org.sikuli.script.Screen.initBounds(Screen.java:105)
	at org.sikuli.script.Screen.<init>(Screen.java:117)
	at com.sikuliintegrator.Operation.DoubleClick(Operation.java:93)
	at com.sikuliintegrator.Pointer.main(Pointer.java:102)

  Source=SikuliModule
  StackTrace:
       at SikuliModule.Commander.ConsumeResult(String output, String error) in c:\Users\Angel\Dropbox\Projects\SikuliModule\SikuliModule\Commander.cs:line 94
       at SikuliModule.Commander.Execute(Command command, String mainPattern, String extraPattern, Single similarity, Int32 timeout) in c:\Users\Angel\Dropbox\Projects\SikuliModule\SikuliModule\Commander.cs:line 73
       at SikuliModule.SikuliAction.DragDrop(String pattern) in c:\Users\Angel\Dropbox\Projects\SikuliModule\SikuliModule\SikuliAction.cs:line 58
       at ImagingServices.MouseTools.MarkupManager.MarkupManagerTests.Verify_Revert_ConfirmationBox() in c:\Users\THANGAMX\Documents\Visual Studio 2013\Projects\ImagingServices\ImagingServices\MouseTools\MarkupManager\MarkupManagerTests.cs:line 66
  InnerException: 

Troubleshooting we’ve tried so far:
1.       We tried to install 32 bit & 64 bit of JDK\JRE
2.       We tried to modify the class path of JDK location in system variable
3.       We tried the same set up in both 64 bit machine & 32 bit machine. Both machine shows same error. (We tried in VDI 64 bit Win 7 machine & local 32 bit Win 7 machine)
4.       We tried installing SikuliModule, Sikuli4Net
5.       Took help from CTS ACOE Team, still struggling to find a solution.
6.       Attached the list of online community solutions that we’ve tried 

Still double click and drag and drop methods are not working.


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.