← Back to team overview

sikuli-driver team mailing list archive

[Bug 1835908] Re: [1.1.4] Class com.sun.jna.Native not found --- fixed build #321

 

i tried running with debug and this is the output i get, before getting
the exception


[debug] RunTime:temp folder ok: C:\Users\vpurikov\AppData\Local\Temp\Sikulix_2039626687
> Options: *** options dump
> Options: testing = 
> Options: OptionsFile = C:\Users\vpurikov\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
> Options: *** options dump end
> ***** show environment for 1.1.4-SNAPSHOT-#321-2019-07-11_10:05 API
> user.home: C:\Users\vpurikov
> user.dir (work dir): C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server
> user.name: vpurikov
> java.io.tmpdir: C:\Users\vpurikov\AppData\Local\Temp
> running 64Bit(amd64) on w (10.0) from a jar
> java 12 version 12 vm 12.0.1+12 class 56.0 arch 64
> app data folder: C:\Users\vpurikov\AppData\Roaming\Sikulix
> executing jar: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\sikulixapi.jar
> *** classpath dump 
>   0: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\commons-codec-1.10.jar
>   1: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\commons-logging-1.2.jar
>   2: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\fluent-hc-4.5.5.jar
>   3: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\httpclient-4.5.5.jar
>   4: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\httpclient-cache-4.5.5.jar
>   5: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\httpclient-win-4.5.5.jar
>   6: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\httpcore-4.4.9.jar
>   7: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\httpmime-4.5.5.jar
>   8: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\jna-4.4.0.jar
>   9: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\jna-platform-4.4.0.jar
>  10: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\json-20131018.jar
>  11: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\CopyLibs\org-netbeans-modules-java-j2seproject-copylibstask.jar
>  12: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\sikulixapi.jar
>  13: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\lib\javaparser-core-3.14.4.jar
>  14: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\Java-WebSocket-1.4.0.jar
>  15: C:\Users\vpurikov\Desktop\Oleg-Server\Oleg-Server\build\classes
> *** classpath dump end
> ***** show environment end
> Black Shark: SetSize:1080:2160
> [154 debug] RunTime:libsExport: folder has wrong content: C:\Users\vpurikov\AppData\Roaming\Sikulix\SikulixLibs (1.1.4 - 201901131136)


Exception in thread "Thread-54" java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder$FindInput2
	at org.sikuli.script.Finder.<init>(Finder.java:36)
	at OlegServer.System.LoopTexture.lambda$new$1(LoopTexture.java:66)
	at java.base/java.lang.Thread.run(Thread.java:835)


Exception in thread "Thread-37" java.lang.NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;
	at org.sikuli.natives.SXUser32.<clinit>(SXUser32.java:9)
	at org.sikuli.natives.WinUtil.<clinit>(WinUtil.java:37)
	at org.sikuli.script.support.RunTime.addToWindowsSystemPath(RunTime.java:1631)
	at org.sikuli.script.support.RunTime.libsExport(RunTime.java:1574)
	at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1399)
	at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1603)
	at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:571)
	at org.sikuli.script.Finder$FindInput2.<clinit>(Finder.java:1210)
	at org.sikuli.script.Finder.<init>(Finder.java:36)
	at OlegServer.System.LoopTexture.lambda$new$1(LoopTexture.java:66)
	at java.base/java.lang.Thread.run(Thread.java:835)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1835908

Title:
  [1.1.4] Class com.sun.jna.Native not found --- fixed build #321

Status in Sikuli:
  Fix Committed

Bug description:
  Exception in thread "Thread-145" Exception in thread "Thread-133" java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder$FindInput2
  	at org.sikuli.script.Finder.<init>(Finder.java:36)
  	at OlegServer.Tests.MurderInAlpsTests.lambda$existingObjects$1(MurderInAlpsTests.java:2392)
  	at java.base/java.lang.Thread.run(Thread.java:835)
  java.lang.NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;
  	at org.sikuli.natives.SXUser32.<clinit>(SXUser32.java:9)
  	at org.sikuli.natives.WinUtil.<clinit>(WinUtil.java:37)
  	at org.sikuli.script.support.RunTime.addToWindowsSystemPath(RunTime.java:1631)
  	at org.sikuli.script.support.RunTime.libsExport(RunTime.java:1574)
  	at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1399)
  	at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1603)
  	at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:571)
  	at org.sikuli.script.Finder$FindInput2.<clinit>(Finder.java:1210)
  	at org.sikuli.script.Finder.<init>(Finder.java:36)
  	at OlegServer.Tests.MurderInAlpsTests.lambda$existingObjects$1(MurderInAlpsTests.java:2392)
  	at java.base/java.lang.Thread.run(Thread.java:835)

  
  i am getting these exception when running:
    Finder objFinder = new Finder(BufferedImage);
  This code worked fine on sikuli 1.1.4 and then stopped working after updating to latest 1.1.4 build

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1835908/+subscriptions


References