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 208754 - Uninstaller does not remove some files from profiler folder
Summary: Uninstaller does not remove some files from profiler folder
Status: VERIFIED INCOMPLETE
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.1.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-22 13:52 UTC by Jiri Skrivanek
Modified: 2012-05-23 08:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Uninstallation log. (2.17 MB, text/plain)
2012-02-22 13:52 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-02-22 13:52:39 UTC
Created attachment 116026 [details]
Uninstallation log.

NetBeans 7.1.1 uninstaller should remove all files from profiler folder. Tested scenario:

- install from netbeans-7.1.1rc1-javaee-windows.exe
- upgrade to All distribution (go to Tools|Plugins, select tab 'Settings', disable 'Certified Plugins' and 'Plugins Portal', select tab 'Available Plugins', select all, install)
- create web application
- profile web application
- uninstall IDE (check all possible check boxes)
- the following files remain in installation directory:

C:\Program Files\NetBeans 7.1.1 RC1>tree /F /A
\---profiler
    \---lib
        |   jfluid-server-15.jar
        |   jfluid-server.jar
        |
        \---deployed
            \---jdk16
                \---windows
                        profilerinterface.dll
Comment 1 Petr Cyhelsky 2012-02-29 13:09:50 UTC
I am not able to reproduce on linux, can it possibly be caused by user rights in program files folder?
Comment 2 Jiri Skrivanek 2012-02-29 13:15:27 UTC
I tested that on WindowsXP. All other content in C:\Program Files\NetBeans 7.1.1 RC1 was removed, so I doubt it is caused by wrong user rights.
Comment 3 Jiri Rechtacek 2012-03-28 09:48:17 UTC
(In reply to comment #2)
> I tested that on WindowsXP. All other content in C:\Program Files\NetBeans
> 7.1.1 RC1 was removed, so I doubt it is caused by wrong user rights.

Probably cause of this is jfluid*.jar and profilerinterface.dll are locked by Windows thus uninstaller cannot clean them. I'm afraid the uninstaller cannot solve this.
Profiler guys, is there any way how to release these locks?
Comment 4 J Bachorik 2012-05-22 09:34:25 UTC
1. Did you stop the profiled application?
2. Did you stop the IDE before uninstallation?

The profilerinterface.dll is a native dynamic library loaded by the JVM and provided by the OS. If the OS keeps the DLL locked even though a process which were using it has died there is no way we can force release the file lock.
Comment 5 Jiri Skrivanek 2012-05-23 08:05:59 UTC
I cannot reproduce with 7.2 dev build.