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 79991 - NullPointerException from code region profiling (selected lines) of a web application
Summary: NullPointerException from code region profiling (selected lines) of a web app...
Status: VERIFIED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-11 14:11 UTC by ehucka
Modified: 2007-09-12 18:06 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 ehucka 2006-07-11 14:11:38 UTC
profiler 5.5 beta 2

Starting code region, lines, profiling of a web application throws NPE. Nothing
is profiled than.

java.lang.NullPointerException
com.sun.tools.profiler.instrumentation.CodeRegionMethodInstrumentor.computeCodeRegionFromSourceCodeSelection(CodeRegionMethodInstrumentor.java:48)
      
com.sun.tools.profiler.instrumentation.CodeRegionMethodInstrumentor.getInitialInstrumentCodeRegionResponse(CodeRegionMethodInstrumentor.java:77)
com.sun.tools.profiler.instrumentation.Instrumentor.createInitialInstrumentMethodGroupResponseForCodeRegion(Instrumentor.java:254)
com.sun.tools.profiler.instrumentation.Instrumentor.createInitialInstrumentMethodGroupResponse(Instrumentor.java:78)
com.sun.tools.profiler.ProfilerClient.instrumentMethodGroupFromRoot(ProfilerClient.java:868)
com.sun.tools.profiler.ProfilerClient.access$2800(ProfilerClient.java:46)
com.sun.tools.profiler.ProfilerClient$SeparateCmdExecutionThread.run(ProfilerClient.java:1582)
Comment 1 Pavel Rehak 2006-07-12 13:46:54 UTC
same exception occurs for j2se appication
(analyze code fragment performance | selecte method | Part of Method
Code - and select 1st and last line of method code)

Also no other profiling is possible (even after killing profile
process from runtime tab) - profiler is unable establish connection with JVM.
Comment 2 Tomas Hurka 2006-07-24 09:33:04 UTC
Is it 100% reproducible? Your reproducible steps look very vague.
Comment 3 ehucka 2006-07-24 10:48:45 UTC
When the steps of reproduction are vague it means it occured in all cases i
tried - it is easy to reproduce it (in my issues' comments).:)
Comment 4 Tomas Hurka 2006-07-31 16:05:48 UTC
As I expected this worked fine for me. I used TomcatJspExample and code fragment dates.JspCalendar, 
start line: 35, end line: 43. Please be _more_ specific about your reproducible steps.
Comment 5 ehucka 2006-10-25 13:30:17 UTC
verified