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 99798

Summary: CPU profiling web application (Profile All Classes) doesn't work
Product: profiler Reporter: Jiri Sedlacek <jis>
Component: BaseAssignee: Tomas Hurka <thurka>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Jiri Sedlacek 2007-04-03 12:24:55 UTC
Latest daily build, WinXP, JDK 1.6.0:

1/ Create TomcatServletExample
2/ Setup CPU profiling, entire application, all classes
3/ Starting profiling fails during webapp deployment

NPE on Tomcat side:

java.lang.NullPointerException
	com.sun.tools.profiler.server.ProfilerRuntimeCPU.writeServletDoMethod
(ProfilerRuntimeCPU.java:390)
	com.sun.tools.profiler.server.ProfilerRuntimeCPU.servletDoMethodHook
(ProfilerRuntimeCPU.java:474)
	com.sun.tools.profiler.server.ProfilerRuntimeCPU.handleServletDoMethod
(ProfilerRuntimeCPU.java:443)
	org.apache.catalina.servlets.DefaultServlet.doGet
(DefaultServlet.java:354)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:691)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Comment 1 Tomas Hurka 2007-04-03 12:34:38 UTC
Fixed in trunk build 070404.
Comment 2 Jiri Sedlacek 2007-04-03 12:39:45 UTC
Verified in Profiler trunk.