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 154300 - Provide more descriptive error message when calibration data file cannot be found
Summary: Provide more descriptive error message when calibration data file cannot be f...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Solaris
: P4 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 21:57 UTC by maleek
Modified: 2011-09-09 15:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of error (178.77 KB, image/jpeg)
2008-12-01 21:59 UTC, maleek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maleek 2008-12-01 21:57:51 UTC
Whenever I try to profile a remote application I get the following error when I click "Attach":

Problem with saved calibration data on target machine: Saved calibration data file does not exist

Other important environment details:
- The calibration file does exist on the machine in /.nbprofiler/machinedata.jdk15
- the profiler is configured to use this same version of the JDK
- the profiler is configured for a Solaris Sparc 64-bit Java application 
- the 64-bit Sparcv9 remote calibration package was used to perform the calibration

The Netbeans log only repeats this error and does not provide any additional information (it would be nice if it
actually said where it was expecting the calibration file to be located on the remote machine)
Comment 1 maleek 2008-12-01 21:59:36 UTC
Created attachment 74365 [details]
Screenshot of error
Comment 2 Jiri Sedlacek 2008-12-02 09:43:35 UTC
From the calibration file path (/.nbprofiler/machinedata.jdk15) it looks like you've calibrated the profiler as root.
Could you please verify that the calibration data file exists on the remote machine and has a read access from the
profiled application? If everything is OK, could you please rerun the calibration as a non-root user and start profiling
as that user?

I don't see any other reason for this failure - either the file doesn't exist or the access permissions are incorrect.
FYI, the calibration file is created in <userdir>/.nbprofiler/machinedata.jdk15 and the profiler expects it to be there,
you are not expected to touch it at all.

If everything fails, could you please attach the IDE logfile and profiled application output for the unsuccessful
profiling session? At least the logfile should contain the additional information not displayed in the dialog. Thanks.
Comment 3 maleek 2008-12-02 15:53:51 UTC
Ok, I had given read/write/execute permissions to all on the calibration file and directory it was located in, but that
didn't help.  I switched to the user associated with the application I am profiling and ran the calibration and then the
file was found by the profiler.  So maybe the owner of the file and dir has to match that of the application?  

I still think the log should show the path to the file it is looking for in addition to the current message.  That way I
would probably have seen right away that it was looking in a user specific directory (<user_dir>/.nbprofiler/).  Thanks
for the help... you can close the issue (or I can).
Comment 4 Jiri Sedlacek 2008-12-02 16:05:45 UTC
Yes, the calibration needs to be performed in context of the user running the profiled application - that's why the
calibration data are saved into the userdir. You're right that the message should be more descriptive. Updating issue
summary to have this tracked and fixed for 7.0. Thanks for your feedback!
Comment 5 Jiri Sedlacek 2011-09-07 14:40:41 UTC
Search path of the calibration file is now displayed in the error dialog.

Fixed by http://hg.netbeans.org/profiler-main/rev/1d65395bb6e8.
Comment 6 Quality Engineering 2011-09-09 15:03:19 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/1d65395bb6e8
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #154300 - display search path of missing calibration file