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

[Bug] package io.grpc.health.v1 does not exist #14842

Open
3 of 4 tasks
simon28li opened this issue Oct 30, 2024 · 3 comments
Open
3 of 4 tasks

[Bug] package io.grpc.health.v1 does not exist #14842

simon28li opened this issue Oct 30, 2024 · 3 comments
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@simon28li
Copy link

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo Java 3.3.1, OpenJDK 1.8, openEuler22.03

Steps to reproduce this issue

mvn clean package -DskipTests

What you expected to happen

The error is reported as follows,I compiled successfully on machines on other systems such as centos8, but I don't know what caused the difference.

[INFO] --- maven-remote-resources-plugin:3.1.0:process (process-resource-bundles) @ dubbo-rpc-triple ---
[INFO] Preparing remote bundle org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO]
[INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ dubbo-rpc-triple ---
[INFO] Copying 19 resources from src/main/resources to target/classes
[INFO] Copying 2 resources from ../.. to target/classes/META-INF
[INFO] Copying 1 resource from ../.. to target/classes/META-INF/dubbo-versions
[INFO] Copying 3 resources from target/maven-shared-archive-resources to target/classes
[INFO]
[INFO] --- flatten-maven-plugin:1.6.0:flatten (flatten) @ dubbo-rpc-triple ---
[INFO] Generating flattened POM of project org.apache.dubbo:dubbo-rpc-triple:jar:3.3.1...
[INFO]
[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ dubbo-rpc-triple ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 219 source files with javac [forked debug target 1.8] to target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
/home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleProtocol.java:[45,44] error: package io.grpc.health.v1.HealthCheckResponse does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/TriBuiltinService.java:[33,24] error: package io.grpc.health.v1 does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/TriBuiltinService.java:[34,24] error: package io.grpc.health.v1 does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/TriBuiltinService.java:[49,12] error: cannot find symbol
  symbol:   class Health
  location: class TriBuiltinService
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[28,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[29,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[30,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[31,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[32,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[33,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[34,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[35,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[36,33] error: package io.grpc.reflection.v1alpha does not exist
[ERROR] /home/stage/root/spack-stage-dubbo-3.3.1-ljcurzemeprkoyo3ixhz3dxhszsn3fct/spack-src/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/service/ReflectionV1AlphaService.java:[43,73] error: package DubboServerReflectionTriple does not exist

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@simon28li simon28li added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Oct 30, 2024
@heliang666s
Copy link
Contributor

Since these codes are generated from proto files, you need to compile them once in Maven before proceeding with packaging.@simon28li

@simon28li
Copy link
Author

Since these codes are generated from proto files, you need to compile them once in Maven before proceeding with packaging.@simon28li

Can you tell me the specific steps?

@wcy666103
Copy link
Contributor

Since these codes are generated from proto files, you need to compile them once in Maven before proceeding with packaging.@simon28li

Can you tell me the specific steps?

try mvn clean complie package -DskipTests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

3 participants