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 62303 - NPE in "Analyze Performance" with no project opened
Summary: NPE in "Analyze Performance" with no project opened
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
: 63786 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-15 15:12 UTC by vnicolici
Modified: 2007-02-12 22:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vnicolici 2005-08-15 15:12:50 UTC
When attempting to run the "Analyze Performance" profiling task, after 
clicking attach, profiling doesn't start (nothing happens). A NPE is logged to 
messages.log:

java.lang.NullPointerException
	at 
org.netbeans.modules.profiler.j2ee.J2EEProjectTypeProfiler.isWebProject
(J2EEProjectTypeProfiler.java:62)
	at 
org.netbeans.modules.profiler.j2ee.J2EEProjectTypeProfiler.isProfilingSupported
(J2EEProjectTypeProfiler.java:95)
	at 
org.netbeans.modules.profiler.utils.ProjectUtilities.getProjectTypeProfiler
(ProjectUtilities.java:160)
	at 
org.netbeans.modules.profiler.ui.panels.CpuPerformanceConfigPanelLarge.getSetti
ngs(CpuPerformanceConfigPanelLarge.java:162)
	at 
org.netbeans.modules.profiler.ui.SelectTaskPanel.getProfilingSettings
(SelectTaskPanel.java:205)
	at 
org.netbeans.modules.profiler.actions.ProfilingSupport.selectTaskForAttach
(ProfilingSupport.java:213)
	at org.netbeans.modules.profiler.actions.ProfilingSupport.doAttach
(ProfilingSupport.java:275)
	at org.netbeans.modules.profiler.actions.AttachAction.actionPerformed
(AttachAction.java:50)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:234)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Using NB Profiler milestone 8, NetBeans 4.1
Comment 1 Jiri Sedlacek 2005-08-16 09:55:38 UTC
Fixed for M9.
Comment 2 Jiri Sedlacek 2005-09-01 12:31:25 UTC
Another exception still occurs when trying to use Global Attach for Entire 
Application:

java.lang.NullPointerException
	at 
org.netbeans.modules.profiler.ui.panels.CpuPerformanceConfigPanelLarge.getSettin
gs(CpuPerformanceConfigPanelLarge.java:163)
	at org.netbeans.modules.profiler.ui.SelectTaskPanel.getProfilingSettings
(SelectTaskPanel.java:205)
	at 
org.netbeans.modules.profiler.actions.ProfilingSupport.selectTaskForAttach
(ProfilingSupport.java:213)
	at org.netbeans.modules.profiler.actions.ProfilingSupport.doAttach
(ProfilingSupport.java:275)
	at org.netbeans.modules.profiler.actions.AttachAction.actionPerformed
(AttachAction.java:50)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:234)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 3 Jiri Sedlacek 2005-09-01 12:41:38 UTC
Fixed for M9.
Comment 4 Jiri Sedlacek 2005-09-08 09:16:11 UTC
*** Issue 63786 has been marked as a duplicate of this issue. ***
Comment 5 ehucka 2006-10-09 12:10:03 UTC
Verification of old issues.
Comment 6 Alexander Kouznetsov 2007-02-12 22:05:19 UTC
Closing old issues.