Skip to content

NPE: Cannot invoke "java.lang.management.MemoryMXBean.gc()" #273

Description

@thurka

Steps to reproduce:

  1. local application without JMX (Attach API must be working).
  2. Invoke Memory sampler -> Perform GC
  3. NPE
java.lang.NullPointerException: Cannot invoke "java.lang.management.MemoryMXBean.gc()" because the return value of "org.graalvm.visualvm.sampler.memory.MemoryView.access$1100(org.graalvm.visualvm.sampler.memory.MemoryView)" is null
[catch] at org.graalvm.visualvm.sampler.memory.MemoryView$10$1.run(MemoryView.java:465)
	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)

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions