cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 161751 - Can not profile Paint App example application
: Can not profile Paint App example application
Status: VERIFIED FIXED
: profiler
Base
: 6.7
: All All
: P2 (vote)
: 6.7
Assigned To:
:
:
:
: REGRESSION
:
:
  Show dependency treegraph
 
Reported: 2009-04-02 11:17 by
Modified: 2009-06-03 15:35 (History)
Issue Type: DEFECT
:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-04-02 11:17:11
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 From 2009-04-02 11:21:12 -------
regression since 6.7M2
------- Comment #2 From 2009-04-02 11:26:47 -------
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 From 2009-04-02 11:34:58 -------
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 From 2009-04-04 12:31:19 -------
*** Issue 161926 has been marked as a duplicate of this issue. ***
------- Comment #5 From 2009-04-08 07:49:21 -------
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 From 2009-04-08 19:58:22 -------
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 From 2009-04-10 10:08:06 -------
*** Issue 162225 has been marked as a duplicate of this issue. ***
------- Comment #8 From 2009-06-03 15:35:23 -------
marking verified