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 135169 - Installer fails with InitializationException
Summary: Installer fails with InitializationException
Status: CLOSED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: Other Windows 8.1
: P1 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-15 17:37 UTC by sborder
Modified: 2016-01-30 12:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: i have not install netbeans 8.1 in my laptop.Error show connot load component wizard component resourse when i have install this net beans version.


Attachments
Critical Error dialog (22.76 KB, image/gif)
2008-05-15 17:40 UTC, sborder
Details
Dialog displayed after Critical Error dismissed (17.13 KB, image/gif)
2008-05-15 17:41 UTC, sborder
Details
zipped out.txt file (179.48 KB, text/plain)
2008-05-15 22:05 UTC, sborder
Details
Screen shot of process tree when starting netbeans. It exits after a few seconds. (51.70 KB, image/gif)
2008-05-15 22:15 UTC, sborder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sborder 2008-05-15 17:37:52 UTC
When installing netbeans-6.1-windows.exe a CriticalError is reported InitializationException ... Failed to load wizard
components from resource:org/netbeans/installer/wizard/wizard-components.xml. See attachments. The .nbi directory is empty.
Comment 1 sborder 2008-05-15 17:40:01 UTC
Created attachment 61440 [details]
Critical Error dialog
Comment 2 dlipin 2008-05-15 17:40:24 UTC
please run the installer with --verbose --output out.txt arguments and attach the resulting out.txt here.

Thanks,
dmitry
Comment 3 dlipin 2008-05-15 17:40:59 UTC
please run the installer with --verbose --output out.txt arguments and attach the resulting out.txt here.

Thanks,
dmitry
Comment 4 sborder 2008-05-15 17:41:37 UTC
Created attachment 61441 [details]
Dialog displayed after Critical Error dismissed
Comment 5 dlipin 2008-05-15 17:49:03 UTC
do you have enough space at "C:\Documents and Settings\Steve" ?
do you have write permissions at "C:\Documents and Settings\Steve" ("C:\Documents and Settings\Steve\.nbi")?
Comment 6 dlipin 2008-05-15 17:54:43 UTC
are you able to create any file/directory at "C:\Documents and Settings\Steve\.nbi?"

is you hard drive consistent?

See also
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4804456
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6325169
https://answers.google.com/answers/threadview?id=373198
Comment 7 sborder 2008-05-15 21:15:50 UTC
I will run the verbose option shortly. In the meantime, I do have enough disk space. The .nbi directory was inaccessible
to me - I got some Windows error when I tried to enter it. I could not delete it either. I don't have any experience in
this area, but it seemed odd that I could not cd or delete the dir. I used cacls win32 command:-

C:\Documents and Settings\Steve>cd .nbi
Access is denied.

C:\Documents and Settings\Steve>cacls .nbi
C:\Documents and Settings\Steve\.nbi NT AUTHORITY\SYSTEM:F
                                     NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F

I added myself and then deleted .nbi , and tried the install again, but got the same error.
Comment 8 sborder 2008-05-15 21:29:06 UTC
Strange! 
I tried the command "C:\Documents and Settings\Steve\Desktop\netbeans-6.1-windows.exe" --verbose --output out.txt
and the install appears to be working fine, no exceptions. I will update when complete.
Comment 9 sborder 2008-05-15 22:01:32 UTC
Install appeared to complete and created the out.txt file, which I will attach when I figure out how to. However the
out.txt file had the same acl problem as the .nbi directory. Also, netbeans does not start from the Start menu.
Comment 10 sborder 2008-05-15 22:05:24 UTC
Created attachment 61453 [details]
zipped out.txt file
Comment 11 sborder 2008-05-15 22:15:32 UTC
Created attachment 61454 [details]
Screen shot of process tree when starting netbeans. It exits after a few seconds.
Comment 12 dlipin 2008-05-16 07:30:36 UTC
Steve,

It seems that you got big problems regarding your home directory (C:\Documents and Settings\Steve).
From the logs I see the following issues while accessing it.

One error is about ~/.asadmintrustrore (it was not created):
> Login information relevant to admin user name [admin] for this domain [domain1] could not be stored.
> This means that the file .asadminpass in home folder is tampered.
> Fix the format for this file.

Another one is about ~/.netbeans-registration (it was not created either):
> Error: Cannot create directory C:\Documents and Settings\Steve\.netbeans-registration\6.1


what is the output of cacls "C:\Documents and Settings\Steve" ? 
Is it a normal directory or mounted (symlink)?
are you in network domain?
do you use this system everyday?
can you create any directory in C:\Documents and Settings\Steve?
can you try to run installer on another Java, say C:\Program Files\Java\jre1.5.0_11 or C:\Program 
Files\Java\jre1.6.0_05 (passing --javahome <path-to-java> to the installer arguments)?

what is the output of cacls "C:\Program Files\NetBeans 6.1" ? 

It is not surprise for me that NetBeans can`t start in this situation... it tries to create ~/.netbeans/6.1 directory - 
it failed for the same reasons.

So, Steve, check you access rights, check your system for viruses and try to unload programs that you don`t need at the 
moment. Maybe one of it the cause of such troubles.

You can also try to run installer directly using java:
0) Uninstall previous NetBeans installation
1) Delete "C:\Documents and Settings\Steve\.nbi"
2) netbeans-6.1-windows.exe --extract <some-dir>
3) "C:\Program Files\Java\jre1.5.0_11\bin\java.exe" -jar <some-dir>\bundle.jar

Is .nbi directory created in this case? Can you run netbeans in this case?
Comment 13 sborder 2008-05-20 15:50:34 UTC
The problem was due to ACLs on the directory in which netbeans was creating directories. Once I added myself with
FullControl, the problem went away.