Skip to content

[Bug] protoc-gen-grpc-java Path Issue in Dubbo Compilation #15293

@ankitshokeen

Description

@ankitshokeen

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

Environment:

OS: Windows 10

Java version: JDK 17

Dubbo version: 3.1.10

protoc version: libprotoc 30.2

protoc-gen-grpc-java version: 1.64.0

Steps to reproduce this issue

Run this command to reproduce protoc --proto_path=src/main/proto --java_out=src/main/java --grpc-java_out=src/main/java --plugin=protoc-gen-grpc-java="C:\path\to\protoc-gen-grpc-java.exe" src/main/proto/voice_chat.proto

What I Have Tried:

Verified that protoc-gen-grpc-java exists at C:\path\to\protoc-gen-grpc-java.exe.
Checked file permissions.
Confirmed protoc and protoc-gen-grpc-java are compatible versions.
Ran protoc --version to confirm it's installed correctly.
Tried using absolute paths in the command.

What you expected to happen

Expected Output:
The .java files should be generated without errors.

Actual Output:
The process fails with "The system cannot find the path specified" error.

Anything else

issue related to dubbo-rpc-tri (Dubbo Triple)
#12414

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions