oracle / visualvm

VisualVM is an All-in-One Java Troubleshooting Tool
https://visualvm.github.io/
Other
2.89k stars 306 forks source link

Clicking a running application causes VisualVM to freeze #374

Open L12C opened 2 years ago

L12C commented 2 years ago

Describe the bug Clicking (Both left- and right-clicking) a running local application causes VisualVM to freeze.

To Reproduce This will probably not reproduce it for you, but it's all I did

  1. Open VisualVM
  2. Start other Java Application (from command line)
  3. VisualVM displays the running application
  4. Click the application in the list in VisualVM
  5. VisualVM freezes for ~60 seconds
  6. After VisualVM unfreezes, it shows "Opening (PID ...) in the bottom right corner
  7. A couple of seconds later, it displays an error icon in the bottom right corner
  8. Clicking that icon reveals this error text:
    java.lang.NullPointerException: Cannot invoke "java.util.Properties.getProperty(String, String)" because "props" is null
    at org.graalvm.visualvm.sampler.truffle.SamplerSupport.isRunningOnGraalVM(SamplerSupport.java:86)
    at org.graalvm.visualvm.sampler.truffle.SamplerSupport.supportsProfiling(SamplerSupport.java:65)
    at org.graalvm.visualvm.sampler.truffle.ApplicationSamplerViewProvider.supportsViewFor(ApplicationSamplerViewProvider.java:40)
    at org.graalvm.visualvm.sampler.truffle.ApplicationSamplerViewProvider.supportsViewFor(ApplicationSamplerViewProvider.java:37)
    at org.graalvm.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsManager.java:136)
    at org.graalvm.visualvm.core.ui.DataSourceWindowManager.openWindowAndAddView(DataSourceWindowManager.java:262)
    at org.graalvm.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWindowManager.java:52)
    at org.graalvm.visualvm.core.ui.DataSourceWindowManager$2.run(DataSourceWindowManager.java:121)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

Expected behavior VisualVM should open the view for this running process

VisualVM log

Click to expand ``` ------------------------------------------------------------------------------- >Log Session: Sunday, December 19, 2021 at 11:54:20 PM Central European Standard Time >System Info: Product Version = VisualVM 2.1 Operating System = Linux version 5.15.7-arch1-1 running on amd64 Java; VM; Vendor = 17.0.1; OpenJDK 64-Bit Server VM 17.0.1+12; N/A Runtime = OpenJDK Runtime Environment 17.0.1+12 Java Home = /usr/lib/jvm/java-17-openjdk System Locale; Encoding = de_DE (visualvm); UTF-8 Home Directory = /home/user Current Directory = /home/user User Directory = /home/user/.visualvm/2.1 Cache Directory = /home/user/.cache/visualvm/2.1 Installation = /usr/share/visualvm/visualvm /usr/share/visualvm/platform Boot & Ext. Classpath = Application Classpath = /usr/share/visualvm/platform/lib/boot.jar:/usr/share/visualvm/platform/lib/org-openide-modules.jar:/usr/share/visualvm/platform/lib/org-openide-util.jar:/usr/share/visualvm/platform/lib/org-openide-util-lookup.jar:/usr/share/visualvm/platform/lib/org-openide-util-ui.jar Startup Classpath = /usr/share/visualvm/platform/core/core-base.jar:/usr/share/visualvm/platform/core/asm-commons-8.0.1.jar:/usr/share/visualvm/platform/core/core.jar:/usr/share/visualvm/platform/core/org-netbeans-libs-asm.jar:/usr/share/visualvm/platform/core/asm-8.0.1.jar:/usr/share/visualvm/platform/core/org-openide-filesystems.jar:/usr/share/visualvm/platform/core/asm-tree-8.0.1.jar:/usr/share/visualvm/visualvm/core/org-graalvm-visualvm-modules-startup.jar:/usr/share/visualvm/visualvm/core/locale/core_visualvm.jar ------------------------------------------------------------------------------- INFO [org.netbeans.core.startup.NbEvents]: Turning on modules: org.openide.util.lookup [8.46 20210621-2172674416] org.openide.util [9.19 20210621-2172674416] org.openide.util.ui [9.20 20210621-2172674416] org.openide.modules [7.60 20210621-2172674416] org.netbeans.api.annotations.common/1 [1.40 20210621-2172674416] org.openide.filesystems [9.23 20210621-2172674416] org.openide.awt [7.80 20210621-2172674416] org.netbeans.api.progress/1 [1.60 20210621-2172674416] org.netbeans.api.progress.nb [1.60 20210621-2172674416] org.openide.dialogs [7.54 20210621-2172674416] org.openide.nodes [7.57 20210621-2172674416] org.openide.windows [6.89 20210621-2172674416] org.netbeans.modules.editor.mimelookup/1 [1.52 20210621-2172674416] org.openide.text [6.80 20210621-2172674416] org.netbeans.api.scripting [1.9 20210621-2172674416] org.netbeans.swing.tabcontrol [1.68 20210621-2172674416] org.netbeans.swing.outline [1.46 20210621-2172674416] org.openide.explorer [6.74 20210621-2172674416] org.openide.actions [6.51 20210621-2172674416] org.netbeans.modules.queries/1 [1.55 20210621-2172674416] org.netbeans.api.templates [1.20 20210621-2172674416] org.openide.filesystems.nb [9.22 20210621-2172674416] org.openide.loaders [7.81 20210621-2172674416] org.netbeans.api.intent [1.14 20210621-2172674416] org.netbeans.api.io [1.15 20210621-2172674416] org.openide.io [1.61 20210621-2172674416] org.netbeans.swing.plaf [1.54 20210621-2172674416] org.netbeans.modules.keyring [1.36 20210621-2172674416] org.netbeans.libs.asm [5.15 20210621-2172674416] org.netbeans.bootstrap/1 [2.90 20210621-2172674416] org.netbeans.core.startup.base [1.74.0.1 1 20210621-2172674416] org.netbeans.core.startup/1 [1.74.0.1 20210621-2172674416] org.netbeans.modules.sampler [1.26 20210621-2172674416] org.netbeans.core/2 [3.63 20210621-2172674416] org.netbeans.spi.quicksearch [1.39 20210621-2172674416] org.netbeans.modules.options.api/1 [1.57 20210621-2172674416] org.netbeans.libs.flatlaf/1 [1.6 20210621-2172674416] org.netbeans.swing.laf.flatlaf [1.5 20210621-2172674416] org.netbeans.modules.settings/1 [1.61 20210621-2172674416] org.netbeans.modules.sendopts/2 [2.48 20210621-2172674416] org.netbeans.modules.progress.ui [1.45 20210621-2172674416] org.netbeans.modules.options.keymap [1.49 20210621-2172674416] org.netbeans.modules.masterfs/2 [2.67.0.2 2 20210621-2172674416] org.netbeans.modules.masterfs.ui [2.15.0.2 20210621-2172674416] org.netbeans.modules.masterfs.nio2 [1.27 20210621-2172674416] org.netbeans.libs.jna/2 [2.7 20210621-2172674416] org.netbeans.modules.masterfs.linux [1.25 20210621-2172674416] org.netbeans.modules.keyring.fallback [1.20 20210621-2172674416] org.netbeans.modules.keyring.impl [1.36 20210621-2172674416] org.netbeans.modules.editor.mimelookup.impl/1 [1.44 20210621-2172674416] org.netbeans.modules.autoupdate.services [1.67 20210621-2172674416] org.netbeans.modules.autoupdate.ui [1.58 20210621-2172674416] org.netbeans.modules.autoupdate.cli [1.25 20210621-2172674416] org.netbeans.libs.jna.platform/2 [2.7 20210621-2172674416] org.netbeans.core.windows/2 [2.97 20210621-2172674416] org.netbeans.core.ui/1 [1.57 20210621-2172674416] org.netbeans.core.network [1.24 20210621-2172674416] org.netbeans.core.nativeaccess/1 [1.43 20210621-2172674416] org.netbeans.core.multitabs/1 [1.24.0.1 1 20210621-2172674416] org.netbeans.core.io.ui/1 [1.42 20210621-2172674416] org.graalvm.visualvm.lib.jfluid/2 [2.9 210708] org.graalvm.visualvm.lib.charts/2 [2.0 210708] org.graalvm.visualvm.lib.common/2 [2.4 210708] org.graalvm.visualvm.lib.profiler.api/2 [2.2 210708] org.graalvm.visualvm.lib.ui/2 [2.4 210708] org.graalvm.visualvm.uisupport/2 [2.1 210708] org.graalvm.visualvm.core/2 [2.4 210708] org.graalvm.visualvm.host/2 [2.1 210708] org.graalvm.visualvm.application/2 [2.2 210708] org.graalvm.visualvm.tools/2 [2.2 210708] org.graalvm.visualvm.coredump/2 [2.1 210708] org.graalvm.visualvm.threaddump/2 [2.1 210708] org.graalvm.visualvm.lib.profiler.utilities/2 [2.0 210708] org.graalvm.visualvm.lib.profiler.attach/2 [2.0 210708] org.graalvm.visualvm.lib.profiler/2 [2.4 210708] org.graalvm.visualvm.lib.profiler.snaptracer/2 [2.0 210708] org.graalvm.visualvm.profiling/2 [2.3 210708] org.graalvm.visualvm.lib.profiler.oql/2 [2.0 210708] org.graalvm.visualvm.lib.profiler.heapwalker/2 [2.1 210708] org.graalvm.visualvm.heapviewer/2 [2.3 210708] org.graalvm.visualvm.heapdump/2 [2.1 210708] org.graalvm.visualvm.sampler.truffle/2 [2.1 210708] org.graalvm.visualvm.sampler/2 [2.2 210708] org.graalvm.visualvm.sa/2 [2.0 210708] org.graalvm.visualvm.modules.startup/2 [2.1 210708] org.graalvm.visualvm.profiler/2 [2.1 210708] org.graalvm.visualvm.pluginimporter [1.0 210708] org.graalvm.visualvm.modules.appui/2 [2.1 210708] org.graalvm.visualvm.jvmstat/2 [2.0 210708] org.graalvm.visualvm.jvm/2 [2.0 210708] org.graalvm.visualvm.jmx/2 [2.2 210708] org.graalvm.visualvm.charts/2 [2.0 210708] org.graalvm.visualvm.jfr/2 [2.3 210708] org.graalvm.visualvm.jfr.jdk9/2 [2.1 210708] org.graalvm.visualvm.jfr.jdk11/2 [2.1 210708] org.graalvm.visualvm.jfr.generic/2 [2.1 210708] org.graalvm.visualvm.host.views/2 [2.0 210708] org.graalvm.visualvm.host.remote/2 [2.0 210708] org.graalvm.visualvm.heapviewer.truffle/2 [2.0 210708] org.graalvm.visualvm.heapviewer.console/2 [2.0 210708] org.graalvm.visualvm.application.views/2 [2.0 210708] org.graalvm.visualvm.graalvm/2 [2.0 210708] org.graalvm.visualvm.gotosource/2 [2.0 210708] org.graalvm.visualvm.attach/2 [2.0 210708] Cannot initialize GTK colors - using hardcoded defaults: java.lang.reflect.InaccessibleObjectException: Unable to make protected abstract java.awt.Color javax.swing.plaf.synth.SynthStyle.getColorForState(javax.swing.plaf.synth.SynthContext,javax.swing.plaf.synth.ColorType) accessible: module java.desktop does not "opens javax.swing.plaf.synth" to unnamed module @400efd6e INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: no suitable found, using fallback. INFO [org.netbeans.core.network.proxy.fallback.FallbackNetworkProxy]: Fallback system proxy resolver: no http_proxy variable found INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded. INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: direct INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy: fell to default (correct if direct mode went before) INFO [org.netbeans.ui.metrics.laf]: USG_LOOK_AND_FEEL Diagnostic information Input arguments: -Djdk.home=/usr/lib/jvm/default -Dnetbeans.default_userdir_root=/home/user/.visualvm -Dnetbeans.dirs=/usr/share/visualvm/visualvm: -Dnetbeans.home=/usr/share/visualvm/platform -Dawt.useSystemAAFontSettings=on -Xms24m -Xmx768m -Dnetbeans.accept_license_class=org.graalvm.visualvm.modules.startup.AcceptLicense -Dnetbeans.importclass=org.graalvm.visualvm.modules.startup.ImportSettings -Dsun.jvmstat.perdata.syncWaitMs=10000 -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dorg.netbeans.core.TimeableEventQueue.quantum=360000 -Dpolyglot.js.nashorn-compat=true -Dsun.misc.URLClassPath.disableJarChecking=true -Djdk.attach.allowAttachSelf=true -Dorg.openide.util.ImageUtilities.level=950 --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor.event=ALL-UNNAMED --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-exports=java.desktop/sun.swing=ALL-UNNAMED --add-exports=jdk.attach/sun.tools.attach=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/user/.visualvm/2.1/var/log/heapdump.hprof Compiler: HotSpot 64-Bit Tiered Compilers Heap memory usage: initial 24,0MB maximum 768,0MB Non heap memory usage: initial 7,3MB maximum -1b Garbage collector: G1 Young Generation (Collections=11 Total time spent=0s) Garbage collector: G1 Old Generation (Collections=0 Total time spent=0s) Classes: loaded=6079 total loaded=6079 unloaded 0 INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 16.715.952.128 INFO [null]: Total physical memory 16.715.952.128 INFO [org.graalvm.visualvm.attach.AttachModelImpl]: executeJCmd com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:104) at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58) at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207) at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:291) Caused: java.io.IOException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:293) [catch] at org.graalvm.visualvm.attach.AttachModelImpl.executeJCmd(AttachModelImpl.java:366) at org.graalvm.visualvm.attach.AttachModelImpl.isJfrAvailable(AttachModelImpl.java:191) at org.graalvm.visualvm.jvm.JVMImpl.isJfrAvailable(JVMImpl.java:513) at org.graalvm.visualvm.jfr.JFRSnapshotSupport.supportsJfrStart(JFRSnapshotSupport.java:169) at org.graalvm.visualvm.jfr.impl.JFRStartAction.isEnabled(JFRStartAction.java:95) at org.graalvm.visualvm.core.ui.actions.MultiDataSourceAction.updateState(MultiDataSourceAction.java:76) at org.graalvm.visualvm.jfr.impl.JFRStartAction.updateState(JFRStartAction.java:117) at org.graalvm.visualvm.core.ui.actions.DataSourceAction$1.selectionChanged(DataSourceAction.java:87) at org.graalvm.visualvm.core.explorer.ExplorerSupport$ExplorerTreeSelectionListener.valueChanged(ExplorerSupport.java:272) at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:3019) at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3520) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:650) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1120) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:306) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:200) at java.desktop/javax.swing.JTree.setSelectionPath(JTree.java:1708) at java.desktop/javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2764) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:4099) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:4038) at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6623) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at org.graalvm.visualvm.core.explorer.ExplorerComponent$1.processMouseEvent(ExplorerComponent.java:110) at java.desktop/java.awt.Component.processEvent(Component.java:6391) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) INFO [org.graalvm.visualvm.attach.AttachModelImpl]: getSystemProperties com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:104) at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58) at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207) at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:291) Caused: java.io.IOException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:293) [catch] at org.graalvm.visualvm.attach.AttachModelImpl.getSystemProperties(AttachModelImpl.java:95) at org.graalvm.visualvm.jvm.JVMImpl.getSystemProperties(JVMImpl.java:342) at org.graalvm.visualvm.profiler.ProfilerSupport.getJVMArchitecture(ProfilerSupport.java:382) at org.graalvm.visualvm.profiler.ProfilerSupport.supportsProfiling(ProfilerSupport.java:303) at org.graalvm.visualvm.profiler.ProfileApplicationAction.isEnabled(ProfileApplicationAction.java:70) at org.graalvm.visualvm.profiler.ProfileApplicationAction.isEnabled(ProfileApplicationAction.java:42) at org.graalvm.visualvm.core.ui.actions.SingleDataSourceAction.updateState(SingleDataSourceAction.java:77) at org.graalvm.visualvm.profiler.ProfileApplicationAction.updateState(ProfileApplicationAction.java:78) at org.graalvm.visualvm.core.ui.actions.DataSourceAction$1.selectionChanged(DataSourceAction.java:87) at org.graalvm.visualvm.core.explorer.ExplorerSupport$ExplorerTreeSelectionListener.valueChanged(ExplorerSupport.java:272) at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:3019) at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3520) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:650) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1120) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:306) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:200) at java.desktop/javax.swing.JTree.setSelectionPath(JTree.java:1708) at java.desktop/javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2764) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:4099) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:4038) at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6623) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at org.graalvm.visualvm.core.explorer.ExplorerComponent$1.processMouseEvent(ExplorerComponent.java:110) at java.desktop/java.awt.Component.processEvent(Component.java:6391) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) INFO [org.graalvm.visualvm.sa.SaModelProvider]: Error getting SA agent sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 18340: Die Operation ist nicht erlaubt at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method) at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1AttachTask.doit(LinuxDebuggerLocal.java:336) at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:162) Caused: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 18340: Die Operation ist nicht erlaubt at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:187) at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:345) at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:648) at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:586) at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:367) at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:336) at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:141) Caused: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.graalvm.visualvm.sa.SAObject.invoke(SAObject.java:107) at org.graalvm.visualvm.sa.Agent.attach(Agent.java:64) at org.graalvm.visualvm.sa.SaModelImpl.attach(SaModelImpl.java:118) at org.graalvm.visualvm.sa.SaModelImpl.readData(SaModelImpl.java:126) at org.graalvm.visualvm.sa.SaModelImpl.(SaModelImpl.java:52) [catch] at org.graalvm.visualvm.sa.SaModelProvider.createModelFor(SaModelProvider.java:85) at org.graalvm.visualvm.sa.SaModelProvider.createModelFor(SaModelProvider.java:46) at org.graalvm.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:105) at org.graalvm.visualvm.tools.sa.SaModelFactory.getSAAgentFor(SaModelFactory.java:65) at org.graalvm.visualvm.jvm.JVMImpl.getSAAgent(JVMImpl.java:597) at org.graalvm.visualvm.jvm.JVMImpl.getSystemProperties(JVMImpl.java:353) at org.graalvm.visualvm.profiler.ProfilerSupport.getJVMArchitecture(ProfilerSupport.java:382) at org.graalvm.visualvm.profiler.ProfilerSupport.supportsProfiling(ProfilerSupport.java:303) at org.graalvm.visualvm.profiler.ProfileApplicationAction.isEnabled(ProfileApplicationAction.java:70) at org.graalvm.visualvm.profiler.ProfileApplicationAction.isEnabled(ProfileApplicationAction.java:42) at org.graalvm.visualvm.core.ui.actions.SingleDataSourceAction.updateState(SingleDataSourceAction.java:77) at org.graalvm.visualvm.profiler.ProfileApplicationAction.updateState(ProfileApplicationAction.java:78) at org.graalvm.visualvm.core.ui.actions.DataSourceAction$1.selectionChanged(DataSourceAction.java:87) at org.graalvm.visualvm.core.explorer.ExplorerSupport$ExplorerTreeSelectionListener.valueChanged(ExplorerSupport.java:272) at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:3019) at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3520) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:650) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1120) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:306) at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:200) at java.desktop/javax.swing.JTree.setSelectionPath(JTree.java:1708) at java.desktop/javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2764) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:4099) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:4038) at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6623) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at org.graalvm.visualvm.core.explorer.ExplorerComponent$1.processMouseEvent(ExplorerComponent.java:110) at java.desktop/java.awt.Component.processEvent(Component.java:6391) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) INFO [org.graalvm.visualvm.attach.AttachModelImpl]: printFlag com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:104) at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58) at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207) at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:291) Caused: java.io.IOException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:293) [catch] at org.graalvm.visualvm.attach.AttachModelImpl.printFlag(AttachModelImpl.java:133) at org.graalvm.visualvm.jvm.JVMImpl.isDumpOnOOMEnabled(JVMImpl.java:258) at org.graalvm.visualvm.heapdump.impl.HeapDumpOnOOMEAction.updateState(HeapDumpOnOOMEAction.java:87) at org.graalvm.visualvm.heapdump.impl.HeapDumpOnOOMEAction.isEnabled(HeapDumpOnOOMEAction.java:81) at org.graalvm.visualvm.heapdump.impl.HeapDumpOnOOMEAction.isEnabled(HeapDumpOnOOMEAction.java:50) at org.graalvm.visualvm.core.ui.actions.SingleDataSourceAction.updateState(SingleDataSourceAction.java:77) at org.graalvm.visualvm.heapdump.impl.HeapDumpOnOOMEAction.updateState(HeapDumpOnOOMEAction.java:95) at org.graalvm.visualvm.core.ui.actions.DataSourceAction.initialize(DataSourceAction.java:92) at org.graalvm.visualvm.core.ui.actions.DataSourceAction.doInitialize(DataSourceAction.java:124) at org.graalvm.visualvm.core.ui.actions.DataSourceAction.isEnabled(DataSourceAction.java:101) at org.graalvm.visualvm.core.explorer.ExplorerContextMenuFactory.getActions(ExplorerContextMenuFactory.java:172) at org.graalvm.visualvm.core.explorer.ExplorerContextMenuFactory.getSelectionActions(ExplorerContextMenuFactory.java:128) at org.graalvm.visualvm.core.explorer.ExplorerContextMenuFactory.getActions(ExplorerContextMenuFactory.java:122) at org.graalvm.visualvm.core.explorer.ExplorerContextMenuFactory.createPopupMenu(ExplorerContextMenuFactory.java:74) at org.graalvm.visualvm.core.explorer.ExplorerComponent.displayContextMenu(ExplorerComponent.java:204) at org.graalvm.visualvm.core.explorer.ExplorerComponent.access$800(ExplorerComponent.java:68) at org.graalvm.visualvm.core.explorer.ExplorerComponent$ExplorerTreeMouseAdapter.mousePressed(ExplorerComponent.java:247) at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:288) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6623) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at org.graalvm.visualvm.core.explorer.ExplorerComponent$1.processMouseEvent(ExplorerComponent.java:110) at java.desktop/java.awt.Component.processEvent(Component.java:6391) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) INFO [org.graalvm.visualvm.attach.AttachModelImpl]: getSystemProperties com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:104) at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58) at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207) at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:291) Caused: java.io.IOException: Unable to open socket file /proc/18340/root/tmp/.java_pid18340: target process 18340 doesn't respond within 10500ms or HotSpot VM not loaded at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:293) [catch] at org.graalvm.visualvm.attach.AttachModelImpl.getSystemProperties(AttachModelImpl.java:95) at org.graalvm.visualvm.jvm.JVMImpl.getSystemProperties(JVMImpl.java:342) at org.graalvm.visualvm.sampler.truffle.SamplerSupport.isRunningOnGraalVM(SamplerSupport.java:85) at org.graalvm.visualvm.sampler.truffle.SamplerSupport.supportsProfiling(SamplerSupport.java:65) at org.graalvm.visualvm.sampler.truffle.ApplicationSamplerViewProvider.supportsViewFor(ApplicationSamplerViewProvider.java:40) at org.graalvm.visualvm.sampler.truffle.ApplicationSamplerViewProvider.supportsViewFor(ApplicationSamplerViewProvider.java:37) at org.graalvm.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsManager.java:136) at org.graalvm.visualvm.core.ui.DataSourceWindowManager.openWindowAndAddView(DataSourceWindowManager.java:262) at org.graalvm.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWindowManager.java:52) at org.graalvm.visualvm.core.ui.DataSourceWindowManager$2.run(DataSourceWindowManager.java:121) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.graalvm.visualvm.core.ui.DataSourceWindowManager$2 java.lang.NullPointerException: Cannot invoke "java.util.Properties.getProperty(String, String)" because "props" is null at org.graalvm.visualvm.sampler.truffle.SamplerSupport.isRunningOnGraalVM(SamplerSupport.java:86) at org.graalvm.visualvm.sampler.truffle.SamplerSupport.supportsProfiling(SamplerSupport.java:65) at org.graalvm.visualvm.sampler.truffle.ApplicationSamplerViewProvider.supportsViewFor(ApplicationSamplerViewProvider.java:40) at org.graalvm.visualvm.sampler.truffle.ApplicationSamplerViewProvider.supportsViewFor(ApplicationSamplerViewProvider.java:37) at org.graalvm.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsManager.java:136) at org.graalvm.visualvm.core.ui.DataSourceWindowManager.openWindowAndAddView(DataSourceWindowManager.java:262) at org.graalvm.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWindowManager.java:52) at org.graalvm.visualvm.core.ui.DataSourceWindowManager$2.run(DataSourceWindowManager.java:121) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) ```

Desktop:

Additional context

thurka commented 2 years ago

NPE is fixed by GH-368. BTW: You are running VisualVM 2.1, not 2.1.1 as mentioned above.

L12C commented 2 years ago

You're right about the version, I misread the package version which is 2.1-1.

Unfortunately, I wasn't able to build the current master branch to verify this fixes the error

Build Log ``` Buildfile: /home/user/visualvm/visualvm/build.xml -taskdefs: -init-build-dir: -convert-old-project: [mkdir] Created dir: /home/user/visualvm/visualvm/build -init: branding: [mkdir] Created dir: /home/user/visualvm/visualvm/build/cluster [jar] Building jar: /home/user/visualvm/visualvm/build/cluster/modules/ext/locale/updater_visualvm.jar [jar] Building jar: /home/user/visualvm/visualvm/build/cluster/modules/locale/org-netbeans-modules-autoupdate-ui_visualvm.jar [jar] Building jar: /home/user/visualvm/visualvm/build/cluster/modules/locale/org-netbeans-core-windows_visualvm.jar [jar] Building jar: /home/user/visualvm/visualvm/build/cluster/modules/locale/org-netbeans-modules-profiler_visualvm.jar [jar] Building jar: /home/user/visualvm/visualvm/build/cluster/modules/locale/org-netbeans-core_visualvm.jar [jar] Building jar: /home/user/visualvm/visualvm/build/cluster/core/locale/core_visualvm.jar -release.dir: -release.files: files-init: release: -hide-excluded-modules: [mkdir] Created dir: /home/user/visualvm/visualvm/build/cluster/config/Modules build: taskdefs: -build-dir-init: -convert-old-project: common-init: -jdk-pre-preinit: -jdk-preinit: -jdk-warn: -jdk-presetdef-basic: -jdk-default: -jdk-init: projectized-common.basic-init: basic-init: -release.dir: -release.files: files-init: nbm-license-init: build-init: [mkdir] Created dir: /home/user/visualvm/visualvm/build/public-package-jars Scanning for modules in /home/user/visualvm/visualvm/netbeans/platform Scanning for modules in suite /home/user/visualvm/visualvm [parseprojectxml] Distilling /home/user/visualvm/visualvm/build/public-package-jars/org-openide-util-lookup.jar from [/home/user/visualvm/visualvm/netbeans/platform/lib/org-openide-util-lookup.jar] -javac-init-nbjdk: -javac-init-bootclasspath-prepend: -javac-init-no-bootclasspath-prepend: -javac-init: init: up-to-date: -pre-compile: -do-compile: [mkdir] Created dir: /home/user/visualvm/visualvm/caching.api/build/classes [nb-javac] Compiling 14 source files to /home/user/visualvm/visualvm/caching.api/build/classes [nb-javac] Ignoring source, target and bootclasspath as release has been set [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/EntryFactory.java:41: warning: [rawtypes] found raw type: EntryFactory [nb-javac] final public static EntryFactory DEFAULT = new EntryFactory() { [nb-javac] ^ [nb-javac] missing type arguments for generic class EntryFactory [nb-javac] where K,V are type-variables: [nb-javac] K extends Object declared in interface EntryFactory [nb-javac] V extends Object declared in interface EntryFactory [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/EntryFactory.java:41: warning: [rawtypes] found raw type: EntryFactory [nb-javac] final public static EntryFactory DEFAULT = new EntryFactory() { [nb-javac] ^ [nb-javac] missing type arguments for generic class EntryFactory [nb-javac] where K,V are type-variables: [nb-javac] K extends Object declared in interface EntryFactory [nb-javac] V extends Object declared in interface EntryFactory [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/EntryFactory.java:44: warning: [rawtypes] found raw type: Entry [nb-javac] public Entry createEntry(Object key) { [nb-javac] ^ [nb-javac] missing type arguments for generic class Entry [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class Entry [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/EntryFactory.java:45: warning: [rawtypes] found raw type: Entry [nb-javac] return new Entry(key); [nb-javac] ^ [nb-javac] missing type arguments for generic class Entry [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class Entry [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/EntryFactory.java:45: warning: [unchecked] unchecked call to Entry(T) as a member of the raw type Entry [nb-javac] return new Entry(key); [nb-javac] ^ [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class Entry [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/Persistor.java:50: warning: [rawtypes] found raw type: Persistor [nb-javac] final public static Persistor DEFAULT = new Persistor() { [nb-javac] ^ [nb-javac] missing type arguments for generic class Persistor [nb-javac] where K,V are type-variables: [nb-javac] K extends Object declared in interface Persistor [nb-javac] V extends Object declared in interface Persistor [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/Persistor.java:50: warning: [rawtypes] found raw type: Persistor [nb-javac] final public static Persistor DEFAULT = new Persistor() { [nb-javac] ^ [nb-javac] missing type arguments for generic class Persistor [nb-javac] where K,V are type-variables: [nb-javac] K extends Object declared in interface Persistor [nb-javac] V extends Object declared in interface Persistor [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/Persistor.java:53: warning: [rawtypes] found raw type: Entry [nb-javac] public Entry retrieve(Object key) { [nb-javac] ^ [nb-javac] missing type arguments for generic class Entry [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class Entry [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/Persistor.java:59: warning: [rawtypes] found raw type: Entry [nb-javac] public void store(Object key, Entry value) { [nb-javac] ^ [nb-javac] missing type arguments for generic class Entry [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class Entry [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/Entry.java:86: warning: [rawtypes] found raw type: Entry [nb-javac] final Entry other = (Entry) obj; [nb-javac] ^ [nb-javac] missing type arguments for generic class Entry [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class Entry [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/CacheImpl.java:46: warning: [unchecked] unchecked conversion [nb-javac] private Persistor persistor = Persistor.DEFAULT; [nb-javac] ^ [nb-javac] required: Persistor [nb-javac] found: Persistor [nb-javac] where K,V are type-variables: [nb-javac] K extends Object declared in class CacheImpl [nb-javac] V extends Object declared in class CacheImpl [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/CacheImpl.java:47: warning: [unchecked] unchecked conversion [nb-javac] private KeyFactory keyFactory = KeyFactory.DEFAULT; [nb-javac] ^ [nb-javac] required: KeyFactory [nb-javac] found: KeyFactory [nb-javac] where K is a type-variable: [nb-javac] K extends Object declared in class CacheImpl [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/CacheImpl.java:48: warning: [unchecked] unchecked conversion [nb-javac] private EntryFactory resolver = EntryFactory.DEFAULT; [nb-javac] ^ [nb-javac] required: EntryFactory [nb-javac] found: EntryFactory [nb-javac] where K,V are type-variables: [nb-javac] K extends Object declared in class CacheImpl [nb-javac] V extends Object declared in class CacheImpl [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/KeyFactory.java:33: warning: [rawtypes] found raw type: KeyFactory [nb-javac] static final KeyFactory DEFAULT = new KeyFactory() { [nb-javac] ^ [nb-javac] missing type arguments for generic class KeyFactory [nb-javac] where K is a type-variable: [nb-javac] K extends Object declared in interface KeyFactory [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/KeyFactory.java:33: warning: [rawtypes] found raw type: KeyFactory [nb-javac] static final KeyFactory DEFAULT = new KeyFactory() { [nb-javac] ^ [nb-javac] missing type arguments for generic class KeyFactory [nb-javac] where K is a type-variable: [nb-javac] K extends Object declared in interface KeyFactory [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/KeyFactory.java:36: warning: [rawtypes] found raw type: Reference [nb-javac] public Reference createKey(Object obj) { [nb-javac] ^ [nb-javac] missing type arguments for generic class Reference [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class Reference [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/KeyFactory.java:37: warning: [rawtypes] found raw type: SoftReferenceEx [nb-javac] return new SoftReferenceEx(obj); [nb-javac] ^ [nb-javac] missing type arguments for generic class SoftReferenceEx [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class SoftReferenceEx [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/KeyFactory.java:37: warning: [unchecked] unchecked call to SoftReferenceEx(T) as a member of the raw type SoftReferenceEx [nb-javac] return new SoftReferenceEx(obj); [nb-javac] ^ [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class SoftReferenceEx [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/SoftReferenceEx.java:54: warning: [rawtypes] found raw type: SoftReferenceEx [nb-javac] SoftReferenceEx other = (SoftReferenceEx)obj; [nb-javac] ^ [nb-javac] missing type arguments for generic class SoftReferenceEx [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class SoftReferenceEx [nb-javac] /home/user/visualvm/visualvm/caching.api/src/org/graalvm/visualvm/api/caching/impl/WeakReferenceEx.java:54: warning: [rawtypes] found raw type: WeakReferenceEx [nb-javac] WeakReferenceEx other = (WeakReferenceEx)obj; [nb-javac] ^ [nb-javac] missing type arguments for generic class WeakReferenceEx [nb-javac] where T is a type-variable: [nb-javac] T extends Object declared in class WeakReferenceEx [nb-javac] 20 warnings [nb-javac] Creating empty /home/user/visualvm/visualvm/caching.api/build/classes/org/graalvm/visualvm/api/caching/impl/package-info.class [nb-javac] Creating empty /home/user/visualvm/visualvm/caching.api/build/classes/org/graalvm/visualvm/api/caching/package-info.class [copy] Copying 1 file to /home/user/visualvm/visualvm/caching.api/build/classes -post-compile: compile: jar-prep: -pre-jar: -do-jar: [jarwithmoduleattributes] Building jar: /home/user/visualvm/visualvm/build/cluster/modules/org-graalvm-visualvm-api-caching.jar -post-jar: jar: netbeans-extra: javahelp: module-auto-deps: -pre-release: -do-release: -post-release: release: -init-startlevel: module-xml-regular: module-xml-autoload: module-xml-eager: -init-executables: chmod-executables: verify-class-linkage: -validate-layers: [xmlvalidate] 0 file(s) have been successfully validated. -verify-apichanges: -netbeans: netbeans: [genlist] Generating Auto Update information for org.graalvm.visualvm.api.caching taskdefs: -build-dir-init: -convert-old-project: common-init: -jdk-pre-preinit: -jdk-preinit: -jdk-warn: -jdk-presetdef-basic: -jdk-default: -jdk-init: projectized-common.basic-init: basic-init: -release.dir: -release.files: files-init: nbm-license-init: [mkdir] Created dir: /home/user/visualvm/visualvm/libs.profiler/lib.profiler.charts/build build-init: -javac-init-nbjdk: -javac-init-bootclasspath-prepend: -javac-init-no-bootclasspath-prepend: -javac-init: init: up-to-date: -pre-compile: -do-compile: [mkdir] Created dir: /home/user/visualvm/visualvm/libs.profiler/lib.profiler.charts/build/classes [nb-javac] Compiling 55 source files to /home/user/visualvm/visualvm/libs.profiler/lib.profiler.charts/build/classes [nb-javac] Ignoring source, target and bootclasspath as release has been set [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler.charts/src/org/graalvm/visualvm/lib/charts/canvas/BufferedCanvasComponent.java:517: warning: [deprecation] reshape(int,int,int,int) in JComponent has been deprecated [nb-javac] public final void reshape(int x, int y, int w, int h) { [nb-javac] ^ [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler.charts/src/org/graalvm/visualvm/lib/charts/canvas/BufferedCanvasComponent.java:521: warning: [deprecation] reshape(int,int,int,int) in JComponent has been deprecated [nb-javac] super.reshape(x, y, w, h); [nb-javac] ^ [nb-javac] Note: Some input files use unchecked or unsafe operations. [nb-javac] Note: Recompile with -Xlint:unchecked for details. [nb-javac] 2 warnings [copy] Copying 2 files to /home/user/visualvm/visualvm/libs.profiler/lib.profiler.charts/build/classes -post-compile: compile: jar-prep: -pre-jar: -do-jar: [jarwithmoduleattributes] Building jar: /home/user/visualvm/visualvm/build/cluster/modules/org-graalvm-visualvm-lib-charts.jar -post-jar: jar: netbeans-extra: javahelp: module-auto-deps: -pre-release: -do-release: -post-release: release: -init-startlevel: module-xml-regular: module-xml-autoload: module-xml-eager: -init-executables: chmod-executables: verify-class-linkage: -validate-layers: [xmlvalidate] 0 file(s) have been successfully validated. -verify-apichanges: -netbeans: netbeans: [genlist] Generating Auto Update information for org.graalvm.visualvm.lib.charts taskdefs: -build-dir-init: -convert-old-project: common-init: -jdk-pre-preinit: -jdk-preinit: -jdk-warn: -jdk-presetdef-basic: -jdk-default: -jdk-init: projectized-common.basic-init: basic-init: -release.dir: -release.files: files-init: nbm-license-init: [mkdir] Created dir: /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build build-init: -javac-init-nbjdk: -javac-init-bootclasspath-prepend: -javac-init-no-bootclasspath-prepend: -javac-init: init: compile-system: [mkdir] Created dir: /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build/jdk15/classes [javac] Compiling 7 source files to /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build/jdk15/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 5 [javac] error: Source option 5 is no longer supported. Use 7 or later. [javac] error: Target option 5 is no longer supported. Use 7 or later. BUILD FAILED /home/user/visualvm/visualvm/netbeans/harness/suite.xml:163: The following error occurred while executing this line: /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build.xml:35: Compile failed; see the compiler error output for details. Total time: 1 second ```

Simply patching visualvm/visualvm/libs.profiler/lib.profiler/build.xml to include a more recent source and target version results in a different error:

Build Log ``` Buildfile: /home/user/visualvm/visualvm/build.xml -taskdefs: -init-build-dir: -convert-old-project: -init: branding: -release.dir: -release.files: files-init: release: -hide-excluded-modules: build: taskdefs: -build-dir-init: -convert-old-project: common-init: -jdk-pre-preinit: -jdk-preinit: -jdk-warn: -jdk-presetdef-basic: -jdk-default: -jdk-init: projectized-common.basic-init: basic-init: -release.dir: -release.files: files-init: nbm-license-init: build-init: Scanning for modules in /home/user/visualvm/visualvm/netbeans/platform Scanning for modules in suite /home/user/visualvm/visualvm -javac-init-nbjdk: -javac-init-bootclasspath-prepend: -javac-init-no-bootclasspath-prepend: -javac-init: init: up-to-date: -pre-compile: -do-compile: -post-compile: compile: jar-prep: -pre-jar: -do-jar: -post-jar: jar: netbeans-extra: javahelp: module-auto-deps: -pre-release: -do-release: -post-release: release: -init-startlevel: module-xml-regular: module-xml-autoload: module-xml-eager: -init-executables: chmod-executables: verify-class-linkage: -validate-layers: [xmlvalidate] 0 file(s) have been successfully validated. -verify-apichanges: -netbeans: netbeans: [genlist] Generating Auto Update information for org.graalvm.visualvm.api.caching taskdefs: -build-dir-init: -convert-old-project: common-init: -jdk-pre-preinit: -jdk-preinit: -jdk-warn: -jdk-presetdef-basic: -jdk-default: -jdk-init: projectized-common.basic-init: basic-init: -release.dir: -release.files: files-init: nbm-license-init: build-init: -javac-init-nbjdk: -javac-init-bootclasspath-prepend: -javac-init-no-bootclasspath-prepend: -javac-init: init: up-to-date: -pre-compile: -do-compile: -post-compile: compile: jar-prep: -pre-jar: -do-jar: -post-jar: jar: netbeans-extra: javahelp: module-auto-deps: -pre-release: -do-release: -post-release: release: -init-startlevel: module-xml-regular: module-xml-autoload: module-xml-eager: -init-executables: chmod-executables: verify-class-linkage: -validate-layers: [xmlvalidate] 0 file(s) have been successfully validated. -verify-apichanges: -netbeans: netbeans: [genlist] Generating Auto Update information for org.graalvm.visualvm.lib.charts taskdefs: -build-dir-init: -convert-old-project: common-init: -jdk-pre-preinit: -jdk-preinit: -jdk-warn: -jdk-presetdef-basic: -jdk-default: -jdk-init: projectized-common.basic-init: basic-init: -release.dir: -release.files: files-init: nbm-license-init: build-init: -javac-init-nbjdk: -javac-init-bootclasspath-prepend: -javac-init-no-bootclasspath-prepend: -javac-init: init: compile-system: [javac] Compiling 7 source files to /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build/jdk15/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 7 [javac] warning: [options] source value 7 is obsolete and will be removed in a future release [javac] warning: [options] target value 7 is obsolete and will be removed in a future release [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 warnings [mkdir] Created dir: /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build/classes [javac] Compiling 70 source files to /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 7 [javac] warning: [options] source value 7 is obsolete and will be removed in a future release [javac] warning: [options] target value 7 is obsolete and will be removed in a future release [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/TransactionalSupport.java:118: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] lockRead.set(new Integer(counter - 1)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/TransactionalSupport.java:140: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] lockWrite.set(new Integer(counter - 1)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/TransactionalSupport.java:171: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] lockWrite.set(new Integer(1)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/TransactionalSupport.java:192: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] lockRead.set(new Integer(1)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/TransactionalSupport.java:195: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] lockRead.set(new Integer(counter.intValue() + 1)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/TransactionalSupport.java:225: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] lockWrite.set(new Integer(counter.intValue() + 1)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/TransactionalSupport.java:250: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] lockWrite.set(new Integer(counter.intValue() + 1)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerServer.java:1694: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] ClassLoader clInstance = (ClassLoader)lookupMethod.invoke(instance, new Class[]{ClassLoader.class}); [javac] ^ [javac] cast to Object for a varargs call [javac] cast to Object[] for a non-varargs call and to suppress this warning [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/HeapHistogramManager.java:203: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] cindex = new Integer(classesIdMap.size()); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntime.java:726: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] Integer hashInt = new Integer(hash); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerInterface.java:1502: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] classIndex.put(clazz, new Integer(index)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:508: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] getRequestedSessionIdMethod = requestClass.getMethod("getRequestedSessionId", null); // NOI18N [javac] ^ [javac] cast to Class for a varargs call [javac] cast to Class[] for a non-varargs call and to suppress this warning [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:509: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] getMethodMethod = requestClass.getMethod("getMethod", null); // NOI18N [javac] ^ [javac] cast to Class for a varargs call [javac] cast to Class[] for a non-varargs call and to suppress this warning [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:510: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] getServletPathMethod = requestClass.getMethod("getServletPath", null); // NOI18N [javac] ^ [javac] cast to Class for a varargs call [javac] cast to Class[] for a non-varargs call and to suppress this warning [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:519: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] requestedSessionId = (String) getRequestedSessionIdMethod.invoke(request, null); [javac] ^ [javac] cast to Object for a varargs call [javac] cast to Object[] for a non-varargs call and to suppress this warning [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:520: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] method = (String) getMethodMethod.invoke(request, null); [javac] ^ [javac] cast to Object for a varargs call [javac] cast to Object[] for a non-varargs call and to suppress this warning [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:521: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] servletPath = (String) getServletPathMethod.invoke(request, null); [javac] ^ [javac] cast to Object for a varargs call [javac] cast to Object[] for a non-varargs call and to suppress this warning [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:558: warning: [removal] Character(char) in Character has been deprecated and marked for removal [javac] ti.addParameter(new Character(b)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:574: warning: [removal] Byte(byte) in Byte has been deprecated and marked for removal [javac] ti.addParameter(new Byte(b)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:590: warning: [removal] Short(short) in Short has been deprecated and marked for removal [javac] ti.addParameter(new Short(b)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:606: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] ti.addParameter(new Integer(b)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:622: warning: [removal] Long(long) in Long has been deprecated and marked for removal [javac] ti.addParameter(new Long(b)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:638: warning: [removal] Float(float) in Float has been deprecated and marked for removal [javac] ti.addParameter(new Float(b)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPU.java:654: warning: [removal] Double(double) in Double has been deprecated and marked for removal [javac] ti.addParameter(new Double(b)); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeMemory.java:185: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] classIdInt = new Integer(newClassId); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeSampler.java:99: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] tid = new Integer(ti.getThreadId()); [javac] ^ [javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeSampler.java:108: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] newArrayOffsetMap.put(ltid, new Integer(i)); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 31 warnings up-to-date: -pre-compile: -do-compile: [nb-javac] Compiling 187 source files to /home/user/visualvm/visualvm/libs.profiler/lib.profiler/build/classes [nb-javac] Ignoring source, target and bootclasspath as release has been set [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:142: error: cannot find symbol [nb-javac] private static boolean isAttachable(MonitoredVm vm) { [nb-javac] ^ [nb-javac] symbol: class MonitoredVm [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:29: error: package sun.jvmstat.monitor does not exist [nb-javac] import sun.jvmstat.monitor.*; [nb-javac] ^ [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:56: error: cannot find symbol [nb-javac] HostIdentifier hostId = new HostIdentifier(hostname); [nb-javac] ^ [nb-javac] symbol: class HostIdentifier [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:56: error: cannot find symbol [nb-javac] HostIdentifier hostId = new HostIdentifier(hostname); [nb-javac] ^ [nb-javac] symbol: class HostIdentifier [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:57: error: cannot find symbol [nb-javac] MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost(hostId); [nb-javac] ^ [nb-javac] symbol: class MonitoredHost [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:57: error: cannot find symbol [nb-javac] MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost(hostId); [nb-javac] ^ [nb-javac] symbol: variable MonitoredHost [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:75: error: cannot find symbol [nb-javac] VmIdentifier id = null; [nb-javac] ^ [nb-javac] symbol: class VmIdentifier [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:76: error: cannot find symbol [nb-javac] MonitoredVm vm = null; [nb-javac] ^ [nb-javac] symbol: class MonitoredVm [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:80: error: cannot find symbol [nb-javac] id = new VmIdentifier(uriString); [nb-javac] ^ [nb-javac] symbol: class VmIdentifier [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:88: error: cannot find symbol [nb-javac] } catch (MonitorException e) { [nb-javac] ^ [nb-javac] symbol: class MonitorException [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:112: error: cannot find symbol [nb-javac] String cmdString = MonitoredVmUtil.commandLine(vm); [nb-javac] ^ [nb-javac] symbol: variable MonitoredVmUtil [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:113: error: cannot find symbol [nb-javac] String mainClass = MonitoredVmUtil.mainClass(vm, true); [nb-javac] ^ [nb-javac] symbol: variable MonitoredVmUtil [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:114: error: cannot find symbol [nb-javac] String mainArgs = MonitoredVmUtil.mainArgs(vm); [nb-javac] ^ [nb-javac] symbol: variable MonitoredVmUtil [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:115: error: cannot find symbol [nb-javac] String vmArgs = MonitoredVmUtil.jvmArgs(vm); [nb-javac] ^ [nb-javac] symbol: variable MonitoredVmUtil [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:116: error: cannot find symbol [nb-javac] String vmFlags = MonitoredVmUtil.jvmFlags(vm); [nb-javac] ^ [nb-javac] symbol: variable MonitoredVmUtil [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:123: error: cannot find symbol [nb-javac] } catch (MonitorException e) { [nb-javac] ^ [nb-javac] symbol: class MonitorException [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:144: error: cannot find symbol [nb-javac] return MonitoredVmUtil.isAttachable(vm); [nb-javac] ^ [nb-javac] symbol: variable MonitoredVmUtil [nb-javac] location: class JpsProxy [nb-javac] /home/user/visualvm/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/jps/JpsProxy.java:145: error: cannot find symbol [nb-javac] } catch (MonitorException ex) { [nb-javac] ^ [nb-javac] symbol: class MonitorException [nb-javac] location: class JpsProxy [nb-javac] Note: Some input files use unchecked or unsafe operations. [nb-javac] Note: Recompile with -Xlint:unchecked for details. [nb-javac] 18 errors BUILD FAILED /home/user/visualvm/visualvm/netbeans/harness/suite.xml:163: The following error occurred while executing this line: /home/user/visualvm/visualvm/netbeans/harness/common.xml:207: Compile failed; see the compiler error output for details. Total time: 2 seconds ```
thurka commented 2 years ago

