This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258383 - Can not set com.sun.jna.platform.unix.X11$Xrender$PictFormat field com.sun.jna.platform.unix.X11$Xrender$XRenderPictFormat.id to com.sun.jna.platform.unix.X11$XID
Summary: Can not set com.sun.jna.platform.unix.X11$Xrender$PictFormat field com.sun.jn...
Status: RESOLVED DUPLICATE of bug 255079
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: PC Solaris
: P2 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-15 15:38 UTC by soldatov
Modified: 2016-03-17 06:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-03-15 15:38:12 UTC
>Log Session: Tuesday, March 15, 2016 6:32:19 PM MSK
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201603150001) (#c45ba99c9d05)
  Operating System        = SunOS version 5.11 running on amd64
  Java; VM; Vendor        = 1.8.0_72; Java HotSpot(TM) 64-Bit Server VM 25.72-b15; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_72-b15
  Java Home               = /usr/jdk/instances/jdk1.8.0/jre
  System Locale; Encoding = en_US (nb); UTF-8

When I launch NetBeans on my Solaris machine, I see such exception in messages.log

INFO [org.netbeans.core.nativeaccess.NativeWindowSystemImpl]
java.lang.IllegalArgumentException: Can not set com.sun.jna.platform.unix.X11$Xrender$PictFormat field com.sun.jna.platform.unix.X11$Xrender$XRenderPictFormat.id to com.sun.jna.platform.unix.X11$XID
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
	at java.lang.reflect.Field.set(Field.java:764)
	at com.sun.jna.Structure.setFieldValue(Structure.java:627)
	at com.sun.jna.Structure.readField(Structure.java:721)
	at com.sun.jna.Structure.read(Structure.java:565)
	at com.sun.jna.Structure.autoRead(Structure.java:2022)
	at com.sun.jna.Structure.conditionalAutoRead(Structure.java:534)
	at com.sun.jna.Function.invoke(Function.java:425)
	at com.sun.jna.Function.invoke(Function.java:323)
	at com.sun.jna.Library$Handler.invoke(Library.java:236)
	at com.sun.proxy.$Proxy12.XRenderFindVisualFormat(Unknown Source)
	at com.sun.jna.platform.WindowUtils$X11WindowUtils.getAlphaVisualIDs(WindowUtils.java:1559)
	at com.sun.jna.platform.WindowUtils$X11WindowUtils.isWindowAlphaSupported(WindowUtils.java:1487)
	at com.sun.jna.platform.WindowUtils.isWindowAlphaSupported(WindowUtils.java:1823)
[catch] at org.netbeans.core.nativeaccess.NativeWindowSystemImpl.isWindowAlphaSupported(NativeWindowSystemImpl.java:82)
	at org.netbeans.core.windows.FloatingWindowTransparencyManager$1.run(FloatingWindowTransparencyManager.java:90)
	at java.lang.Thread.run(Thread.java:745)
WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.sun.jna.Structure arbitrarily from one of ModuleCL@3e2dcdb2[org.netbeans.libs.jna] and ModuleCL@58b2c5a4[org.netbeans.libs.svnClientAdapter.svnkit] starting from SystemClassLoader[382 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.sun.jna.Function arbitrarily from one of ModuleCL@3e2dcdb2[org.netbeans.libs.jna] and ModuleCL@58b2c5a4[org.netbeans.libs.svnClientAdapter.svnkit] starting from SystemClassLoader[382 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.sun.jna.Library$Handler arbitrarily from one of ModuleCL@3e2dcdb2[org.netbeans.libs.jna] and ModuleCL@58b2c5a4[org.netbeans.libs.svnClientAdapter.svnkit] starting from SystemClassLoader[382 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.sun.jna.platform.WindowUtils$X11WindowUtils arbitrarily from one of ModuleCL@484d62a2[org.netbeans.libs.jna.platform] and ModuleCL@58b2c5a4[org.netbeans.libs.svnClientAdapter.svnkit] starting from SystemClassLoader[382 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.sun.jna.platform.WindowUtils arbitrarily from one of ModuleCL@484d62a2[org.netbeans.libs.jna.platform] and ModuleCL@58b2c5a4[org.netbeans.libs.svnClientAdapter.svnkit] starting from SystemClassLoader[382 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
Comment 2 sproger1 2016-03-15 19:40:34 UTC
Experiencing same issue on Linux Redhat machine.

Milutin Kiristofic's commit(revision 295431) for Bug 255079 https://netbeans.org/bugzilla/show_bug.cgi?id=255079 - Update JNA to 4.2.1) caused this.

Need to either roll back to version 4.1.0 or use a patched or newer version of the jna library that has the fix https://github.com/java-native-access/jna/pull/549
Comment 3 Vladimir Voskresensky 2016-03-17 06:17:40 UTC

*** This bug has been marked as a duplicate of bug 255079 ***