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 240780 - Sometimes i have an Exception on creating Netbeas platform application
Summary: Sometimes i have an Exception on creating Netbeas platform application
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 15:22 UTC by djamdev
Modified: 2014-01-28 10:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (108.18 KB, image/png)
2014-01-28 07:54 UTC, djamdev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djamdev 2014-01-21 15:22:52 UTC
[ JDK VERSION : 1.7.0_45 ]

STEPS:
New project --> NetBeans modules -->Netbeas platform application --> giving a
name - Finish

ACTUAL:
   Exception (sometimes!!!) with the creation of the project, Exception output:
java.lang.AssertionError: Cannot find <module-dependencies> for:
NbModuleProject[C:\Documents and
Settings\2100\Desktop\TestSectionInnerPanel@a34f67b6:e75fea[invalid]]
	at
org.netbeans.modules.apisupport.project.ProjectXMLManager.getDirectDependencies(
ProjectXMLManager.java:241)
	at
org.netbeans.modules.apisupport.project.ProjectXMLManager.getDirectDependencies(
ProjectXMLManager.java:225)
	at
org.netbeans.modules.apisupport.project.ui.LibrariesNode$LibrariesChildren$1$1.r
un(LibrariesNode.java:235)
	at
org.netbeans.modules.apisupport.project.ui.LibrariesNode$LibrariesChildren$1$1.r
un(LibrariesNode.java:223)
	at org.openide.util.Mutex.readAccess(Mutex.java:337)
	at
org.netbeans.modules.apisupport.project.ui.LibrariesNode$LibrariesChildren$1.run
(LibrariesNode.java:223)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:419)
	at
org.netbeans.modules.apisupport.project.ui.LibrariesNode$LibrariesChildren.refre
shKeys(LibrariesNode.java:219)
	at
org.netbeans.modules.apisupport.project.ui.LibrariesNode$LibrariesChildren.confi
gurationXmlChanged(LibrariesNode.java:315)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$3.run(AntProjectHelper.jav
a:519)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$3.run(AntProjectHelper.jav
a:514)
	at org.openide.util.Mutex.readAccess(Mutex.java:295)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.fireChange(AntProjectHelpe
r.java:514)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.access$1500(AntProjectHelp
er.java:114)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$ActionImpl.run(AntProjectH
elper.java:1365)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$ActionImpl.run(AntProjectH
elper.java:1354)
	at org.openide.util.Mutex.readAccess(Mutex.java:295)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.fireExternalChange(AntProj
ectHelper.java:481)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$FileListener.change(AntPro
jectHelper.java:881)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$FileListener.fileChanged(A
ntProjectHelper.java:893)
	at org.openide.filesystems.FileChangeImpl.fileChanged(FileChangeImpl.java:134)
	at
org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSup
port.java:178)
	at
org.openide.filesystems.FCLSupport$DispatchEventWrapperSingle.dispatchAllEventsS
ync(FCLSupport.java:224)
	at
org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport
.java:137)
	at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:105)
	at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:1318)
	at org.openide.filesystems.FileSystem$EventDispatcher.run(FileSystem.java:999)
	at org.openide.filesystems.EventControl.dispatchEvent(EventControl.java:84)
	at org.openide.filesystems.FileSystem.dispatchEvent(FileSystem.java:644)
	at org.openide.filesystems.FileObject.dispatchEvent(FileObject.java:635)
	at
org.openide.filesystems.FileObject.fireFileChangedEvent(FileObject.java:603)
	at
org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.fireFileChange
dEvent(BaseFileObj.java:688)
	at
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj$1.close(FileObj.ja
va:144)
	at java.io.FilterOutputStream.close(FilterOutputStream.java:160)
	at org.openide.filesystems.FileObject$1.close(FileObject.java:820)
	at
org.netbeans.modules.apisupport.project.ProjectXMLManager.safelyWrite(ProjectXML
Manager.java:1153)
	at
org.netbeans.modules.apisupport.project.ProjectXMLManager.generateEmptySuiteTemp
late(ProjectXMLManager.java:1145)
	at
org.netbeans.modules.apisupport.project.suite.SuiteProjectGenerator.createSuiteP
rojectXML(SuiteProjectGenerator.java:118)
	at
org.netbeans.modules.apisupport.project.suite.SuiteProjectGenerator.access$000(S
uiteProjectGenerator.java:78)
	at
org.netbeans.modules.apisupport.project.suite.SuiteProjectGenerator$1.run(SuiteP
rojectGenerator.java:96)
	at
org.netbeans.modules.apisupport.project.suite.SuiteProjectGenerator$1.run(SuiteP
rojectGenerator.java:90)
	at org.openide.util.Mutex.writeAccess(Mutex.java:443)
	at
org.netbeans.modules.apisupport.project.suite.SuiteProjectGenerator.createSuiteP
roject(SuiteProjectGenerator.java:90)
	at
org.netbeans.modules.apisupport.project.ui.wizard.NewNbModuleWizardIterator.inst
antiate(NewNbModuleWizardIterator.java:200)
	at
org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(Templ
ateWizard.java:1046)
	at
org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
	at
org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439
)
	at
org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.ja
va:248)
	at
org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIter
atorWrapper.java:160)
	at
org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1629)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1570)
	at org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:92)
	at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2257)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)


EXPECTED:
   the creation of the project,
Comment 1 Milos Kleint 2014-01-27 12:48:50 UTC
next time please attach stacktraces (Add an Attachment link) to make the text of the bug report more readable
Comment 2 Martin Kozeny 2014-01-27 13:14:11 UTC
Could you please also add some information about environment you are using and some steps to reproduce? Thanks.
Comment 3 djamdev 2014-01-28 07:54:51 UTC
Created attachment 144450 [details]
screenshot

About the execution envirement, it's Win XP 32bit, java 1.7 u 45, 
To reproduce it, create new project (NB platform), create new module, close the project from Netbeans (the application platform and the module), then delete manuelly the directory containing the project --> Exception!
then after creating any other NB platform projects I have the same Exception (modal window) without any entries in the Output window...
Comment 4 Martin Kozeny 2014-01-28 10:23:23 UTC
There is problem, that as soon as project is closed, its object is not garbage collected, so all listeners on this object are alive and some of them listen to the disk operations, moreover if there is some dependency between projects problem escalates. So actually we're unable to fix this. For deleting projects, please use Delete action in IDE. Thank you. Closing as WONTFIX.