zalopay-oss / jmeter-grpc-plugin

A JMeter plugin supports load test gRPC
Apache License 2.0
42 stars 23 forks source link

NoSuchMethodError on com.google.common.base #3

Closed aleksandar-spasojevic closed 4 years ago

aleksandar-spasojevic commented 4 years ago

Dear All,

I've tried to use this plugin, but failed to do so. A basic example on Mac OS X (10.15.4):

syntax = "proto3";

option java_multiple_files = true;
option java_package = "ch.zhaw.grpc";
option java_outer_classname = "Measurements";
option objc_class_prefix = "HLW";

package ch.zhaw.grpc;

import "google/protobuf/timestamp.proto";

service MeasurementsService {
  rpc send (MeasurementsRequest) returns (MeasurementsReply) {}
}

message MeasurementsRequest {
  google.protobuf.Timestamp timeValue = 1;
  int32 value = 2;
}

message MeasurementsReply {
  string timeValue = 1;
  int32 value = 2;
}

Now make a Test Plan in order to try a GRPC Sampler, which fails due to missing Method. The funny thing is, if I execute in the very same session once again, I get an other error, namely

First try image

Second try (in the same session, just seconds after image

Best regards Aleks

thoainguyen commented 4 years ago

Hi, Thanks for your detailed description, your issue may be due to incompatible dependencies Try to recompile jmeter-grpc-client-sampler.jar:

aleksandar-spasojevic commented 4 years ago

Hi there, thanks for your prompt response 👍. I haven't mentioned: I am using JMeter 5.2.1 installed via brew install jmeter. I tried so, but without any success:

image

I still get the very same error message

image

thoainguyen commented 4 years ago

Hi @aleksandar-spasojevic, sorry for the late response, The JMeter which you installed via brew install jmeter maybe contains another dependency that causes this problem, Do you try to install the new one or portable one in here ?

Best regards Thoai Nguyen

aleksandar-spasojevic commented 4 years ago

Hi @thoainguyen thanks for your response. Since I have the urge to load test (bachelor thesis) my application, I was forced to do my tests in https://locust.io . Due to the current situation, I am not able to investigate further. I hope you understand. Best regards Aleks