Open MuForum opened 3 years ago
What language is the server written in?
This appears to be a bug in the server reflection implementation that fails to return the descriptor for this enum.
Hi @jhump. Java application.
$ java --version
openjdk 11.0.10 2021-01-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9-LTS, mixed mode, sharing)
<!-- GRPC -->
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.34.1</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.34.1</version>
</dependency>
<dependency>
<groupId>net.devh</groupId>
<artifactId>grpc-spring-boot-starter</artifactId>
<version>2.10.1.RELEASE</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<!-- https://github.com/xolstice/protobuf-maven-plugin -->
<version>0.6.1</version>
<configuration>
<!-- https://github.com/protocolbuffers/protobuf -->
<protocArtifact>com.google.protobuf:protoc:3.15.8:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<!-- https://github.com/grpc/grpc-java -->
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.37.0:exe:${os.detected.classifier}</pluginArtifact>
<includes>
<include>**/FM_FMService.proto</include>
</includes>
<protoSourceRoot>${project.basedir}/Interfaces/Proto/1.0</protoSourceRoot>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
@MuForum, this is an issue in the grpc-java implementation: https://github.com/grpc/grpc-java/blob/72527708f552036ffcd70923ff12a4b26c9d17d4/services/src/main/java/io/grpc/protobuf/services/ProtoReflectionService.java#L486 It is not adding enums to the set of indexed descriptor names. That means that it cannot answer reflection calls that ask to fetch descriptors via an enum name, which is what happens when you try to describe an enum.
Hi. I'm trying to get the description of an enum and it gives me an error: "Failed to resolve symbol "com.nms.noc.fm.grpc.AlarmState": Symbol not found: com.nms.noc.fm.grpc.AlarmState"
P.S. -> How can I get the description of just an enum via the command line?