[ 
https://issues.apache.org/jira/browse/SOLR-18478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18118404#comment-18118404
 ] 

Andrzej Bialecki edited comment on SOLR-18478 at 9/23/26 3:21 PM:
------------------------------------------------------------------

Claude's opinion on this:
{noformat}
Gradle 9 (ExecOperations.exec) leaves ExecSpec.standardOutput null inside the
config action — defaults applied only afterwards. So Ant TeeOutputStream gets 
left = null and NPEs on first byte of npx output. Gradle wraps that as Could 
not 
read standard output of command '...npx'. Line dates to Gradle 7.x era where 
project.exec returned a non-null default — regression from the 9.x bump 
(c3fa6096fc SOLR-18342: Upgrade Gradle build to 9.7.0).{noformat}


was (Author: ab):
Claude's opinion on this:
{noformat}
Gradle 9 (ExecOperations.exec) leaves ExecSpec.standardOutput null inside the 
config action — defaults applied only afterwards. So Ant TeeOutputStream gets 
left = null and NPEs on first byte of npx output. Gradle wraps that as Could 
not read standard output of command '...npx'. Line dates to Gradle 7.x era 
where project.exec returned a non-null default — regression from the 9.x bump 
(c3fa6096fc SOLR-18342: Upgrade Gradle build to 9.7.0).{noformat}

> Solr Ref Guide checkSiteLinks task throws NPE
> ---------------------------------------------
>
>                 Key: SOLR-18478
>                 URL: https://issues.apache.org/jira/browse/SOLR-18478
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 10.1
>            Reporter: Andrzej Bialecki
>            Assignee: Andrzej Bialecki
>            Priority: Minor
>
> This error shows up when building the ref guide:
> {noformat}
> > Task :solr:solr-ref-guide:buildLocalSite
> The generated local ref-guide can be found at:
>         
> /Users/ab/.solr-releases/10.1.0/solr/solr/solr-ref-guide/build/site/index.html
> Could not read standard output of command 
> '/Users/ab/.solr-releases/10.1.0/solr/solr/solr-ref-guide/.gradle/node/nodejs/node-v22.18.0-darwin-arm64/bin/npx'.
> java.lang.NullPointerException: Cannot invoke 
> "java.io.OutputStream.write(byte[], int, int)" because "this.left" is null
>         at 
> org.apache.tools.ant.util.TeeOutputStream.write(TeeOutputStream.java:85)
>         at 
> org.gradle.process.internal.streams.ExecOutputHandleRunner.writeBuffer(ExecOutputHandleRunner.java:97)
>         at 
> org.gradle.process.internal.streams.ExecOutputHandleRunner.lambda$forwardContent$0(ExecOutputHandleRunner.java:81)
>         at 
> org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:74)
>         at 
> org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:80)
>         at 
> org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:64)
>         at 
> org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:65)
>         at 
> org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
>         at java.base/java.lang.Thread.run(Thread.java:1583)
> BUILD SUCCESSFUL in 2m 42s{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to