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

Crash when using AWSX: Invalid character(s) found in major number "v1" #549

Closed
Tracked by #598
jkodroff opened this issue May 4, 2022 · 6 comments
Closed
Tracked by #598
Assignees
Labels
impact/panic This bug represents a panic or unexpected crash kind/bug Some behavior is incorrect or out of spec language/java resolution/fixed This issue was fixed
Milestone

Comments

@jkodroff
Copy link
Member

jkodroff commented May 4, 2022

Steps to reproduce:

  1. Create a minimal AWSX Pulumi program in Java
  2. pulumi preview

The following error is generated:

Diagnostics:
  pulumi:pulumi:Stack (awsx-java-dev):
    May 04, 2022 5:28:36 PM com.pulumi.deployment.internal.DeploymentImpl$DefaultEngineLogger errorAsync
    SEVERE: Running program [PID: 98811](/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home/bin/java -classpath /opt/homebrew/Cellar/maven/3.8.5/libexec/boot/plexus-classworlds-2.6.0.jar -Dclassworlds.conf=/opt/homebrew/Cellar/maven/3.8.5/libexec/bin/m2.conf -Dmaven.home=/opt/homebrew/Cellar/maven/3.8.5/libexec -Dlibrary.jansi.path=/opt/homebrew/Cellar/maven/3.8.5/libexec/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/Users/jkodroff/tmp/awsx-java org.codehaus.plexus.classworlds.launcher.Launcher --quiet --no-transfer-progress compile exec:java) failed with an unhandled exception:
    io.grpc.StatusRuntimeException: UNKNOWN: Invalid character(s) found in major number "v1"
@jkodroff jkodroff added impact/panic This bug represents a panic or unexpected crash kind/bug Some behavior is incorrect or out of spec labels May 4, 2022
@slnowak
Copy link

slnowak commented May 11, 2022

Seen this one today with the following code:

package myproject;

import com.pulumi.Pulumi;
import com.pulumi.aws.ecr.Repository;
import com.pulumi.awsx.ecr.Image;
import com.pulumi.awsx.ecr.ImageArgs;

public class App1 {

    public static void main(String[] args) {
        Pulumi.run(ctx -> {
            var repo = new Repository("thumbnailer");
            var image = new Image("thumbnailer", ImageArgs.builder()
                    .repositoryUrl(repo.repositoryUrl())
                    .dockerfile("FROM amazon/aws-lambda-nodejs:12")
                    .build());
        });
    }
}
  pulumi:pulumi:Stack (iac-workshop-thumbnailer-dev):
    error: Running program [PID: 74968](/usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home/bin/java -classpath /usr/local/Cellar/maven/3.8.5/libexec/boot/plexus-classworlds-2.6.0.jar -Dclassworlds.conf=/usr/local/Cellar/maven/3.8.5/libexec/bin/m2.conf -Dmaven.home=/usr/local/Cellar/maven/3.8.5/libexec -Dlibrary.jansi.path=/usr/local/Cellar/maven/3.8.5/libexec/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/Users/snowak/work/internal/pulumi/python_course/lambda/module3/java org.codehaus.plexus.classworlds.launcher.Launcher --quiet --no-transfer-progress compile exec:java) failed with an unhandled exception:
    io.grpc.StatusRuntimeException: UNKNOWN: Invalid character(s) found in major number "v1"
        at io.grpc.Status.asRuntimeException(Status.java:535)
        at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:533)
        at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
        at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
    error: an unhandled error occurred: '/usr/local/bin/mvn /usr/local/bin/mvn --quiet --no-transfer-progress compile exec:java' exited with non-zero exit code: 32
 
    May 11, 2022 2:36:59 PM com.pulumi.deployment.internal.DeploymentImpl$DefaultEngineLogger errorAsync
    SEVERE: Running program [PID: 74968](/usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home/bin/java -classpath /usr/local/Cellar/maven/3.8.5/libexec/boot/plexus-classworlds-2.6.0.jar -Dclassworlds.conf=/usr/local/Cellar/maven/3.8.5/libexec/bin/m2.conf -Dmaven.home=/usr/local/Cellar/maven/3.8.5/libexec -Dlibrary.jansi.path=/usr/local/Cellar/maven/3.8.5/libexec/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/Users/snowak/work/internal/pulumi/python_course/lambda/module3/java org.codehaus.plexus.classworlds.launcher.Launcher --quiet --no-transfer-progress compile exec:java) failed with an unhandled exception:
    io.grpc.StatusRuntimeException: UNKNOWN: Invalid character(s) found in major number "v1"
        at io.grpc.Status.asRuntimeException(Status.java:535)
        at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:533)
        at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
        at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
 

@t0yv0
Copy link
Member

t0yv0 commented May 11, 2022

Possibly caused by #586

@pawelprazak
Copy link
Contributor

Needs to be released for full fix, this PR would solve the problem of incrementing the version, by using the newly released version: #589

@pawelprazak
Copy link
Contributor

pawelprazak commented May 23, 2022

At least 1.0.0-beta.2 needs to be released to close this.

@t0yv0
Copy link
Member

t0yv0 commented May 31, 2022

@pawelprazak is this fixed on beta.6? It should be right? If you could confirm, much appreciated.

@pawelprazak
Copy link
Contributor

@t0yv0 yes, I believe so.

@t0yv0 t0yv0 added this to the 0.73 milestone Jun 1, 2022
@t0yv0 t0yv0 added the resolution/fixed This issue was fixed label Jun 1, 2022
@t0yv0 t0yv0 closed this as completed Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/panic This bug represents a panic or unexpected crash kind/bug Some behavior is incorrect or out of spec language/java resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

5 participants