This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251693 - NPE when taking a Thread Dump
Summary: NPE when taking a Thread Dump
Status: RESOLVED DUPLICATE of bug 248855
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@profiler
Depends on:
Reported: 2015-04-07 09:37 UTC by stwr
Modified: 2015-04-07 11:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Copy of messages.log (66.44 KB, text/plain)
2015-04-07 09:37 UTC, stwr

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-04-07 09:37:22 UTC
Created attachment 153074 [details]
Copy of messages.log

Product Version: NetBeans IDE Dev (Build 201504020001)
Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\cendrowiczm\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\cendrowiczm\AppData\Local\NetBeans\Cache\dev

Use Case:

1. Run some class (e.g. MemoryLeakOrNot?|Example4|main)
2. Attach profiler to it (Profile External Process)
3. Execute the 'Thread Dump' action

Following exception is thrown:

java.lang.NullPointerException: Method name is null
	at java.util.Objects.requireNonNull(
	at java.lang.StackTraceElement.<init>(
	at org.netbeans.lib.profiler.results.threads.ThreadDump.getThreads(
	at org.netbeans.modules.profiler.ThreadDumpWindow.printThreads(
	at org.netbeans.modules.profiler.ThreadDumpWindow.<init>(
	at org.netbeans.modules.profiler.actions.TakeThreadDumpAction$1.done(
	at javax.swing.SwingWorker$
	at javax.swing.SwingWorker$
	at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(
	at javax.swing.Timer.fireActionPerformed(
	at javax.swing.Timer$
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at org.netbeans.core.TimableEventQueue.dispatchEvent(
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(
Comment 1 Tomas Hurka 2015-04-07 11:04:22 UTC

*** This bug has been marked as a duplicate of bug 248855 ***