Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6494

Gradle projects reload into memory on project close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 13
    • 14
    • projects - Gradle
    • None

    Description

      When / after a gradle project is closed (I used File | Close All Projects) various UI-based refreshes cause the project(s) to be reloaded back into the memory. 

      I've capture two stacktraces:

       

      java.lang.Exception
          at org.netbeans.modules.project.ui.problems.BrokenProjectAnnotator.propertyChange(BrokenProjectAnnotator.java:183)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.spi.project.ui.support.UILookupMergerSupport$ProjectProblemsProviderImpl.propertyChange(UILookupMergerSupport.java:283)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.GradleJavaProjectProblemProvider.lambda$new$0(GradleJavaProjectProblemProvider.java:47)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.api.GradleBaseProject.get(GradleBaseProject.java:323)
          at org.netbeans.modules.gradle.ActionProviderImpl.isActionEnabled(ActionProviderImpl.java:174)
          at org.netbeans.modules.project.ui.ProjectsRootNode$BadgingNode.canDestroy(ProjectsRootNode.java:989)
          at org.netbeans.modules.openide.explorer.ExplorerActionsImpl.updateActions(ExplorerActionsImpl.java:237)
          at org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater.run(ExplorerActionsImpl.java:820)
          at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
          at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
          at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
          at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
       

      from delete action enable check and

       

       

      at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:443)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125)
          at org.netbeans.modules.gradle.java.queries.GradleSourceForBinary$Res.getRoots(GradleSourceForBinary.java:146)
          at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.getRoots(SourceForBinaryQuery.java:173)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$collectProjectSourceRoots$25(ModuleClassPaths.java:1158)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.collectProjectSourceRoots(ModuleClassPaths.java:1155)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:682)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1343)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.fire(ModuleClassPaths.java:1378)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$BaseClassPathImplementation.resetCache(ModuleClassPaths.java:1373)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$resetOutsideWriteAccess$18(ModuleClassPaths.java:1030)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resetOutsideWriteAccess(ModuleClassPaths.java:1042)
          at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.propertyChange(ModuleClassPaths.java:948)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:691)
          at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:1327)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.java.classpath.AbstractGradleClassPathImpl.lambda$new$0(AbstractGradleClassPathImpl.java:75)
          at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
          at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
          at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
          at org.netbeans.modules.gradle.api.NbGradleProject.doFireReload(NbGradleProject.java:256)
          at org.netbeans.modules.gradle.api.NbGradleProject.access$100(NbGradleProject.java:57)
          at org.netbeans.modules.gradle.api.NbGradleProject$AccessorImpl.doFireReload(NbGradleProject.java:166)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.loadOwnProject0(NbGradleProjectImpl.java:481)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.projectWithQuality(NbGradleProjectImpl.java:277)
          at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:193)
          at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:186)
          at org.netbeans.modules.gradle.api.GradleBaseProject.get(GradleBaseProject.java:323)
          at org.netbeans.modules.gradle.java.JavaSEProjectIconProvider.getIcon(JavaSEProjectIconProvider.java:59)
          at org.netbeans.modules.gradle.queries.Info.getIcon(Info.java:119)
          at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider$AnnotateIconProxyProjectInformation.updateIcon(NbProjectInformationProvider.java:164)
          at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider$AnnotateIconProxyProjectInformation.stateChanged(NbProjectInformationProvider.java:160)
          at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:331)
          at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:108)
          at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:94)
          at org.netbeans.modules.project.ui.problems.BrokenProjectAnnotator$1.run(BrokenProjectAnnotator.java:70)
          at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
          at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
          at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
          at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
      INFO [org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl]: Load aiming EVALUATED for Unloaded Gradle Project: GradleFiles[projectDir=/space/src/micronaut/core/micronaut-core/router, rootDir=/space/src/micronaut/core/micronaut-core]
       

      from project info refresh. Note that in both cases, as project reloads, its classpath changes and starts to sniffing for complete depdency closure, many other projects (the dependencies) may be loaded back to the memory.

       

      IMHO the icon annotator could be suppressed for projects that are not open. I am less sure about the action enablement check, as it could work even without explicit project open ... we need to investigate the similar case with Maven, if it behaves equally bad.

       

      // cc: lkishalmi 

      Attachments

        Issue Links

          Activity

            People

              sdedic Svatopluk Dedic
              sdedic Svatopluk Dedic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: