Skip to content

ProfilerPresets: Cannot invoke "String.indexOf(String)" because "args" is null #329

@adiantek

Description

@adiantek

Describe the bug
Missing profiler option. I think it's due to the ARM64 platform.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Remote
  2. Add host
  3. Add JMX connection
  4. I don't have Profiler option
  5. See an error

Expected behavior
A clear and concise description of what you expected to happen.

VisualVM log
messages.log

Screenshots
image
image

Desktop (please complete the following information):

OS Name:                   Microsoft Windows 11 Home
OS Version:                10.0.22000 N/A Build 22000
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Organization:   N/A
Original Install Date:     02.07.2021, 05:01:44
System Boot Time:          23.07.2021, 08:38:22
System Manufacturer:       Microsoft Corporation
System Model:              Surface Pro X
System Type:               ARM64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: ARMv8 (64-bit) Family 8 Model 805 Revision D0E Qualcomm Technologies Inc ~2649 Mhz
BIOS Version:              Microsoft Corporation 7.570.140, 18.03.2021

Additional context

java.lang.NullPointerException: Cannot invoke "String.indexOf(String)" because "args" is null
	at org.graalvm.visualvm.profiling.presets.ProfilerPresets.getMainClass(ProfilerPresets.java:271)
	at org.graalvm.visualvm.profiling.presets.ProfilerPresets.getDefaultRootsP(ProfilerPresets.java:299)
	at org.graalvm.visualvm.profiling.presets.ProfilerPresets.createDefaultPreset(ProfilerPresets.java:251)
	at org.graalvm.visualvm.profiling.presets.ProfilerPresets.getPresets(ProfilerPresets.java:211)
	at org.graalvm.visualvm.profiling.presets.ProfilerPresets.createSelector(ProfilerPresets.java:168)
	at org.graalvm.visualvm.sampler.SamplerImpl.createSelector(SamplerImpl.java:194)
	at org.graalvm.visualvm.sampler.SamplerImpl.access$200(SamplerImpl.java:107)
	at org.graalvm.visualvm.sampler.SamplerImpl$1.createSelector(SamplerImpl.java:151)
	at org.graalvm.visualvm.sampler.cpu.CPUSettingsSupport.createPanel(CPUSettingsSupport.java:113)
	at org.graalvm.visualvm.sampler.cpu.CPUSettingsSupport.getDetailsView(CPUSettingsSupport.java:65)
	at org.graalvm.visualvm.sampler.SamplerImpl.setDataViewComponent(SamplerImpl.java:232)
	at org.graalvm.visualvm.sampler.ApplicationSamplerView.createComponent(ApplicationSamplerView.java:126)
	at org.graalvm.visualvm.core.ui.DataSourceView.getView(DataSourceView.java:194)
	at org.graalvm.visualvm.core.ui.DataSourceWindowTabbedPane$ViewContainer.setView(DataSourceWindowTabbedPane.java:231)
	at org.graalvm.visualvm.core.ui.DataSourceWindowTabbedPane$ViewContainer.<init>(DataSourceWindowTabbedPane.java:210)
	at org.graalvm.visualvm.core.ui.DataSourceWindowTabbedPane.addView(DataSourceWindowTabbedPane.java:121)
	at org.graalvm.visualvm.core.ui.DataSourceWindow.addView(DataSourceWindow.java:94)
[catch] at org.graalvm.visualvm.core.ui.DataSourceWindowManager$8.run(DataSourceWindowManager.java:352)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:306)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions