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.
Created attachment 151725 [details] The Exception in the GUI This bug is easy to reproduce in a Windows 7 environment and does not manifest in Linux. I am using Oracle JDK 8u05 Windows 7 1) I install a new Netbeans 8.0.2 on a clean Windows 7 machine. (No previous Netbeans files) 2) I create a Maven project and put my settings.xml in place by right clicking on Project Files and select create settings.xml 3) I then create a App.java with a public static void main that prints out the arguments. 4) I build the Maven project 5) I right click on the project and go to Properties->Run and specify a 'Arguments' 6) I run the project 7) I right click on the project again and go to Properties->Run and specify new 'Arguments' 8) I re-run the project 9) I right click on the project again and go to Properties->Run and specify new 'Arguments' An exception occurs like attached. I assume nbactions.xml is not properly closed. Just a guess.
INFO [org.netbeans.core.network.proxy.ProxyAutoConfig]: findProxyForURL(socket://repo.maven.apache.org:80) returns null. INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with 0 entries. Elapsed time: 1 ms. INFO [org.netbeans.core.network.proxy.ProxyAutoConfig]: findProxyForURL(socket://repo.maven.apache.org:80) returns null. INFO [org.netbeans.core.network.proxy.ProxyAutoConfig]: findProxyForURL(socket://repo.maven.apache.org:80) returns null. INFO [org.netbeans.core.network.proxy.ProxyAutoConfig]: findProxyForURL(socket://repo.maven.apache.org:80) returns null. INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: CancelableTaskWrapper[task: org.netbeans.modules.java.hints.spiimpl.hints.HintsTask@d220a0a, phase: RESOLVED, priority: 500] : class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 75 ms. INFO [org.netbeans.modules.j2ee.deployment.impl.ServerRegistry]: Could not create instance tomcat80:home=C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15:base=apache-tomcat-8.0.15.0_base INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for kind = CLASS INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: ElementHandle[kind=CLASS; sigs=sun.util.PreHashedMap$1$1 ] WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with the position attribute: [org-netbeans-modules-editor-java-JavaBracesMatcher.shadow], but some are: [org-netbeans-modules-editor-bracesmatching-LegacyEssMatcher.instance, org-netbeans-modules-editor-bracesmatching-DefaultMatcher.instance] INFO: No FileObject found for the following URL: file:/D:/Users%20Documents/richard31/My%20Documents/NetBeansProjects/test1/src/test/java/ java.lang.IllegalStateException: No FileObject found for the following URL: file:/D:/Users%20Documents/richard31/My%20Documents/NetBeansProjects/test1/src/test/java/ at org.netbeans.modules.java.testrunner.CommonTestUtil.getTestTargets(CommonTestUtil.java:174) at org.netbeans.modules.java.testrunner.providers.JavaCommonTestUtilProvider.getTestTargets(JavaCommonTestUtilProvider.java:61) at org.netbeans.modules.java.testrunner.hints.Utils.populateLocations(Utils.java:146) at org.netbeans.modules.java.testrunner.hints.Utils.getValidCombinations(Utils.java:86) at org.netbeans.modules.java.testrunner.hints.CreateTestMethodsHint.computeWarning(CreateTestMethodsHint.java:127) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:336) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:111) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scanDoNotGoDeeper(HintsInvoker.java:711) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:396) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:232) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:209) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:182) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:149) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:83) at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:573) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 11 ms INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 1 ms WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.BrokenDataShadow@328e9cb2[MultiFileObject@563c2270[Keymaps/NetBeans/D-BACK_QUOTE.shadow]] WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.BrokenDataShadow@328e9cb2[MultiFileObject@563c2270[Keymaps/NetBeans/D-BACK_QUOTE.shadow]] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Program Files\NetBeans 8.0.2\ide\jsstubs\reststubs.zip took: 590 ms (New or modified files: 14, Deleted files: 0) [Adding listeners took: 0 ms] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Program Files\NetBeans 8.0.2\ide\jsstubs\domstubs.zip took: 649 ms (New or modified files: 133, Deleted files: 0) [Adding listeners took: 0 ms] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Program Files\NetBeans 8.0.2\ide\jsstubs\corestubs.zip took: 230 ms (New or modified files: 37, Deleted files: 0) [Adding listeners took: 0 ms] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 3 source roots took: 1,469 ms (New or modified files: 184, Deleted files: 0) [Adding listeners took: 0 ms] INFO: No FileObject found for the following URL: file:/D:/Users%20Documents/richard31/My%20Documents/NetBeansProjects/test1/src/test/java/ java.lang.IllegalStateException: No FileObject found for the following URL: file:/D:/Users%20Documents/richard31/My%20Documents/NetBeansProjects/test1/src/test/java/ at org.netbeans.modules.java.testrunner.CommonTestUtil.getTestTargets(CommonTestUtil.java:174) at org.netbeans.modules.java.testrunner.providers.JavaCommonTestUtilProvider.getTestTargets(JavaCommonTestUtilProvider.java:61) at org.netbeans.modules.java.testrunner.hints.Utils.populateLocations(Utils.java:146) at org.netbeans.modules.java.testrunner.hints.Utils.getValidCombinations(Utils.java:86) at org.netbeans.modules.java.testrunner.hints.CreateTestMethodsHint.computeWarning(CreateTestMethodsHint.java:127) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:336) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:111) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scanDoNotGoDeeper(HintsInvoker.java:711) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:396) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:232) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:209) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:182) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:149) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:83) at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:573) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) INFO [org.netbeans.core.network.proxy.ProxyAutoConfig]: findProxyForURL(http://repo.maven.apache.org/maven2) returns null. WARNING [org.openide.text.CloneableEditorSupport]: org.netbeans.modules.xml.text.TextEditorSupport should override asynchronousOpen(). See http://bits.netbeans.org/dev/javadoc/org-openide-text/apichanges.html#CloneableEditorSupport.asynchronousOpen INFO [org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier]: Adding listener for drive C:/ no schema parent for password of type=xs:string no schema parent for password of type=xs:string no schema parent for password of type=xs:string no schema parent for password of type=xs:string no schema parent for password of type=xs:string no schema parent for password of type=xs:string no schema parent for password of type=xs:string no schema parent for password of type=xs:string INFO [org.netbeans.core.network.proxy.ProxyAutoConfig]: findProxyForURL(socket://dcpwebsproxy01.discovery.holdings.co.za:8080) returns null. INFO: No FileObject found for the following URL: file:/D:/Users%20Documents/richard31/My%20Documents/NetBeansProjects/test1/src/test/java/ java.lang.IllegalStateException: No FileObject found for the following URL: file:/D:/Users%20Documents/richard31/My%20Documents/NetBeansProjects/test1/src/test/java/ at org.netbeans.modules.java.testrunner.CommonTestUtil.getTestTargets(CommonTestUtil.java:174) at org.netbeans.modules.java.testrunner.providers.JavaCommonTestUtilProvider.getTestTargets(JavaCommonTestUtilProvider.java:61) at org.netbeans.modules.java.testrunner.hints.Utils.populateLocations(Utils.java:146) at org.netbeans.modules.java.testrunner.hints.Utils.getValidCombinations(Utils.java:86) at org.netbeans.modules.java.testrunner.hints.CreateTestMethodsHint.computeWarning(CreateTestMethodsHint.java:127) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:336) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:111) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scanDoNotGoDeeper(HintsInvoker.java:711) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:396) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:232) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:209) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:182) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:149) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:83) at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:573) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) INFO [org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier]: Adding listener for drive D:/ SEVERE [org.openide.util.Exceptions] msg Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclusive access to D:\Users Documents\richard31\My Documents\NetBeansProjects\test1\nbactions.xml@e51139f9:5a338c6e (probably opened for reading). at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:118) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.MutualExclusionSupport.addResource(MutualExclusionSupport.java:99) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:128) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:103) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl$2.run(CustomizerProviderImpl.java:442) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:641) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.writeNbActionsModel(CustomizerProviderImpl.java:410) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.writeNbActionsModel(CustomizerProviderImpl.java:402) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.writeAll(CustomizerProviderImpl.java:375) [catch] at org.netbeans.modules.maven.customizer.CustomizerProviderImpl$OptionListener.actionPerformed(CustomizerProviderImpl.java:329) at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2$1$1.run(CustomizerDialog.java:314) at org.openide.filesystems.FileUtil$2.run(FileUtil.java:447) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:641) at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:431) at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:451) at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2$1.run(CustomizerDialog.java:309) at org.openide.util.Mutex.writeAccess(Mutex.java:404) at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2.run(CustomizerDialog.java:306) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) ALL [null]: Cannot get exclusive access to D:\Users Documents\richard31\My Documents\NetBeansProjects\test1\nbactions.xml@e51139f9:5a338c6e (probably opened for reading).
This is not limited to Windows. I reproduced the issue on Ubuntu 14.04 using Java 8 and Netbeans 8.0.2 Very easy to reproduce. Seems it is the same as the below that was marked incomplete: https://netbeans.org/bugzilla/show_bug.cgi?id=229903 These are the errors that were encountered: no libsvnjavahl-1 in java.library.path no svnjavahl-1 in java.library.path no svnjavahl in java.library.path java.library.path = /home/richard/install/jdk1.8.0/jre/lib/amd64:/home/richard/install/jdk1.8.0/jre/lib/i386::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: JavaHL not available. Falling back on SvnKit. INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: svnClientAdapter running on svnkit SEVERE [org.openide.util.Exceptions] Cannot persist action configuration. msg Cannot persist action configuration. Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclusive access to /home/richard/Downloads/gs-producing-web-service-master/complete/nbactions.xml@d7d467d5:7e8d2517 (probably opened for reading). at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:118) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.MutualExclusionSupport.addResource(MutualExclusionSupport.java:99) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:128) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:103) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl$2.run(CustomizerProviderImpl.java:442) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:641) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.writeNbActionsModel(CustomizerProviderImpl.java:410) at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.writeNbActionsModel(CustomizerProviderImpl.java:402) at org.netbeans.modules.maven.api.customizer.ModelHandle2.putMapping(ModelHandle2.java:374) [catch] at org.netbeans.modules.maven.runjar.RunJarPrereqChecker.writeMapping(RunJarPrereqChecker.java:200) at org.netbeans.modules.maven.runjar.RunJarPrereqChecker.eventuallyShowDialog(RunJarPrereqChecker.java:177) at org.netbeans.modules.maven.runjar.RunJarPrereqChecker.checkRunConfig(RunJarPrereqChecker.java:113) at org.netbeans.modules.maven.execute.PrereqCheckerMerger$Impl.checkRunConfig(PrereqCheckerMerger.java:87) at org.netbeans.modules.maven.api.execute.RunUtils.run(RunUtils.java:103) at org.netbeans.modules.maven.ActionProviderImpl.invokeAction(ActionProviderImpl.java:308) at org.netbeans.modules.maven.ActionProviderImpl$2.run(ActionProviderImpl.java:280) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) ALL [null]: Cannot get exclusive access to /home/richard/Downloads/gs-producing-web-service-master/complete/nbactions.xml@d7d467d5:7e8d2517 (probably opened for reading). ALL [null]: Cannot persist action configuration.
sorry, bot related to https://netbeans.org/bugzilla/show_bug.cgi?id=229903
Created attachment 152205 [details] Thread dump in Windows 7
fixed in jet-main #eba87b9d4240
Integrated into 'main-silver', will be available in build *201505140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/eba87b9d4240 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #250088 - Cannot get exclusive access to nbactions.xml (probably opened for reading) in Windows 7
So far my tests on Windows 7 are successful. I am still need to check on Charl's pc who is in the cc list. Thanks for your efforts.
(In reply to rjdkolb from comment #7) > So far my tests on Windows 7 are successful. > I am still need to check on Charl's pc who is in the cc list. > > Thanks for your efforts. Tested and it working 100%. Thanks for fixing this.