You need to build it with JDK 8. See README.md.

centic9 commented 1 year ago

Same issue here, VisualVM hangs as soon as any application is touched.

I with multiple different versions, including current version 2.1.7, jstack produces the following thread-dump

"AWT-EventQueue-0" #22 prio=6 os_prio=0 cpu=1605,24ms elapsed=185,62s tid=0x00007f7760139000 nid=0x162e00 runnable  [0x00007f776d67c000]
   java.lang.Thread.State: RUNNABLE
        at sun.tools.attach.VirtualMachineImpl.connect(jdk.attach@11.0.20.1/Native Method)
        at sun.tools.attach.VirtualMachineImpl.<init>(jdk.attach@11.0.20.1/VirtualMachineImpl.java:119)
        at sun.tools.attach.AttachProviderImpl.attachVirtualMachine(jdk.attach@11.0.20.1/AttachProviderImpl.java:58)
        at com.sun.tools.attach.VirtualMachine.attach(jdk.attach@11.0.20.1/VirtualMachine.java:207)
        at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:159)
        at org.graalvm.visualvm.attach.AttachModelImpl.executeJCmd(AttachModelImpl.java:213)
        - locked <0x00000000d5106200> (a org.graalvm.visualvm.attach.AttachModelImpl)
        at org.graalvm.visualvm.attach.AttachModelImpl.executeJCmd(AttachModelImpl.java:182)
        at org.graalvm.visualvm.jfr.model.impl.JfrModelImpl.executeJCmd(JfrModelImpl.java:216)
        at org.graalvm.visualvm.jfr.model.impl.JfrModelImpl.isJfrAvailable(JfrModelImpl.java:86)
        at org.graalvm.visualvm.jfr.model.impl.JfrModelProvider.createModelFor(JfrModelProvider.java:43)
        at org.graalvm.visualvm.jfr.model.impl.JfrModelProvider.createModelFor(JfrModelProvider.java:39)
        at org.graalvm.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:105)
        - locked <0x00000000d123af10> (a org.graalvm.visualvm.jvmstat.application.JvmstatApplication)
        at org.graalvm.visualvm.tools.jfr.JfrModelFactory.getJFRFor(JfrModelFactory.java:64)
        at org.graalvm.visualvm.jvm.JVMImpl.isJfrAvailable(JVMImpl.java:495)
        at org.graalvm.visualvm.jfr.JFRSnapshotSupport.supportsJfrDump(JFRSnapshotSupport.java:140)
        at org.graalvm.visualvm.jfr.impl.JFRDumpAction.isEnabled(JFRDumpAction.java:96)
        at org.graalvm.visualvm.core.ui.actions.MultiDataSourceAction.updateState(MultiDataSourceAction.java:76)
        at org.graalvm.visualvm.jfr.impl.JFRDumpAction.updateState(JFRDumpAction.java:118)
        at org.graalvm.visualvm.core.ui.actions.DataSourceAction$1.selectionChanged(DataSourceAction.java:87)
        at org.graalvm.visualvm.core.explorer.ExplorerSupport$ExplorerTreeSelectionListener.valueChanged(ExplorerSupport.java:272)
        at javax.swing.JTree.fireValueChanged(java.desktop@11.0.20.1/JTree.java:2967)
        at javax.swing.JTree$TreeSelectionRedirector.valueChanged(java.desktop@11.0.20.1/JTree.java:3456)
        at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(java.desktop@11.0.20.1/DefaultTreeSelectionModel.java:641)
        at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(java.desktop@11.0.20.1/DefaultTreeSelectionModel.java:1111)
        at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(java.desktop@11.0.20.1/DefaultTreeSelectionModel.java:297)
        at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(java.desktop@11.0.20.1/DefaultTreeSelectionModel.java:191)
        at javax.swing.JTree.setSelectionPath(java.desktop@11.0.20.1/JTree.java:1656)
        at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(java.desktop@11.0.20.1/BasicTreeUI.java:2736)
        at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(java.desktop@11.0.20.1/BasicTreeUI.java:4016)
        at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(java.desktop@11.0.20.1/BasicTreeUI.java:3955)
        at java.awt.AWTEventMulticaster.mousePressed(java.desktop@11.0.20.1/AWTEventMulticaster.java:287)
        at java.awt.Component.processMouseEvent(java.desktop@11.0.20.1/Component.java:6632)
        at javax.swing.JComponent.processMouseEvent(java.desktop@11.0.20.1/JComponent.java:3342)
        at org.graalvm.visualvm.core.explorer.ExplorerComponent$1.processMouseEvent(ExplorerComponent.java:110)
        at java.awt.Component.processEvent(java.desktop@11.0.20.1/Component.java:6400)
        at java.awt.Container.processEvent(java.desktop@11.0.20.1/Container.java:2263)
        at java.awt.Component.dispatchEventImpl(java.desktop@11.0.20.1/Component.java:5011)
        at java.awt.Container.dispatchEventImpl(java.desktop@11.0.20.1/Container.java:2321)
        at java.awt.Component.dispatchEvent(java.desktop@11.0.20.1/Component.java:4843)
        at java.awt.LightweightDispatcher.retargetMouseEvent(java.desktop@11.0.20.1/Container.java:4918)
        at java.awt.LightweightDispatcher.processMouseEvent(java.desktop@11.0.20.1/Container.java:4544)
        at java.awt.LightweightDispatcher.dispatchEvent(java.desktop@11.0.20.1/Container.java:4488)
        at java.awt.Container.dispatchEventImpl(java.desktop@11.0.20.1/Container.java:2307)
        at java.awt.Window.dispatchEventImpl(java.desktop@11.0.20.1/Window.java:2772)
        at java.awt.Component.dispatchEvent(java.desktop@11.0.20.1/Component.java:4843)
        at java.awt.EventQueue.dispatchEventImpl(java.desktop@11.0.20.1/EventQueue.java:772)
        at java.awt.EventQueue$4.run(java.desktop@11.0.20.1/EventQueue.java:721)
        at java.awt.EventQueue$4.run(java.desktop@11.0.20.1/EventQueue.java:715)
        at java.security.AccessController.doPrivileged(java.base@11.0.20.1/Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@11.0.20.1/ProtectionDomain.java:85)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@11.0.20.1/ProtectionDomain.java:95)
        at java.awt.EventQueue$5.run(java.desktop@11.0.20.1/EventQueue.java:745)
        at java.awt.EventQueue$5.run(java.desktop@11.0.20.1/EventQueue.java:743)
        at java.security.AccessController.doPrivileged(java.base@11.0.20.1/Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@11.0.20.1/ProtectionDomain.java:85)
        at java.awt.EventQueue.dispatchEvent(java.desktop@11.0.20.1/EventQueue.java:742)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@11.0.20.1/EventDispatchThread.java:203)
        at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@11.0.20.1/EventDispatchThread.java:124)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop@11.0.20.1/EventDispatchThread.java:113)
        at java.awt.EventDispatchThread.pumpEvents(java.desktop@11.0.20.1/EventDispatchThread.java:109)
        at java.awt.EventDispatchThread.pumpEvents(java.desktop@11.0.20.1/EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.run(java.desktop@11.0.20.1/EventDispatchThread.java:90)
thurka commented 1 year ago

@centic9 Can you provide steps to reproduce it? Thanks.

centic9 commented 1 year ago

It happens consistently when I open visualvm and click on any of the running java processes in the list.

thurka commented 1 year ago

It does not help me much. There must be something specific to your setup, OS, JVM or running java processes. it would be great if you can discover it. Are you able to replicate it in different environment? Like different machnie or under different user?

centic9 commented 1 year ago

Any hint what to look for based on the stack-trace?

I.e. permission handling? JDK version mismatch? Inter-process communication problems? ...

thurka commented 1 year ago

It looks to me like Inter-process communication problem, but it is hard so say. What OS are you using? Can you attach VisualVM log file?

centic9 commented 1 year ago

Sorry for the noise. After shutting down things one-by-one I found a Java process in a strange state which also did not react to normal kill any more. After removing it via kill -9, visualvm works again.

So a single broken process can break this type of communication for all Java processes on the same machine. :(

thurka commented 1 year ago

Thanks for update.