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 164574 - [67cat] NullPointerException: The folder parameter cannot be null
Summary: [67cat] NullPointerException: The folder parameter cannot be null
Status: RESOLVED INCOMPLETE
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-06 11:47 UTC by nleck
Modified: 2009-09-18 12:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 150686


Attachments
stacktrace (693 bytes, text/plain)
2009-05-06 11:47 UTC, nleck
Details
build_netbeans.xml (9.17 KB, text/plain)
2009-05-06 13:37 UTC, nleck
Details
build_engine.xml (117.91 KB, text/plain)
2009-05-06 13:38 UTC, nleck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nleck 2009-05-06 11:47:39 UTC
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)
Comment 1 nleck 2009-05-06 11:47:50 UTC
Created attachment 81629 [details]
stacktrace
Comment 2 Jiri Sedlacek 2009-05-06 11:59:57 UTC
Could you please provide some steps how to reproduce the problem? Profiling freeform projects seems to work fine, maybe
a configuration problem?
Comment 3 nleck 2009-05-06 12:48:30 UTC
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. 
Comment 4 nleck 2009-05-06 13:21:45 UTC
The property profiler.info.jvm does seem to be getting set anymore by nbprofiledirect

see http://wiki.netbeans.org/FaqProfilerProfileFreeForm
Comment 5 Jiri Sedlacek 2009-05-06 13:28:08 UTC
Could you please attach a simple freeform project which reproduces the problem?
Comment 6 nleck 2009-05-06 13:37:44 UTC
Created attachment 81639 [details]
build_netbeans.xml
Comment 7 nleck 2009-05-06 13:38:12 UTC
Created attachment 81640 [details]
build_engine.xml
Comment 8 nleck 2009-05-06 13:38:43 UTC
our freeform project attached.
Comment 9 Jiri Sedlacek 2009-05-06 14:45:14 UTC
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...?
Comment 10 nleck 2009-05-06 23:10:16 UTC
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. 
Comment 11 matusdekanek 2009-09-18 12:13:53 UTC
Can you please update on the issue? Is it still valid?
Thanks