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.
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)
regression since 6.7M2
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).
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
*** Issue 161926 has been marked as a duplicate of this issue. ***
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
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
*** Issue 162225 has been marked as a duplicate of this issue. ***
marking verified