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 93952 - FinalizationException: Could not finalize registry
Summary: FinalizationException: Could not finalize registry
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 08:11 UTC by mariadavydova
Modified: 2007-04-16 09:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log details (883.20 KB, application/octet-stream)
2007-02-02 08:12 UTC, mariadavydova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mariadavydova 2007-02-02 08:11:58 UTC
Try to create silent state file:
java
-Dnbi.product.remote.registries=http://nephrite.russia.sun.com/nbi/milestone10/get-registry?registry=NetBeans+6.0+M6
-jar nbi-engine.jar --record C:\nbi-silent\state.txt
Pressing the Finish button brings FinalizationException.
See log in attachment.
Comment 1 mariadavydova 2007-02-02 08:12:34 UTC
Created attachment 37960 [details]
log details
Comment 2 Kirill Sorokin 2007-02-12 11:38:10 UTC
-> M12
Comment 3 Kirill Sorokin 2007-03-14 17:33:40 UTC
-> M15
Comment 4 dlipin 2007-03-30 15:42:24 UTC
The issue is that the directory "C:\nbi-silent", that doesn`t exist, is not 
created when saving XML file.

I guess we should modify method XMLUtils#saveXMLDocument with 
"file.getParent().mkdirs()" invocation or reusing some of existing FileUtils# 
for the same purposes.
Comment 5 Kirill Sorokin 2007-03-30 15:46:27 UTC
Disagree. It should not generally be the burden of a utils class to verify and,
more importantly, correct the environment. #saveXmlDocument should fail, but the
method which calls it should make sure that the directory exists.
Comment 6 dlipin 2007-03-30 15:51:15 UTC
Agree.:)
Then we should fix the issue by adding "mkdirs" functionality in 
Registry#saveStateFile.
Comment 7 Kirill Sorokin 2007-03-30 15:53:37 UTC
Yep. :)
Comment 8 dlipin 2007-04-16 09:57:38 UTC
Fixed.

Checking in Registry.java;
/cvs/nbi/engine/src/org/netbeans/installer/product/Registry.java,v  <--  
Registry.java
new revision: 1.30; previous revision: 1.29
done