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 99580 - Registry file is emptied during installation/uninstallation processes
Summary: Registry file is emptied during installation/uninstallation processes
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-30 18:23 UTC by sjangity
Modified: 2007-04-18 07:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nbi uninstall error (171.49 KB, application/octet-stream)
2007-03-30 18:24 UTC, sjangity
Details
nbi error log (10.80 KB, text/plain)
2007-03-30 18:25 UTC, sjangity
Details
log1 (397.06 KB, application/octet-stream)
2007-03-30 20:27 UTC, sjangity
Details
log2 (10.80 KB, text/plain)
2007-03-30 20:28 UTC, sjangity
Details
log3 (10.80 KB, text/plain)
2007-03-30 20:28 UTC, sjangity
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sjangity 2007-03-30 18:23:41 UTC
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.
Comment 1 sjangity 2007-03-30 18:24:15 UTC
Created attachment 40214 [details]
nbi uninstall error
Comment 2 sjangity 2007-03-30 18:25:42 UTC
Created attachment 40215 [details]
nbi error log
Comment 3 sjangity 2007-03-30 18:30:29 UTC
bumping up priority - unable to uninstall NB 6.0 M8 build with no known workaround.
Comment 4 dlipin 2007-03-30 19:18:02 UTC
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.
Comment 5 dlipin 2007-03-30 19:24:31 UTC
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.
Comment 6 sjangity 2007-03-30 20:25:46 UTC
> 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:
Comment 7 sjangity 2007-03-30 20:27:25 UTC
Created attachment 40222 [details]
log1
Comment 8 sjangity 2007-03-30 20:28:00 UTC
Created attachment 40223 [details]
log2
Comment 9 sjangity 2007-03-30 20:28:42 UTC
Created attachment 40224 [details]
log3
Comment 10 dlipin 2007-03-31 08:43:03 UTC
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..
Comment 11 dlipin 2007-04-02 13:10:12 UTC
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.
Comment 12 sjangity 2007-04-02 17:46:04 UTC
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.
Comment 13 Kirill Sorokin 2007-04-18 07:27:08 UTC
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