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

integration-tests/grpc-external-proto-test generate-code step fails to generate Java classes from proto files #36245

Closed
jamesnetherton opened this issue Oct 2, 2023 · 3 comments · Fixed by #36262
Labels
area/grpc gRPC kind/bug Something isn't working
Milestone

Comments

@jamesnetherton
Copy link
Contributor

Describe the bug

Observed in the Camel Quarkus nightly build with Quarkus 999-SNAPSHOT. The project build fails at integration-tests/grpc-external-proto-test with:

Caused by: io.quarkus.bootstrap.prebuild.CodeGenException: Failed to generate Java classes from proto files: [/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/src/main/proto/extended.proto, /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/protobuf/base.proto, /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/protobuf/role.proto, /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/dir/proto-with-java_generic_services.proto, /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/dir/my-proto.proto] to /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/generated-sources/grpc with command /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/com.google.protobuf-protoc-linux-x86_64-exe -I=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/dir -I=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/src/main/proto -I=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d -I=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/protobuf -I=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-dependencies/6c3c225c5c070189dc57b09dcabf81b0f16d842d --plugin=protoc-gen-grpc=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/io.grpc-protoc-gen-grpc-java-linux-x86_64-exe --plugin=protoc-gen-q-grpc=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/quarkus-grpc2586788389285755291.sh --q-grpc_out=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/generated-sources/grpc --grpc_out=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/generated-sources/grpc --java_out=/home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/generated-sources/grpc /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/src/main/proto/extended.proto /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/protobuf/base.proto /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/protobuf/role.proto /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/dir/proto-with-java_generic_services.proto /home/runner/work/camel-quarkus/quarkus/integration-tests/grpc-external-proto-test/target/protoc-protos-from-dependencies/3a59f6ebb51a27a99eea361ddf0a831cb6314c7d/dir/my-proto.proto
     at io.quarkus.grpc.deployment.GrpcCodeGen.trigger (GrpcCodeGen.java:142)
     at io.quarkus.deployment.CodeGenerator.lambda$trigger$3 (CodeGenerator.java:189)
     at io.quarkus.deployment.CodeGenerator.callWithClassloader (CodeGenerator.java:164)
     at io.quarkus.deployment.CodeGenerator.trigger (CodeGenerator.java:186)
     at io.quarkus.deployment.CodeGenerator.initAndRun (CodeGenerator.java:76)
     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke (Method.java:568)
     at io.quarkus.maven.GenerateCodeMojo.generateCode (GenerateCodeMojo.java:88)
     at io.quarkus.maven.GenerateCodeMojo.doExecute (GenerateCodeMojo.java:54)
     at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:171)

I see the same thing locally.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

  1. Clone quarkusio/quarkus
  2. Checkout the main branch
  3. ./mvnw clean install -Dquickly

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@jamesnetherton jamesnetherton added the kind/bug Something isn't working label Oct 2, 2023
@quarkus-bot quarkus-bot bot added the area/grpc gRPC label Oct 2, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 2, 2023

/cc @alesj (grpc), @cescoffier (grpc)

jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Oct 3, 2023
jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Oct 3, 2023
@cescoffier
Copy link
Member

Unfortunately, I can't reproduce the issue. I will get rid of my maven repo to check again.

@cescoffier
Copy link
Member

See #36262.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/grpc gRPC kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants