zalopay-oss / jmeter-grpc-plugin

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

I get an error says "grpcCallMethod Exception" #1

Closed joan2015 closed 4 years ago

joan2015 commented 4 years ago

I follow the readme and get an error like this 2020-03-20 21:57:45,712 INFO o.j.g.c.GrpcClientSampler: grpcCallMethod 2020-03-20 21:57:45,712 ERROR o.j.g.c.GrpcClientSampler: grpcCallMethod Exception java.lang.NoSuchMethodException: greet.GreeterGrpc$GreeterBlockingStub.SayHello(greet.HelloRequest) how can I fix this?

thoainguyen commented 4 years ago

Can you give me your .proto and .jmx files? For the error is displayed, I can guess some problem can happen:

datuanmac commented 4 years ago

I follow command: apache-jmeter-5.2/bin/jmeter.sh -n -t GrpcClientSampler.jmx -l result.csv Picked up _JAVA_OPTIONS: -Xmx4096m Error in NonGUIDriver java.lang.NullPointerException An error occurred: Error in NonGUIDriver null How can I fix this error ?

A1Darkwing commented 4 years ago

hi @datuanmac, please attach ur proto? And check @thoainguyen' comment.

datuanmac commented 4 years ago

hi @datuanmac, please attach ur proto? And check @thoainguyen' comment.

I try used command : apache-jmeter-5.2/bin/jmeter.sh -n -t hello.jmx -l result.csv But got same error: Picked up _JAVA_OPTIONS: -Xmx4096m Error in NonGUIDriver java.lang.NullPointerException An error occurred: Error in NonGUIDriver null

thoainguyen commented 4 years ago

Hello @datuanmac, before you run that command, please ensure : 1) The dependency jmeter-grpc-client-sampler.jar is coppied into apache-jmeter-5.2/lib/ext 2) The *.jar file after build *.proto file is also in apache-jmeter-5.2/lib/ext

thoainguyen commented 4 years ago

Close this issue due to inactivity.