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

Summary: Can not profile Paint App example application
Product: profiler Reporter: J Bachorik <yardus>
Component: BaseAssignee: Tomas Hurka <thurka>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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