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 132309 - NPE on profile with Override Global Settings
Summary: NPE on profile with Override Global Settings
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 12:50 UTC by Maksim Khramov
Modified: 2009-01-13 12:09 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 Maksim Khramov 2008-04-08 12:50:50 UTC
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)
Comment 1 Jiri Sedlacek 2008-06-18 14:28:05 UTC
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.
Comment 2 Jiri Sedlacek 2008-08-14 15:32:28 UTC
Could you please update the issue and check if the problem only happens when running on Mac OS X?
Comment 3 mariadavydova 2008-08-29 14:52:35 UTC
I could reproduce on Mac with latest build 080828
by steps from description.
Comment 4 Tomas Hurka 2008-09-02 13:38:47 UTC
There is one important condition for reproducing this bug: ServletExample sample application must use GlassFish V1 application server.
Comment 5 Tomas Hurka 2008-09-02 13:45:03 UTC
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
Comment 6 Quality Engineering 2008-09-03 17:28:54 UTC
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
Comment 7 mariadavydova 2009-01-13 12:09:25 UTC
verified in Build 200812170242