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

[java] helm release installation fails: Index 0 out of bounds for length 0 #2209

Closed
hnicke opened this issue Oct 21, 2022 · 2 comments
Closed
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team

Comments

@hnicke
Copy link

hnicke commented Oct 21, 2022

What happened?

I get an Index 0 out of bounds for length 0 error when trying to provision a helm chart with the java sdk.

Steps to reproduce

    private val ingressController = Release(
        "nginx-ingress-controller",
        ReleaseArgs.builder()
            .chart("ingress-nginx")
            .version("4.1.4")
            .namespace(nginxNamespace)
            .repositoryOpts(
                RepositoryOptsArgs.builder()
                    .repo("https://kubernetes.github.io/ingress-nginx")
                    .build()
            )
            .build(),
    )

With above Release resource defined in the stack, run pulumi up

Expected Behavior

No error.

Actual Behavior

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
        at java.base/java.util.Objects.checkIndex(Objects.java:385)
        at java.base/java.util.ArrayList.set(ArrayList.java:441)
        at com.google.protobuf.LazyStringArrayList.set(LazyStringArrayList.java:140)
        at com.google.protobuf.LazyStringArrayList.set(LazyStringArrayList.java:61)
        at pulumirpc.Resource$ReadResourceRequest$Builder.setDependencies(Resource.java:3384)
        at com.pulumi.deployment.internal.DeploymentImpl$ReadResource.lambda$readResourceAsync$1(DeploymentImpl.java:1345)
        at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
        at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2179)
        at com.pulumi.resources.Resource$LazyField.complete(Resource.java:608)
        at com.pulumi.resources.Resource$LazyField.completeOrThrow(Resource.java:601)
        at com.pulumi.deployment.internal.DeploymentImpl$ReadOrRegisterResourceInternal.lambda$completeResourceAsync$0(DeploymentImpl.java:1166)
        at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
        at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1311)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1840)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1806)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
    error: an unhandled error occurred: '.... run --console=plain' exited with non-zero exit code: 1

Output of pulumi about

No response

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@hnicke hnicke added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Oct 21, 2022
@Zaid-Ajaj
Copy link

Hi there @hnicke, thank you for reporting this issue! Could you please submit the full definition of the stack for us to further investigate the problem?

@hnicke
Copy link
Author

hnicke commented Oct 21, 2022

I can't share the complete stack unfortunately.
I tried to compile a minimal example. However, I can't reproduce the error since I'm getting another one now.
I've reported the new problem here: pulumi/pulumi-java#629 (comment)

Closing this issue for now.

@hnicke hnicke closed this as completed Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team
Projects
None yet
Development

No branches or pull requests

2 participants