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 65782 - NPE while profiling web application performance
Summary: NPE while profiling web application performance
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker with 1 vote (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 23:47 UTC by morghus
Modified: 2007-02-20 18:09 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 morghus 2005-10-03 23:47:24 UTC
I have selected my Web Project (Blue Sphere) and click "Attach Profiler", then I
select "Analyze Performance", check "Entire Application", uncheck "Profile
application server code" and then click Attach (the Exception only occurs when
"Profile application server code" is unchecked).

This happens next:


java.lang.NullPointerException
	at
org.netbeans.modules.profiler.j2ee.WebProjectUtils.getServletDefinedMethodsSignatures(WebProjectUtils.java:219)
	at
org.netbeans.modules.profiler.j2ee.WebProjectUtils.getServletDefinedMethodsSignatures(WebProjectUtils.java:230)
	at
org.netbeans.modules.profiler.j2ee.WebProjectUtils.getServletMethodSignatures(WebProjectUtils.java:237)
	at
org.netbeans.modules.profiler.j2ee.WebProjectUtils.getServletRootMethods(WebProjectUtils.java:242)
	at
org.netbeans.modules.profiler.j2ee.J2EEProjectTypeProfiler.getDefaultRootMethods(J2EEProjectTypeProfiler.java:391)
	at
org.netbeans.modules.profiler.ui.panels.CpuPerformanceConfigPanelLarge.getSettings(CpuPerformanceConfigPanelLarge.java:164)
	at
org.netbeans.modules.profiler.ui.SelectTaskPanel.getProfilingSettings(SelectTaskPanel.java:205)
	at
org.netbeans.modules.profiler.actions.ProfilingSupport.selectTaskForAttach(ProfilingSupport.java:222)
	at
org.netbeans.modules.profiler.actions.ProfilingSupport.doAttach(ProfilingSupport.java:284)
	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)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	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 1 iformanek 2005-10-06 08:17:57 UTC
Jirko, please take a look at this for M10
Comment 2 Jiri Sedlacek 2005-10-10 10:35:18 UTC
The reason of this problem is that the deployment descriptor (web.xml) contains 
definition of a servlet for which the IDE is unable to find the source - most 
likely already deleted servlet or mistyped <servlet-class> entry. Also invalid 
project (directories) layout could cause this problem.

To be able to profile your webapp using Profiler M9, fix the deployment 
descriptor.

For M10 the NPE is fixed, a warning silently occurs in NB logfile.
Comment 3 ehucka 2006-10-09 12:10:38 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-20 10:22:32 UTC
Closing old issues
Comment 5 Alexander Kouznetsov 2007-02-20 18:09:03 UTC
Reverting to original Target Milestone value changed by mistake. Sorry for
inconvenience.