namedgraph opened a new issue, #8039:
URL: https://github.com/apache/netbeans/issues/8039
### Apache NetBeans version
Apache NetBeans 23
### What happened
Clicked "Take thread dump from the profiled process" button, got this error:
```
Exception in thread "*** Profiler Agent Communication Thread"
java.lang.RuntimeException: java.lang.IllegalAccessException: class
org.netbeans.lib.profiler.server.system.ThreadDump cannot access class
sun.management.ThreadInfoCompositeData (in module java.management) because
module java.management does not export sun.management to unnamed module
@6b884d57
at
org.netbeans.lib.profiler.server.system.ThreadDump.toCompositeData(ThreadDump.java:85)
at
org.netbeans.lib.profiler.server.system.ThreadDump.takeThreadDump(ThreadDump.java:71)
at
org.netbeans.lib.profiler.server.ProfilerServer.handleClientCommand(ProfilerServer.java:1664)
at
org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1753)
at
org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:676)
Caused by: java.lang.IllegalAccessException: class
org.netbeans.lib.profiler.server.system.ThreadDump cannot access class
sun.management.ThreadInfoCompositeData (in module java.management) because
module java.management does not export sun.management to unnamed module
@6b884d57
at
java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
at
java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
at java.base/java.lang.reflect.Method.invoke(Method.java:560)
at
org.netbeans.lib.profiler.server.system.ThreadDump.toCompositeData(ThreadDump.java:83)
... 4 more
```
### Language / Project Type / NetBeans Component
Java Maven project
### How to reproduce
1. Generated the calibration pack for Linux x64 on Netbeans Windows 10
2. Placed the pack into an application running on Docker with a WSL 2 Ubuntu
backend
3. Profiler successfully connected to the application on localhost
4. Tried to take a thread dump
### Did this work correctly in an earlier version?
Apache NetBeans 16 or earlier
### Operating System
WSL 2 Ubuntu / Win 10
### JDK
17
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists