Travis created NETBEANS-2753: -------------------------------- Summary: NPE while running Junit5 tests via built-in gradle support Key: NETBEANS-2753 URL: https://issues.apache.org/jira/browse/NETBEANS-2753 Project: NetBeans Issue Type: Bug Components: projects - Gradle Affects Versions: 11.1 Environment: Windows 10 Oracle JDK 8 Netbeans 11.1 beta 2 JUnit 5.4 Gradle 5.2 Reporter: Travis Assignee: Laszlo Kishalmi
I tested Netbeans 11.1 beta 2 on my large multi-project Gradle build. One of the issues I found is that while running tests, I got a notification from Netbeans with this exception. This did not prevent tests from finishing with correct results. However, I think maybe it caused text to stop printing in the "output" pane prior to the end of the run? java.lang.NullPointerException at org.netbeans.core.output2.OutWriter.print(OutWriter.java:573) at org.netbeans.core.output2.NbIO$IOColorPrintImpl.print(NbIO.java:546) at org.openide.windows.IOColorPrint.print(IOColorPrint.java:85) at org.netbeans.modules.gradle.execute.GradlePlainEscapeProcessor$IODisplayer.doPrint(GradlePlainEscapeProcessor.java:130) at org.netbeans.modules.gradle.api.output.OutputDisplayer.print(OutputDisplayer.java:41) at org.netbeans.modules.gradle.java.output.JavaCompilerProcessorFactory$StackTraceProcessor.processLine(JavaCompilerProcessorFactory.java:98) at org.netbeans.modules.gradle.execute.GradlePlainEscapeProcessor.processText(GradlePlainEscapeProcessor.java:94) at org.netbeans.modules.gradle.execute.EscapeProcessingOutputStream.processBulk(EscapeProcessingOutputStream.java:107) at org.netbeans.modules.gradle.execute.EscapeProcessingOutputStream.write(EscapeProcessingOutputStream.java:66) at java.io.OutputStream.write(OutputStream.java:116) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at org.gradle.internal.logging.text.StreamBackedStandardOutputListener.onOutput(StreamBackedStandardOutputListener.java:47) at org.gradle.internal.logging.text.StreamingStyledTextOutput.doAppend(StreamingStyledTextOutput.java:55) at org.gradle.internal.logging.text.AbstractStyledTextOutput.text(AbstractStyledTextOutput.java:73) at org.gradle.internal.logging.console.StyledTextOutputBackedRenderer$OutputEventTextOutputImpl.doEndLine(StyledTextOutputBackedRenderer.java:93) at org.gradle.internal.logging.text.AbstractLineChoppingStyledTextOutput$StateContext.flushEndLine(AbstractLineChoppingStyledTextOutput.java:132) at org.gradle.internal.logging.text.AbstractLineChoppingStyledTextOutput$3.execute(AbstractLineChoppingStyledTextOutput.java:193) at org.gradle.internal.logging.text.AbstractLineChoppingStyledTextOutput$3.execute(AbstractLineChoppingStyledTextOutput.java:188) at org.gradle.internal.logging.text.AbstractLineChoppingStyledTextOutput.doAppend(AbstractLineChoppingStyledTextOutput.java:41) at org.gradle.internal.logging.text.AbstractStyledTextOutput.text(AbstractStyledTextOutput.java:73) at org.gradle.internal.logging.text.AbstractStyledTextOutput.println(AbstractStyledTextOutput.java:68) at org.gradle.internal.logging.events.LogEvent.render(LogEvent.java:53) at org.gradle.internal.logging.console.StyledTextOutputBackedRenderer.onOutput(StyledTextOutputBackedRenderer.java:66) at org.gradle.internal.logging.sink.ErrorOutputDispatchingListener.onOutput(ErrorOutputDispatchingListener.java:38) at org.gradle.internal.logging.sink.GroupingProgressLogEventGenerator$OperationGroup.flushOutput(GroupingProgressLogEventGenerator.java:229) at org.gradle.internal.logging.sink.GroupingProgressLogEventGenerator$OperationGroup.maybeFlushOutput(GroupingProgressLogEventGenerator.java:251) at org.gradle.internal.logging.sink.GroupingProgressLogEventGenerator.onUpdateNow(GroupingProgressLogEventGenerator.java:134) at org.gradle.internal.logging.sink.GroupingProgressLogEventGenerator.onOutput(GroupingProgressLogEventGenerator.java:79) at org.gradle.internal.logging.console.BuildLogLevelFilterRenderer.onOutput(BuildLogLevelFilterRenderer.java:41) at org.gradle.internal.logging.console.AbstractUserInputRenderer.onOutput(AbstractUserInputRenderer.java:56) at org.gradle.internal.logging.console.ThrottlingOutputEventListener.renderNow(ThrottlingOutputEventListener.java:93) at org.gradle.internal.logging.console.ThrottlingOutputEventListener.onOutput(ThrottlingOutputEventListener.java:83) at org.gradle.internal.logging.sink.OutputEventRenderer.removeChain(OutputEventRenderer.java:120) at org.gradle.internal.logging.sink.OutputEventRenderer.restore(OutputEventRenderer.java:104) at org.gradle.internal.logging.services.DefaultLoggingManager$StartableLoggingRouter.stop(DefaultLoggingManager.java:298) at org.gradle.internal.logging.services.DefaultLoggingManager.stop(DefaultLoggingManager.java:101) at org.gradle.internal.logging.services.DefaultLoggingManager.stop(DefaultLoggingManager.java:38) at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:61) at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:38) at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:195) at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:138) at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:193) at org.gradle.tooling.internal.consumer.connection.CancellableModelBuilderBackedModelProducer.produceModel(CancellableModelBuilderBackedModelProducer.java:53) at org.gradle.tooling.internal.consumer.connection.PluginClasspathInjectionSupportedCheckModelProducer.produceModel(PluginClasspathInjectionSupportedCheckModelProducer.java:41) at org.gradle.tooling.internal.consumer.connection.AbstractConsumerConnection.run(AbstractConsumerConnection.java:59) at org.gradle.tooling.internal.consumer.connection.ParameterValidatingConsumerConnection.run(ParameterValidatingConsumerConnection.java:47) at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(DefaultBuildLauncher.java:89) at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(DefaultBuildLauncher.java:83) at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:84) at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45) at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58) at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38) at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55) 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) Caused: org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle installation 'C:\Gradle\gradle-5.4.1'. at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:55) 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.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) at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46) at org.gradle.tooling.internal.consumer.DefaultBuildLauncher.run(DefaultBuildLauncher.java:77) at org.netbeans.modules.gradle.execute.GradleDaemonExecutor.run(GradleDaemonExecutor.java:168) [catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128) -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists