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 255366 - IllegalAccessException: Class org.netbeans.modules.sampler.SamplesOutputStream can not access a member of class sun.management.ThreadInfoCompositeData (module java.management) with modifiers "public s
Summary: IllegalAccessException: Class org.netbeans.modules.sampler.SamplesOutputStrea...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_9, NO81
: 262565 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-17 12:59 UTC by Stepan Zebra
Modified: 2016-06-27 07:49 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219991


Attachments
stacktrace (2.00 KB, text/plain)
2015-09-17 12:59 UTC, Stepan Zebra
Details
stacktrace (2.00 KB, text/plain)
2015-09-17 14:41 UTC, Stepan Zebra
Details
stacktrace (2.00 KB, text/plain)
2015-09-18 14:47 UTC, Jiri Prox
Details
stacktrace (2.00 KB, text/plain)
2015-09-22 13:33 UTC, Stepan Zebra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stepan Zebra 2015-09-17 12:59:49 UTC
Build: NetBeans Dev JDK9 branch (Build 20150915-63db74ce1bef)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81, Java(TM) SE Runtime Environment, 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
OS: Linux

User Comments:
stezeb: Activating JavaSE plugin on following configuration:

Product Version: NetBeans Dev JDK9 branch (Build 20150915-63db74ce1bef)
Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
System: Linux version 2.6.32-504.16.2.el6.x86_64 running on amd64; UTF-8; en_US (nb)




Stacktrace: 
java.lang.IllegalAccessException: Class org.netbeans.modules.sampler.SamplesOutputStream can not access a member of class sun.management.ThreadInfoCompositeData (module java.management) with modifiers "public static", module java.management does not export sun.management to <unnamed module @a3ea0be>
   at sun.reflect.Reflection.throwIllegalAccessException(Reflection.java:453)
   at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:128)
   at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:370)
   at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:362)
   at java.lang.reflect.Method.invoke(Method.java:524)
   at org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:201)
Comment 1 Stepan Zebra 2015-09-17 12:59:51 UTC
Created attachment 156246 [details]
stacktrace
Comment 2 Stepan Zebra 2015-09-17 14:41:35 UTC
Created attachment 156253 [details]
stacktrace

Creating new Maven Web project on:

Product Version: NetBeans Dev JDK9 branch (Build 20150915-63db74ce1bef)
Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
System: Linux version 2.6.32-504.16.2.el6.x86_64 running on amd64; UTF-8; en_US (nb)
Comment 3 Jiri Kovalsky 2015-09-18 09:27:17 UTC
Not related to NetBeans 8.1.
Comment 4 Jiri Prox 2015-09-18 14:47:41 UTC
Created attachment 156280 [details]
stacktrace

Creating java2se project
Comment 5 Stepan Zebra 2015-09-22 13:33:23 UTC
Created attachment 156350 [details]
stacktrace

activating features on

Product Version: NetBeans Dev JDK9 branch (Build 20150918-951c25ccfea0)
Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
System: Linux version 2.6.32-504.16.2.el6.x86_64 running on amd64; UTF-8; en_US (nb)
Comment 6 Tomas Hurka 2016-06-24 14:14:26 UTC
*** Bug 262565 has been marked as a duplicate of this bug. ***
Comment 7 Martin Balin 2016-06-27 07:49:00 UTC
There must be special command line arguments passed to NetBeans IDE on startup to export some unexported packages, see:
http://wiki.netbeans.org/JDK9Support#Running_NetBeans_on_JDK9_EA_as_run_time_Java_platform
This is part of JDK9 branch installers & launchers.
Keeping open as we can get more reports like this.