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.
When I uninstalled M8, I don't know why but NetBeans complained of a lock file. I ignored the prompt and was able to continue with the uninstall. I had another NB 6 build version installed, so now when I went to go uninstall that via Add/Remove in Control Panel, I got the 'Critical Exception' shown in the attached image. I am enclosing the image, as well as the error log. I believe there is a lock file issue here with the 'dev' userdir.
Created attachment 40214 [details] nbi uninstall error
Created attachment 40215 [details] nbi error log
bumping up priority - unable to uninstall NB 6.0 M8 build with no known workaround.
sjangity, Please attach file C:\Documents and Settings\Administrator\.nbi\registry.xml The issue with message about lock file is similar to the Issue 96098. For now the lock file is searching not in the specific netbeans user dir (as it is configured in netbeans.conf) but in the whole directory ~/.netbeans (C:\Documents and Settings\Administrator\.netbeans in your case). The issue hase already have to fix but I have not committed it yet. It would be definitely fixed in M9.
BTW, Was that message about Installer lock file or NetBeans lock file? When did (message about lock) it occure ? Just when running uninstaller (at the beginning) or when your clicked "uninstall" at the last page of thew wizard? Could you please attach all the latest installation logs related to that issue ? I hope 3 last ones would be enough.
> My C:\Documents and Settings\Administrator\.nbi\registry.xml file looks empty, so nothing to attach? Was that message about Installer lock file or NetBeans lock file? > I believe it was a netbeans lock file on the .netbeans/dev userdir When did (message about lock) it occure ? Just when running uninstaller (at the beginning) or when your clicked "uninstall" at the last page of thew wizard? > I got the message towards the end of the uninstall wizard. Could you please attach all the latest installation logs related to that issue ? I hope 3 last ones would be enough. > Attaching all 3 previous logs:
Created attachment 40222 [details] log1
Created attachment 40223 [details] log2
Created attachment 40224 [details] log3
So, the issue is that registry.xml becomes empty for an unknown reason. First, we should review XMLUtils#saveXMLDocument - actually, I see some possible issues there. Second, we can think about improving registry finalizing : first, save it to the tempfile, second (if it is ok) - replace the old one with the new one. Or just save it to the stream and then (if everything is ok) save the stream to the file. BTW, you are running release candidate of JDK6. You have rc-b104 and the final is b105. We need to have a look whether this fact can cause the issue..
Workaround: clean your installation manually. Delete the ~/.nbi directory (%USERPROFILE%\.nbi on Windows) Delete the installation directories for the components you have already installed (Windows) Run regedit and delete nbi* keys from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.
After nuking the .nbi directory and completing the instructions in the workaround, I was finally able to download and install the latest bits with the NBI. I've also updated my JDK 6u1. Workaround is verified.
I was not able to reproduce this, hence I assume that the issue was resolved as part of some other fix. Marking as fixed now, please reopen if you stumble into this again. -> FIXED