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 28845

Summary: ClassNotFoundException: org.netbeans.modules.projects.DefaultContainer
Product: projects Reporter: Nam Nguyen <nnguyen>
Component: Generic InfrastructureAssignee: Jan Pokorsky <jpokorsky>
Status: CLOSED FIXED    
Severity: blocker CC: gfink
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Nam Nguyen 2002-11-19 07:13:09 UTC
This happen in prj40_prototype branch and is due
to some incorrect package name in file:
projects/ide/src/org/netbeans/modules/projects/ide/resources/layer.xml
Comment 1 Vitezslav Stejskal 2002-11-19 10:01:53 UTC
Could you please attach whole stacktrace of this CNFE and describe a
bit when it occures. Thank you.
Comment 2 Nam Nguyen 2002-11-19 15:27:38 UTC
I got this stack when trying to add an archive to the Sample project.
 Relizing the package name is wrong, I just get around for now by
editing the mentioned layer.xml.  
------------------------------------------------------------
java.lang.ClassNotFoundException:
org.netbeans.modules.projects.DefaultContainer
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:141)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:217)
	at org.openide.filesystems.ExternalUtil.findClass(ExternalUtil.java:84)
	at org.openide.filesystems.XMLMapAttr$Attr.methodValue(XMLMapAttr.java:695)
	at org.openide.filesystems.XMLMapAttr$Attr.getObject(XMLMapAttr.java:654)
	at org.openide.filesystems.XMLMapAttr$Attr.get(XMLMapAttr.java:474)
	at org.openide.filesystems.XMLMapAttr$Attr.access$000(XMLMapAttr.java:300)
	at org.openide.filesystems.XMLMapAttr.getAttribute(XMLMapAttr.java:149)
[catch] at org.openide.filesystems.XMLMapAttr.get(XMLMapAttr.java:124)
	at
org.openide.filesystems.XMLFileSystem$FileObjRef.readAttribute(XMLFileSystem.java:850)
	at
org.openide.filesystems.XMLFileSystem$Impl.readAttribute(XMLFileSystem.java:718)
	at
org.openide.filesystems.AbstractFileObject.getAttribute(AbstractFileObject.java:266)
	at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:715)
	at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:685)
	at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:713)
	at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:685)
	at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:614)
	at
org.openide.loaders.InstanceDataObject.storeThroughConvertor(InstanceDataObject.java:1407)
	at
org.openide.loaders.InstanceDataObject.storeSettings(InstanceDataObject.java:318)
	at
org.openide.loaders.InstanceDataObject.access$800(InstanceDataObject.java:67)
	at
org.openide.loaders.InstanceDataObject$Creator.run(InstanceDataObject.java:1374)
	at
org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:89)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:419)
	at
org.openide.loaders.InstanceDataObject$Creator.createInstanceDataObject(InstanceDataObject.java:1388)
	at
org.openide.loaders.InstanceDataObject.create(InstanceDataObject.java:304)
	at
org.openide.loaders.InstanceDataObject.create(InstanceDataObject.java:280)
	at
org.netbeans.modules.projects.ide.wizards.AddToProjectAction.performAction(AddToProjectAction.java:101)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:179)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:170)
	at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:100)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:603)
Comment 3 Jan Pokorsky 2002-11-20 10:19:56 UTC
It was caused by splitting the project module into projects/core and
projects/ide. The package name is fixed in

ide/src/org/netbeans/modules/projects/ide/resources/layer.xml
new revision: 1.1.2.9

Thanks for report
Comment 4 Jan Becicka 2003-08-15 10:01:41 UTC
VERIFIED
Comment 5 Jan Becicka 2003-11-25 14:22:56 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as CLOSED.