Bug 271415 - JNA does load on JDK 9
JNA does load on JDK 9
Status: RESOLVED FIXED
Product: platform
Classification: Unclassified
Component: -- Other --
Dev
PC Windows 10
: P2 (vote)
: Dev
Assigned To: Tomas Hurka
issues@platform
: JDK_9
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-01 07:43 UTC by Tomas Hurka
Modified: 2017-09-01 07:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments
IDE log (94.92 KB, text/plain)
2017-09-01 07:43 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2017-09-01 07:43:00 UTC
Product Version = NetBeans IDE Dev (Build 201708300001)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 9
Runtime = Java HotSpot(TM) 64-Bit Server VM 9+181

Reproducibility: Happens every time

FINE [org.openide.util.lookup.MetaInfServicesLookup]: Cannot create class org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier
java.lang.UnsatisfiedLinkError: C:\Users\IEUser\AppData\Local\Temp\jna--2138670329\jna3288655567216056990.dll: Can't find dependent libraries
	at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2614)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2499)
	at java.base/java.lang.Runtime.load0(Runtime.java:812)
	at java.base/java.lang.System.load(System.java:1821)
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
	at com.sun.jna.Native.<clinit>(Native.java:140)
	at com.sun.jna.Pointer.<clinit>(Pointer.java:41)
	at org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.<clinit>(WindowsNotifier.java:139)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
	at java.base/java.lang.Class.newInstance(Class.java:558)
	at org.openide.util.lookup.implspi.SharedClassObjectBridge.newInstance(SharedClassObjectBridge.java:64)
[catch] at org.openide.util.lookup.MetaInfServicesLookup$Item.getInstance(MetaInfServicesLookup.java:514)
	at org.netbeans.modules.masterfs.watcher.Watcher.getNotifierForPlatform(Watcher.java:479)
	at org.netbeans.modules.masterfs.watcher.Watcher.<init>(Watcher.java:89)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
	at java.base/java.lang.Class.newInstance(Class.java:558)
	at org.openide.util.lookup.implspi.SharedClassObjectBridge.newInstance(SharedClassObjectBridge.java:64)
	at org.openide.util.lookup.MetaInfServicesLookup$Item.getInstance(MetaInfServicesLookup.java:514)
	at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:422)
	at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:222)
	at org.netbeans.modules.masterfs.watcher.Watcher.ext(Watcher.java:93)
	at org.netbeans.modules.masterfs.watcher.Watcher.isEnabled(Watcher.java:99)
	at org.netbeans.modules.masterfs.Installer.run(Installer.java:54)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 1 Tomas Hurka 2017-09-01 07:43:08 UTC
Created attachment 165067 [details]
IDE log
Comment 2 Tomas Hurka 2017-09-01 07:46:24 UTC
To see the exception, IDE must be started with 
-J-Dorg.openide.util.lookup.MetaInfServicesLookup.level=FINE
Comment 3 Tomas Hurka 2017-09-01 07:59:40 UTC
Fixed in profiler-main

changeset:   304030:e72d70e3fff1
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Sep 01 09:54:02 2017 +0200
summary:     bugfix #271451 - Upgrade JNA library to version 4.4.0


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo