Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-stub flag triggers error "Cannot invoke method clone() on null object" #5456

Closed
xuyangyuio opened this issue Oct 31, 2024 · 4 comments · Fixed by #5473
Closed

-stub flag triggers error "Cannot invoke method clone() on null object" #5456

xuyangyuio opened this issue Oct 31, 2024 · 4 comments · Fixed by #5473
Assignees

Comments

@xuyangyuio
Copy link

xuyangyuio commented Oct 31, 2024

Bug report

-stub flag breaks workflow with error message "Cannot invoke method clone() on null object"

Expected behavior and actual behavior

  • Without -stub flag, pipeline completes successfully.
  • With -stub flag, got error "Cannot invoke method clone() on null object"

Steps to reproduce the problem

test.nf:

process mockup {
    output:
    file "*.vcf"

    script:
    """
    touch "real.vcf"
    """
    
    stub:
    """
    touch "stub.vcf"
    """
}

process continue_run {
    input:
    file infile

    """
    echo success
    """
}

workflow {
  mockup | continue_run
}

nextflow run test.nf -stub

Program output

ERROR ~ Error executing process > 'continue_run'

Caused by:
  Cannot invoke method clone() on null object



 -- Check '.nextflow.log' file for details

Environment

  • Nextflow version: 24.10.0 (actually since 24.09.1-edge)
  • Java version: openjdk version "23" / "21.0.5"
  • Operating system: macOS / Linux
  • Bash version: zsh 5.9 / bash 5.1.4

Additional context

(Add any other context about the problem here)

@GallVp
Copy link

GallVp commented Nov 5, 2024

I am experiencing the same issue but without -stub.

@bentsherman
Copy link
Member

@jorgee can you look into this one, might be a regression from the recent changes we made

@phaverty-ginkgo
Copy link

Are there specific versions of java and nextflow that resolve this bug? Using openjdk 17.0.14 and nextflow 24.10.4 I still see this error when using -stub. Switching back to nextflow 24.04.4 nextflow runs as expected with the -stub flag.

@jorgee
Copy link
Contributor

jorgee commented Jan 25, 2025

@pditommaso we have not backported it to 24.10.X. I have added a tag to remember in the next one. I didn't label it in the original PR. @phaverty-ginkgo, it should be it 24.11.0-edge and 24.12.0-edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants