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 19591 - NullPointerExceptions while expanding MOF Repository node
Summary: NullPointerExceptions while expanding MOF Repository node
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 20575 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-18 18:11 UTC by walterluetgenau
Modified: 2002-07-19 15:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (652.40 KB, text/plain)
2002-01-18 18:20 UTC, walterluetgenau
Details
mof.xml, the MOF description downloaded from http://www.dstc.edu.au/Research/Projects/MOF/rtf1.4/ (119.13 KB, text/plain)
2002-01-18 18:22 UTC, walterluetgenau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description walterluetgenau 2002-01-18 18:11:50 UTC
I followed the instructions and managed to install the modules. In fact, the 
FreeStyle browser allows to view metadata, now. 

But only the root node is visible. When I attempt to expand it, NullPointer 
Exceptions will be thrown.
Comment 1 walterluetgenau 2002-01-18 18:20:10 UTC
Created attachment 4287 [details]
ide.log
Comment 2 walterluetgenau 2002-01-18 18:22:09 UTC
Created attachment 4288 [details]
mof.xml, the MOF description downloaded from http://www.dstc.edu.au/Research/Projects/MOF/rtf1.4/
Comment 3 Martin Matula 2002-01-21 12:31:54 UTC
It looks like you didn't saved the MOF.xml file to the correct folder 
our you didn't use the correct name for it before you ran the 
makemodules.xml build script. From your ide.cfg file I can see that 
the repository didn't boot correctly because of absence of mof.xml 
file. Possible workaround: follow the build instructions for MDR 
again (but make sure you downloaded the mof.xml into the correct 
folder, also if you are working with windows, make sure that the 
extension of mof.xml file is really xml - windows sometimes try to 
hide the extension so you may think that the file is named mof.xml, 
however its real name can be mof.xml.txt or even mof.xml.xml) to the 
point when you run the makemodules.xml build script. Shut down 
NetBeans. Now go to netbeans/modules/autoload/ folder (this folder 
should be automatically created in your jmi/ folder after you run the 
makemodels.xml. Overwrite the mof.jar file in your netbeans 
instalation dir or userdir by the mof.jar file that is in the 
jmi/netbeans/modules/autoload folder. Now delete the mdr storage by 
deleting Storages folder that you should find in your userdir under 
system/MDRespositories.
Run NetBeans again.
Comment 4 Martin Matula 2002-01-21 12:59:50 UTC
I fixed the NPE. However the MDR will still not work if it is not 
booted properly.
Comment 5 Jan Zajicek 2002-01-22 10:31:00 UTC
Comments from Walter:

Thank you!!

That worked fine. I must apologize, because obviously it must have been my
fault. Somehow, I must have got the wrong XML file.

You can switch this issue to fixed and thanks again for your help!

Comment 6 Martin Matula 2002-02-15 12:48:25 UTC
*** Issue 20575 has been marked as a duplicate of this issue. ***