https://pulumi.com logo
#general
Title
# general
f

full-art-3978

02/29/2024, 3:12 AM
Please help! Getting this error:
Feb 28, 2024 6:55:39 PM com.pulumi.deployment.internal.DeploymentImpl$DefaultEngineLogger errorAsync
SEVERE: Running program [PID: 58769](/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home//bin/java -classpath /opt/homebrew/Cellar/maven/3.9.6/libexec/boot/plexus-classworlds-2.7.0.jar -Dclassworlds.conf=/opt/homebrew/Cellar/maven/3.9.6/libexec/bin/m2.conf -Dmaven.home=/opt/homebrew/Cellar/maven/3.9.6/libexec -Dlibrary.jansi.path=/opt/homebrew/Cellar/maven/3.9.6/libexec/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/Users/kostya/RustroverProjects/axum-demo/quickstart org.codehaus.plexus.classworlds.launcher.Launcher -Dorg.slf4j.simpleLogger.defaultLogLevel=warn --no-transfer-progress compile exec:java) failed with an unhandled exception: java.lang.UnsupportedOperationException: Convert [com.pulumi.aws.lb.TargetGroup.targetHealthStates]: Error converting 'java.util.Collections$UnmodifiableRandomAccessList' to 'TypeShape{type=interface java.util.List, parameters=[TypeShape{type=class com.pulumi.aws.lb.outputs.TargetGroupTargetHealthState, parameters=[]}]}'. null at com.pulumi.serialization.internal.Converter.convertObjectUntyped(Converter.java:119) at com.pulumi.serialization.internal.Converter.convertValue(Converter.java:86) at com.pulumi.core.internal.OutputCompletionSource.setValue(OutputCompletionSource.java:95) at com.pulumi.deployment.internal.DeploymentImpl$ReadOrRegisterResourceInternal.lambda$completeResourceAsync$0(DeploymentImpl.java:1187) 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:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) Caused by: java.lang.NullPointerException at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:903) at com.google.common.collect.ImmutableList$Builder.add(ImmutableList.java:815) at com.pulumi.serialization.internal.Converter.tryConvertList(Converter.java:642) at com.pulumi.serialization.internal.Converter.tryConvertObjectInner(Converter.java:277) at com.pulumi.serialization.internal.Converter.convertObjectUntyped(Converter.java:115) ... 10 more
Copy code
var alb = new ApplicationLoadBalancer("app-lb", ApplicationLoadBalancerArgs.builder()
                    .securityGroups(dbSecurityGroup.id().applyValue(id -> List.of(id)))
                    .subnetIds(vpc.publicSubnetIds())
                    .internal(false)
                    .defaultTargetGroup(TargetGroupArgs.builder()
                            .targetType("ip")
                            .port(8080)
                            .vpcId(vpc.vpcId())
                            .protocol("HTTP")
                            .healthCheck(TargetGroupHealthCheckArgs.builder()
                                    .enabled(false)
                                    .build())

                            .build())

                    .build());