Tuesday, April 11, 2023

java.lang.runtime exception unable to resolve service by in working protec:unable to execute protoc binary

java.lang.runtime exception unable to resolve service by in working protec:unable to execute protoc binary



If your Jmeter script throws this error for gRPC script it could be related to the protocol buffer (protobuf) binary file not being found or not being able to execute it. To resolve this error, follow these steps:

  • Make sure that protobuf is installed on your system and the binary file is available in the PATH environment variable.
  • Check the JMeter log files for more information about the error, such as the exact path to the protoc binary file.
  • Verify that the protoc binary file is executable by running the following command in a terminal: 
  • 'chmod +x path/to/protoc'
  • If the protoc binary file is not available on your system, download it from the official protobuf website and add the binary file to the PATH environment variable.
  • Check JMeter and gRPC versions
  • Restart JMeter and try running your test plan again.

No comments: