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

Summary: IllegalAccessException: Class org.netbeans.modules.sampler.SamplesOutputStream can not access a member of class sun.management.ThreadInfoCompositeData (module java.management) with modifiers "public s
Product: platform Reporter: Stepan Zebra <stezeb>
Component: JDK ProblemsAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: NEW ---    
Severity: normal CC: jiriprox, mbalin, ralphbenjamin, stezeb
Priority: P3 Keywords: JDK_9, NO81
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219991
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

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.