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.
Build: NetBeans IDE Dev (Build 200905041401) VM: Java HotSpot(TM) Client VM, 1.5.0_10-b03, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_10-b03 OS: SunOS, 5.10, sparc User Comments: nleck: trying to profile. Stacktrace: java.lang.NullPointerException: The folder parameter cannot be null at org.openide.util.Parameters.notNull(Parameters.java:86) at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1425) at org.openide.filesystems.FileUtil.getRelativePath(FileUtil.java:1194) at org.netbeans.modules.profiler.freeform.FreeFormProjectTypeProfiler.configurePropertiesForProfiling(FreeFormProjectTypeProfiler.java:282) at org.netbeans.modules.profiler.actions.AntActions$8.run(AntActions.java:673) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:576)
Created attachment 81629 [details] stacktrace
Could you please provide some steps how to reproduce the problem? Profiling freeform projects seems to work fine, maybe a configuration problem?
can't profile at all at the moment... I'm trying to work out why, I'll go back to 6.5 to make sure the scripts work correctly.
The property profiler.info.jvm does seem to be getting set anymore by nbprofiledirect see http://wiki.netbeans.org/FaqProfilerProfileFreeForm
Could you please attach a simple freeform project which reproduces the problem?
Created attachment 81639 [details] build_netbeans.xml
Created attachment 81640 [details] build_engine.xml
our freeform project attached.
I'm able to profile my freeform project without any problems, the profiler seems to work fine. The property 'profiler.info.jvm' probably isn't set for you because the exception is thrown before setting it. From the sources it looks like the exception is thrown because the source root for profiled class ('run.class') cannot be resolved. I can't investigate further just based on the build scripts you've attached, I need the full project - is it possible to extract just a small subset of your project or create a sample project which reproduces the problem? Also, I need to know the steps how you are starting the profiling session - do you right-click the main class in the IDE and select Profile File...?
The project that I'm working on is a proprietary project so I can't upload the source. I'm trying to workout why the profiling is failing here. If I can work it out I post the reason.
Can you please update on the issue? Is it still valid? Thanks