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 255361 - 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: VERIFIED 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 12:02 UTC by Jiri Skrivanek
Modified: 2016-06-21 10:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219990


Attachments
stacktrace (1.85 KB, text/plain)
2015-09-17 12:02 UTC, Jiri Skrivanek
Details
stacktrace (1.85 KB, text/plain)
2015-10-21 08:36 UTC, Tomas Hurka
Details

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

User Comments:
jskrivanek: Happened while starting IDE with JDK9.




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 @1f75167e>
   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.modules.welcome.FeedbackSurvey.start(FeedbackSurvey.java:71)
   at org.netbeans.modules.welcome.Installer.run(Installer.java:93)
Comment 1 Jiri Skrivanek 2015-09-17 12:02:49 UTC
Created attachment 156241 [details]
stacktrace
Comment 2 Tomas Hurka 2015-10-21 08:36:27 UTC
Created attachment 156864 [details]
stacktrace

Jigsaw
Comment 3 Tomas Hurka 2015-10-21 08:47:41 UTC
Fixed in profiler-main

changeset:   292616:f89a3ca804b9
user:        Tomas Hurka <thurka@netbeans.org>
date:        Wed Oct 21 10:43:49 2015 +0200
summary:     bugfix #255361, use MBeanServer.getAttribute() instead of reflection
Comment 4 Quality Engineering 2015-10-22 01:27:26 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/f89a3ca804b9
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #255361, use MBeanServer.getAttribute() instead of reflection