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.
Periodically (25-50% of the time) when I change the server of a web project (typically from V3 to V2.1 or back), I'm seeing this series of traces on the conosole. Looks like the project properties code is not persisting correctly. I see the reference to issue 167784, but that is closed as fixed, so either it's not really fixed or this is not a duplicate. INFO [org.netbeans.spi.project.support.ant.ProjectProperties] java.lang.Throwable: noticed disk change here at org.netbeans.spi.project.support.ant.ProjectProperties$PP.diskChange(ProjectProperties.java:383) at org.netbeans.spi.project.support.ant.ProjectProperties$PP.fileAttributeChanged(ProjectProperties.java:408) at org.openide.filesystems.FileUtil$Holder.fileAttributeChanged(FileUtil.java:411) at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:145) at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport.java:122) at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:99) at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:1014) at org.openide.filesystems.EventControl.invokeDispatchers(EventControl.java:203) at org.openide.filesystems.EventControl.exitAtomicAction(EventControl.java:177) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:122) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:509) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.refresh(FileObjectFactory.java:646) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObj.invokeRefreshFor(RootObj.java:179) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObj.setAttribute(RootObj.java:131) at org.openide.filesystems.FileUtil.refreshFor(FileUtil.java:149) at org.openide.filesystems.FileUtil.refreshAll(FileUtil.java:162) at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter.run(MenuWarmUpTask.java:160) Caused: java.io.IOException: #167784: changes on disk for nbproject/private/private.properties in /space/tmp/WebAppAsArchive clobbered by in-memory data at org.netbeans.spi.project.support.ant.ProjectProperties$PP.write(ProjectProperties.java:232) at org.netbeans.spi.project.support.ant.ProjectProperties.write(ProjectProperties.java:138) at org.netbeans.spi.project.support.ant.AntProjectHelper.save(AntProjectHelper.java:622) at org.netbeans.spi.project.support.ant.AntProjectHelper.access$100(AntProjectHelper.java:106) at org.netbeans.spi.project.support.ant.AntProjectHelper$1.save(AntProjectHelper.java:144) at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.saveProject(AntBasedProjectFactorySingleton.java:362) at org.netbeans.api.project.ProjectManager$6.run(ProjectManager.java:643) at org.netbeans.api.project.ProjectManager$6.run(ProjectManager.java:632) at org.openide.util.Mutex.writeAccess(Mutex.java:433) at org.netbeans.api.project.ProjectManager.saveProject(ProjectManager.java:632) at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.save(WebProjectProperties.java:459) at org.netbeans.modules.web.project.ui.customizer.CustomizerProviderImpl$StoreListener.actionPerformed(CustomizerProviderImpl.java:177) at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2$1.run(CustomizerDialog.java:277) at org.openide.util.Mutex.writeAccess(Mutex.java:394) at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2.run(CustomizerDialog.java:273) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
I could not reproduce even once. Can you share your project? What is the spec level? Are there webservices? Anything else?
AFAIK not a j2eeserver related.
I'll attach the project later today when I'm at the office. On the one hand,I can't see how it's related (it's just a simple web project), but then again, I don't remember seeing this with the other project I had open (which is a slightly more complicated web project). I'll see if I can reproduce this on more than one project -- it was happening about 1/3 of the time yesterday. Were you switching between two unrelated (e.g. v2.1 and v3) servers?
It is dupl of 167784 but 167784 was not fixed really - there is a code which writes to nbproject/private/private.properties file when it should not but we don't know which code/module it is because we cannot reproduce the problem. I tried to change server gf3,gf2,tomcat but everything is OK. It is INFO message and I don't thing anything bad is happening - probably the same property is overridden with the same value. If you can see some pattern or way to reproduce please attach more details to 167784. *** This issue has been marked as a duplicate of 167784 ***
That's what I figured. Today, I couldn't reproduce it all. Yesterday it was very common. If I see it again, I'll debug it and find out exactly what it is. I don't think there was anything special about the project in which I saw this.