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 255352 - reflect.InaccessibleObjectException: Unable to make member of class com.sun.management.internal.OperatingSystemImpl accessible: module jdk.management does not export com.sun.management.internal to <u
Summary: reflect.InaccessibleObjectException: Unable to make member of class com.sun.m...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: JDK_9, NO81
Depends on:
Blocks:
 
Reported: 2015-09-17 09:02 UTC by Jiri Prox
Modified: 2019-07-19 10:03 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219978


Attachments
stacktrace (1.05 KB, text/plain)
2015-09-17 09:02 UTC, Jiri Prox
Details
stacktrace (1.05 KB, text/plain)
2015-09-17 09:20 UTC, Stepan Zebra
Details
stacktrace (1.05 KB, text/plain)
2015-09-17 12:05 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2015-09-17 09:02:45 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: Windows 7

User Comments:
jiriprox: Starting IDE on jdk9-jigsaw, fresh userdir




Stacktrace: 
java.lang.reflect.InaccessibleObjectException: Unable to make member of class com.sun.management.internal.OperatingSystemImpl accessible:  module jdk.management does not export com.sun.management.internal to <unnamed module @a93140f>
   at sun.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:462)
   at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:185)
   at java.lang.reflect.Method.checkCanSetAccessible(Method.java:188)
   at java.lang.reflect.Method.setAccessible(Method.java:182)
   at org.netbeans.core.ui.warmup.DiagnosticTask.logEnv(DiagnosticTask.java:97)
   at org.netbeans.core.ui.warmup.DiagnosticTask.run(DiagnosticTask.java:84)
Comment 1 Jiri Prox 2015-09-17 09:02:47 UTC
Created attachment 156229 [details]
stacktrace
Comment 2 Stepan Zebra 2015-09-17 09:20:29 UTC
Created attachment 156230 [details]
stacktrace

Just started this NB build 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: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 3 Jiri Skrivanek 2015-09-17 12:05:30 UTC
Created attachment 156242 [details]
stacktrace

Happened while staarting IDe with JDK9.
Comment 4 Jiri Kovalsky 2015-09-18 09:28:07 UTC
Not related to NetBeans 8.1.
Comment 5 Martin Balin 2015-09-21 13:42:27 UTC
Wrong NB build - Windows launcher error.
Comment 6 Tomas Hurka 2015-10-21 08:32:45 UTC
Fixed in profiler-main
changeset:   292615:874045c8030f
user:        Tomas Hurka <thurka@netbeans.org>
date:        Wed Oct 21 10:30:36 2015 +0200
summary:     bugfix #255352, use MBeanServer.getAttribute() instead of reflection
Comment 7 Quality Engineering 2015-10-22 01:27:22 UTC
Integrated into 'main-silver', will be available in build *201510220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/874045c8030f
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #255352, use MBeanServer.getAttribute() instead of reflection
Comment 8 vedantydv123 2019-07-19 10:03:20 UTC
In this time we can search so more things for the work https://foxdownload.org and its so good for the working.