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

Erroneous Gradle Compile-on-Save activity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 9.0
    • Fix Version/s: None
    • Component/s: third-party - Other
    • Environment:

      Description

      expected

      • To carry on my editing and testing without burdensome overheads
      • Also don't want Settings and Options that are turned-off to be acted upon.

      actual

      • Looking at the log output, I see that something was logged for Compile-on-Save (see below)
      • I do not have Compile on save set in my Gradle / Project options (see screenshot)

       

      Gradle Compile settings

       

      .CompileOnSave errors

      INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent for tcID:'MultiView-java#002Eso2D0988CFtext#002Ehistory#007C'. Reason: Top component MultiView-java#002Eso2D0988CFtext#002Ehistory#007C could not be located or loaded from Components folder.
      WARNING [org.netbeans.modules.java.preprocessorbridge.spi.CompileOnSaveAction]: More than one binary directory for root: file:/D:/work/products/FourAbs/FourAbsClientLibrary/src/main/java/
      WARNING [org.netbeans.modules.java.preprocessorbridge.spi.CompileOnSaveAction]: More than one binary directory for root: file:/D:/work/products/FourAbs/FourAbsClientLibrary/src/main/java/
      INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: CancelableTaskWrapper[task: org.netbeans.modules.java.navigation.ElementScanningTask@481f9ade, phase: ELEMENTS_RESOLVED, priority: 300] : class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 1,787 ms.
      WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.editor.NbEditorDocument.removePropertyChangeListener from org.netbeans.modules.editor.NbEditorDocument@72d5f76d, mimeType='text/x-editor-search', kitClass=null, length=10, version=16, file=null
      WARNING [org.netbeans.modules.java.source.parsing.JavacParser]: Invalid or deleted file: Z:\$$$\SYSTEM\vcs-1523941566317\vcs-1523945354090\JPanelSpaDetails.java
      WARNING [org.netbeans.modules.versioning.core.spi.VCSContext]: null VCSFileProxy for FileObject AbstractFileObject@6781f8d1[au/com/fourtel/util/client/JPanelDetail.java]
      WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.editor.NbEditorDocument.removePropertyChangeListener from org.netbeans.modules.editor.NbEditorDocument@495e185e, mimeType='text/x-java', kitClass=null, length=5950, version=1, file=org.netbeans.modules.java.JavaDataObject@65fca003[AbstractFileObject@6781f8d1[au/com/fourtel/util/client/JPanelDetail.java]]
      INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: CancelableTaskWrapper[task: org.netbeans.modules.java.navigation.ElementScanningTask@4cbe101b, phase: ELEMENTS_RESOLVED, priority: 300] : class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 1,000 ms.
      WARNING [org.netbeans.modules.versioning.core.spi.VCSContext]: null VCSFileProxy for FileObject AbstractFileObject@2151164c[javax/swing/JComboBox.java]
      WARNING [org.netbeans.modules.versioning.core.spi.VCSContext]: null VCSFileProxy for FileObject AbstractFileObject@6781f8d1[au/com/fourtel/util/client/JPanelDetail.java]
      WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.editor.NbEditorDocument.removePropertyChangeListener from org.netbeans.modules.editor.NbEditorDocument@28c00c9e, mimeType='text/x-java', kitClass=null, length=88835, version=1, file=org.netbeans.modules.java.JavaDataObject@16085530[AbstractFileObject@2151164c[javax/swing/JComboBox.java]]
      INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: CancelableTaskWrapper[task: org.netbeans.modules.java.navigation.ElementScanningTask@2722c878, phase: ELEMENTS_RESOLVED, priority: 300] : class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 295 ms.
      INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: CancelableTaskWrapper[task: org.netbeans.modules.java.navigation.ElementScanningTask@2722c878, phase: ELEMENTS_RESOLVED, priority: 300] : class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 258 ms.
      WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.editor.NbEditorDocument.removePropertyChangeListener from org.netbeans.modules.editor.NbEditorDocument@794fd92d, mimeType='text/x-editor-search', kitClass=null, length=3, version=11, file=null
      INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: CancelableTaskWrapper[task: org.netbeans.modules.java.hints.spiimpl.hints.HintsTask@71375b8c, phase: RESOLVED, priority: 500] : class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 148 ms.
      INFO [org.netbeans.gradle.project.tasks.GradleTasks]: Build has been canceled.
      org.gradle.tooling.BuildCancelledException: Could not execute build using Gradle installation 'B:\tools\gradle\home'.
              at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:47)
              at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
              at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)
              at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
              at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
              at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
              at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
              at java.base/java.lang.Thread.run(Thread.java:844)
              at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
              at org.gradle.tooling.internal.consumer.DefaultBuildLauncher.run(DefaultBuildLauncher.java:77)
      [catch] at org.netbeans.gradle.project.tasks.AsyncGradleTask.runBuild(AsyncGradleTask.java:390)
              at org.netbeans.gradle.project.tasks.AsyncGradleTask.doGradleTasksWithProgressIgnoreTaskDefCancel(AsyncGradleTask.java:518)
              at org.netbeans.gradle.project.tasks.AsyncGradleTask.doGradleTasksWithProgressIgnoreTaskDefCancel(AsyncGradleTask.java:423)
              at org.netbeans.gradle.project.tasks.AsyncGradleTask.doGradleTasksWithProgress(AsyncGradleTask.java:414)
              at org.netbeans.gradle.project.tasks.AsyncGradleTask.access$400(AsyncGradleTask.java:99)
              at org.netbeans.gradle.project.tasks.AsyncGradleTask$BuildExecutionItem$1.run(AsyncGradleTask.java:841)
              at org.netbeans.gradle.project.tasks.GradleDaemonManager.runBlockingGradleTask(GradleDaemonManager.java:51)
              at org.netbeans.gradle.project.tasks.GradleDaemonManager.access$200(GradleDaemonManager.java:22)
              at org.netbeans.gradle.project.tasks.GradleDaemonManager$2.execute(GradleDaemonManager.java:128)
              at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
              at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
              at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
              at org.jtrim.concurrent.ThreadPoolTaskExecutor$ThreadPoolTaskExecutorImpl$QueuedItem.runTask(ThreadPoolTaskExecutor.java:1213)
              at org.jtrim.concurrent.ThreadPoolTaskExecutor$ThreadPoolTaskExecutorImpl$Worker.executeTask(ThreadPoolTaskExecutor.java:1049)
              at org.jtrim.concurrent.ThreadPoolTaskExecutor$ThreadPoolTaskExecutorImpl$Worker.run(ThreadPoolTaskExecutor.java:1179)
              at org.jtrim.concurrent.ThreadPoolTaskExecutor$ThreadPoolTaskExecutorImpl$Worker$1.run(ThreadPoolTaskExecutor.java:998)
              at java.base/java.lang.Thread.run(Thread.java:844)
      WARNING [org.openide.filesystems.Ordering]: Not all children in OptionsDialog/Editor/ marked with the position attribute: [org-netbeans-freemarker-panel-FTLOptionsPanelController.instance], but some are: [CodeCompletion, Formatting, Hints, MarkOccurrences, OnSave, General.instance, Folding.instance, Formatting.instance, CodeCompletion.instance, CodeTemplates.instance, Hints.instance, MarkOccurrences.instance, Macros.instance, OnSave.instance, org-netbeans-modules-spellchecker-options-SpellcheckerOptionsPanelController.instance, goto.instance]
      

      Impact

      • I believe this and other faults I observe in the log file output are slowing down the Netbeans run-time over all
      • There are Noticable Pauses when something goes wrong like this
      • Often the error message doesn't make sense to Me because it seems to be documenting some activity that should not be in use/turned-on.
      • This is a severe impact on performance - This Beta is a LONG way from production quality.

      supporting information

      • screenshot
      • relevant log output snippet
      • messages.log

        Attachments

        1. messages.log
          450 kB
          will mason
        2. image-2018-04-17-16-32-57-113.png
          31 kB
          will mason

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aplatypus will mason
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: