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.
Nearly every time I start netbeans the following dialog is showing. This is a part of my log-file. How should I provide additional informations? SEVERE [org.openide.util.Exceptions] msg msg Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get shared access to MasterFileObject[D:\work\alkis\nasgui\nas.filetypes\nb-configuration.xml@135a4a0:13316bf,valid=true] (probably opened for writing). at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:118) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.MutualExclusionSupport.addResource(MutualExclusionSupport.java:100) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:166) Caused: java.io.FileNotFoundException at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:193) [catch] at org.netbeans.modules.maven.M2AuxilaryConfigImpl.doGetConfigurationFragment(M2AuxilaryConfigImpl.java:170) at org.netbeans.modules.maven.M2AuxilaryConfigImpl.getConfigurationFragment(M2AuxilaryConfigImpl.java:133) at org.netbeans.modules.maven.MavenProjectPropsImpl.readProperties(MavenProjectPropsImpl.java:215) at org.netbeans.modules.maven.MavenProjectPropsImpl.get(MavenProjectPropsImpl.java:103) at org.netbeans.modules.maven.MavenProjectPropsImpl.get(MavenProjectPropsImpl.java:89) at org.netbeans.modules.maven.classpath.BootClassPathImpl.findActivePlatform(BootClassPathImpl.java:134) at org.netbeans.modules.maven.classpath.ClassPathProviderImpl.getJavaPlatform(ClassPathProviderImpl.java:300) at org.netbeans.modules.maven.NbMavenProjectImpl.createSystemPropsForPropertyExpressions(NbMavenProjectImpl.java:332) at org.netbeans.modules.maven.api.PluginPropertyUtils.createEvaluator(PluginPropertyUtils.java:498) at org.netbeans.modules.maven.api.PluginPropertyUtils.getPluginProperty(PluginPropertyUtils.java:103) at org.netbeans.modules.maven.NbMavenProjectImpl.getScalaDirectory(NbMavenProjectImpl.java:757) at org.netbeans.modules.maven.NbMavenProjectImpl.getSourceRoots(NbMavenProjectImpl.java:687) at org.netbeans.modules.maven.classpath.ClassPathProviderImpl.getType(ClassPathProviderImpl.java:206) at org.netbeans.modules.maven.classpath.ClassPathProviderImpl.findClassPath(ClassPathProviderImpl.java:144) at org.netbeans.modules.csl.core.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:70) at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:632) at org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:309) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968) ALL [null]: Cannot get shared access to MasterFileObject[D:\work\alkis\nasgui\nas.filetypes\nb-configuration.xml@135a4a0:13316bf,valid=true] (probably opened for writing). ALL [null]: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get shared access to MasterFileObject[D:\work\alkis\nasgui\nas.filetypes\nb-configuration.xml@135a4a0:13316bf,valid=true] (probably opened for writing). Thanks Tobias
Created attachment 109972 [details] error dialog
No idea how to reproduce this. Seems like something is attempting to write to nb-configuration.xml during startup, but no module ought to be doing so. The contents of this file (together with general information about the project in question) might give a clue, but in general you may need to run the IDE in a debugger and set a breakpoint in M2AuxilaryConfigImpl in putConfigurationFragment (also removeConfigurationFragment). I can attempt to prevent M2ACI from simultaneously reading and writing the same file (only triggers a visible problem for Windows users), but I probably cannot verify any fix.
Possibly fixed in core-main #b8e967a36f60.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/b8e967a36f60 User: Jesse Glick <jglick@netbeans.org> Log: Possible fix of #200947: guard I/O access to nb-configuration.xml, and use recommended idioms for that.