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.
Steps to reproduce: Create ServletExample sample application. Open Profiling dialog and create Custom configuration. Switch to Advanced settings panel and check 'Override global settings' checkbox. Run profiling. The NPE is thrown: java.lang.NullPointerException at org.netbeans.modules.profiler.j2ee.J2EEProjectTypeProfiler.initAntPlatform(J2EEProjectTypeProfiler.java:937) at org.netbeans.modules.profiler.j2ee.J2EEProjectTypeProfiler.configurePropertiesForProfiling(J2EEProjectTypeProfiler.java:650) at org.netbeans.modules.profiler.actions.AntActions$8.run(AntActions.java:668) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
I was unable to reproduce the problem using these steps: 1/ Registered Tomcat 5.5 as new server to Services window 2/ Created main project ServletExamples, resolved missing server by pointing to registered Tomcat 3/ Clicked Profile Project, clicked OK to integrate profiler with the project 4/ Created custom CPU profiling configuration "New CPU Analysis" 5/ Switched to Advanced settings, checked Override global settings 6/ Clicked Run to start the profiling session Is there any difference from your steps? Also, please provide exact information about your IDE version, in "current" version J2EEProjectTypeProfiler.java:937 doesn't point to org.netbeans.modules.profiler.j2ee.J2EEProjectTypeProfiler.initAntPlatform.
Could you please update the issue and check if the problem only happens when running on Mac OS X?
I could reproduce on Mac with latest build 080828 by steps from description.
There is one important condition for reproducing this bug: ServletExample sample application must use GlassFish V1 application server.
Fixed in profiler-main changeset: 99311:a26d84ead33a user: Tomas Hurka <thurka@netbeans.org> date: Tue Sep 02 14:41:07 2008 +0200 summary: bugfix #132309, set profiler.info.javaPlatform if javaPlatformName == null; display warning if overridden platform cannot be resolved
Integrated into 'main-golden', will be available in build *200809031401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a26d84ead33a User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #132309, set profiler.info.javaPlatform if javaPlatformName == null; display warning if overridden platform cannot be resolved
verified in Build 200812170242