You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "namedgraph (via GitHub)" <gi...@apache.org> on 2024/12/11 21:07:27 UTC

[I] Thread dumps don't work in profiler [netbeans]

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: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [I] Thread dumps don't work in profiler [netbeans]

Posted by "JoachimRohde (via GitHub)" <gi...@apache.org>.
JoachimRohde commented on issue #8039:
URL: https://github.com/apache/netbeans/issues/8039#issuecomment-2538057329

   I assume this is related to https://github.com/apache/netbeans/issues/7323


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [I] Thread dumps don't work in profiler [netbeans]

Posted by "namedgraph (via GitHub)" <gi...@apache.org>.
namedgraph commented on issue #8039:
URL: https://github.com/apache/netbeans/issues/8039#issuecomment-2537217561

   This is from the webapp's Docker container that I was trying to take a thread dump of:
   ```
   openjdk 17.0.5 2022-10-18
   OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8)
   OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode, sharing)
   ```


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists