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 232963 - Stopwatch profiling point causes CNFE
Summary: Stopwatch profiling point causes CNFE
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-07-18 09:21 UTC by Jiri Skrivanek
Modified: 2013-07-19 06:22 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 Jiri Skrivanek 2013-07-18 09:21:15 UTC
Stopwatch profiling point does produce any results and CNFE is thrown in console. To reproduce:

- create project "Samples|Java|Anagram Game"
- open Anagrams.java
- right-click at line 266 and choose "Profiling|insert Profiling Point..."
- select Stopwatch and click Next
- select "Timestamp and Duration" and set end point to 274
- click Finish
- right-click AnagramGame project node and choose "Profile"
- select "CPU|Analyze Performance|Advanced|Profile only project classes", check "Use defined profiling points" and click Run
- the following exception is printed to console

java.lang.ClassNotFoundException: org/netbeans/lib/profiler/global/ProfilingPointServerHandler
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:190)
	at org.netbeans.lib.profiler.server.ProfilingPointServerHandler.getInstances(ProfilingPointServerHandler.java:83)
	at org.netbeans.lib.profiler.server.ProfilingPointServerHandler.initInstances(ProfilingPointServerHandler.java:67)
	at org.netbeans.lib.profiler.server.ProfilerInterface$InitiateProfilingThread.initiateInstrumentation(ProfilerInterface.java:163)
	at org.netbeans.lib.profiler.server.ProfilerInterface$InitiateProfilingThread.run(ProfilerInterface.java:136)

Product Version: NetBeans IDE Dev (Build 201307172300)
Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b53
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b34
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Tomas Hurka 2013-07-18 10:22:49 UTC
This is regression caused by 6850cf2ae3d3.
Comment 2 Tomas Hurka 2013-07-18 10:26:46 UTC
Fixed in profiler-main

changeset:   258615:7b228c2d657b
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Jul 18 12:25:48 2013 +0200
summary:     bugfix #232963, move ProfilingPointServerHandler from src/org/netbeans/lib/profiler/global to src/org/netbeans/lib/profiler/server, where it belongs
Comment 3 Quality Engineering 2013-07-19 02:32:01 UTC
Integrated into 'main-silver', will be available in build *201307182300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7b228c2d657b
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #232963, move ProfilingPointServerHandler from src/org/netbeans/lib/profiler/global to src/org/netbeans/lib/profiler/server, where it belongs