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 161751 - Can not profile Paint App example application
Summary: Can not profile Paint App example application
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords: REGRESSION
: 161926 162225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-02 11:17 UTC by J Bachorik
Modified: 2009-06-03 15:35 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 J Bachorik 2009-04-02 11:17:11 UTC
When trying to profile a newly created Paint App example application NetBeans Profiler fails with the following stack trace:

java.lang.NullPointerException
	at org.netbeans.lib.profiler.utils.MiscUtils.getClassPathFromManifest(MiscUtils.java:365)
	at org.netbeans.lib.profiler.utils.MiscUtils.getPathComponents(MiscUtils.java:349)
	at org.netbeans.lib.profiler.classfile.ClassRepository.initClassPaths(ClassRepository.java:409)
	at org.netbeans.modules.profiler.NetBeansProfiler.cleanupBeforeProfiling(NetBeansProfiler.java:1842)
	at org.netbeans.modules.profiler.NetBeansProfiler.access$2500(NetBeansProfiler.java:157)
	at org.netbeans.modules.profiler.NetBeansProfiler$3.doInBackground(NetBeansProfiler.java:1064)
	at org.netbeans.lib.profiler.ui.SwingWorker$2.run(SwingWorker.java:113)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 J Bachorik 2009-04-02 11:21:12 UTC
regression since 6.7M2
Comment 2 Tomas Hurka 2009-04-02 11:26:47 UTC
Regression was introduced by fix of issue #157978. The NPE is caused by jar, which does not have manifest. Like this one PaintApp/build/cluster/core/locale/core_paintit.jar (this jar is used for branding). It is a little bit unusual to have jar without manifest, but it is allowed by specification  (http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html). 
Comment 3 Tomas Hurka 2009-04-02 11:34:58 UTC
Fixed in profiler-main
changeset:   124502:7cc6f6ac5823
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Apr 02 12:33:27 2009 +0200
summary:     bugfix #161751, NPE fixed - manifest can be null

Comment 4 Tomas Hurka 2009-04-04 12:31:19 UTC
*** Issue 161926 has been marked as a duplicate of this issue. ***
Comment 5 Quality Engineering 2009-04-08 07:49:21 UTC
Integrated into 'main-golden', will be available in build *200904080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7cc6f6ac5823
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #161751, NPE fixed - manifest can be null
Comment 6 Quality Engineering 2009-04-08 19:58:22 UTC
Integrated into 'main-golden', will be available in build *200904081400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7cc6f6ac5823
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #161751, NPE fixed - manifest can be null
Comment 7 Tomas Hurka 2009-04-10 10:08:06 UTC
*** Issue 162225 has been marked as a duplicate of this issue. ***
Comment 8 matusdekanek 2009-06-03 15:35:23 UTC
marking verified