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.
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)
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.
Is it 100% reproducible? Your reproducible steps look very vague.
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).:)
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.
verified