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

Anomalous termination of gradle task

    XMLWordPrintableJSON

Details

    Description

      Generate a Gradle Spring Boot project on  http://start.spring.io adding the Web dependency.

      Unzip the download archive and open it in NetBeans.

      In the Navigator right click on the bootRun task and choose Run Task... from the context menu. The project compiles and starts directly from the build folder (the bootRun is a task provided by the spring boot gradle plugin) and should run an embedded Tomcat server listening on port 8080.

      Stop the task clicking the red stop button in the output window.

      The task stops but the launched gradle process reports an abnormal termination in the output window:

      Could not read standard output of command '/usr/lib/jvm/java-8-oracle/bin/java'.
      java.io.IOException: Stream closed
      at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:291)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at java.io.FilterInputStream.read(FilterInputStream.java:107)
      at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:61)
      at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:51)
      at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
      at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
      at java.lang.Thread.run(Thread.java:748)
      
      > Task :bootRun FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':bootRun'.
      > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 143
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      
      * Get more help at https://help.gradle.org
      
      Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
      Use '--warning-mode all' to show the individual deprecation warnings.
      See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings
      
      BUILD FAILED in 50s
      3 actionable tasks: 1 executed, 2 up-to-date
      
      

      Attachments

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              AlexFalappa Alessandro Falappa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m