thubbo / jmeter-plugins-for-apache-dubbo

Dubbo Plugin for Apache JMeter, It is a plug-in developed for testing Dubbo in Jmeter.
Apache License 2.0
566 stars 289 forks source link

测试dubbo接口,怎么没有返回值 #72

Closed liuwenya1234 closed 5 years ago

liuwenya1234 commented 5 years ago
{"code":1,"detailMessage":"Failfast invoke providers dubbo://192.168.1.101:20889/org.dromara.soul.test.dubbo.api.service.DubboTestService?accesslog\u003dtrue\u0026anyhost\u003dtrue\u0026application\u003dDubboSample\u0026async\u003dfalse\u0026check\u003dfalse\u0026cluster\u003dfailfast\u0026connections\u003d100\u0026dubbo\u003d2.6.0\u0026generic\u003dtrue\u0026interface\u003dorg.dromara.soul.test.dubbo.api.service.DubboTestService\u0026loadbalance\u003drandom\u0026methods\u003dtestMultiEntity,testEntityStringParam,findById,testListEntity,insert,testEntityStringListParam,findByIdAndName,insert3\u0026pid\u003d7212\u0026protocol\u003ddubbo\u0026register.ip\u003d192.168.1.101\u0026remote.timestamp\u003d1556791087522\u0026retries\u003d0\u0026side\u003dconsumer\u0026timestamp\u003d1556790456872 RandomLoadBalance select from all providers [com.alibaba.dubbo.registry.integration.RegistryDirectory$InvokerDelegate@1f8a46e1] for service com.alibaba.dubbo.rpc.service.GenericService method $invoke on consumer 192.168.1.101 use dubbo version 1.3.8-jar-with-dependencies, but no luck to perform the invocation. Last error is: Failed to invoke remote method: $invoke, provider: dubbo://192.168.1.101:20889/org.dromara.soul.test.dubbo.api.service.DubboTestService?accesslog\u003dtrue\u0026anyhost\u003dtrue\u0026application\u003dDubboSample\u0026async\u003dfalse\u0026check\u003dfalse\u0026cluster\u003dfailfast\u0026connections\u003d100\u0026dubbo\u003d2.6.0\u0026generic\u003dtrue\u0026interface\u003dorg.dromara.soul.test.dubbo.api.service.DubboTestService\u0026loadbalance\u003drandom\u0026methods\u003dtestMultiEntity,testEntityStringParam,findById,testListEntity,insert,testEntityStringListParam,findByIdAndName,insert3\u0026pid\u003d7212\u0026protocol\u003ddubbo\u0026register.ip\u003d192.168.1.101\u0026remote.timestamp\u003d1556791087522\u0026retries\u003d0\u0026side\u003dconsumer\u0026timestamp\u003d1556790456872, cause: com.alibaba.dubbo.rpc.RpcException: org.dromara.soul.test.dubbo.api.service.DubboTestService.findByIdAndName()\r\ncom.alibaba.dubbo.rpc.RpcException: org.dromara.soul.test.dubbo.api.service.DubboTestService.findByIdAndName()\r\n\tat com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:126)\r\n\tat com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68)\r\n\tat com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:37)\r\n\tat com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68)\r\n\tat com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:37)\r\n\tat com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68)\r\n\tat com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:98)\r\n\tat com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96)\r\n\tat com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:168)\r\n\tat com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:50)\r\n\tat com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:79)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: java.lang.NoSuchMethodException: org.dromara.soul.test.dubbo.api.service.DubboTestService.findByIdAndName()\r\n\tat java.lang.Class.getMethod(Class.java:1786)\r\n\tat com.alibaba.dubbo.common.utils.ReflectUtils.findMethodByMethodSignature(ReflectUtils.java:809)\r\n\tat com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:59)\r\n\t... 13 more\r\n","cause":{"localAddress":{},"remoteAddress":{},"detailMessage":"com.alibaba.dubbo.rpc.RpcException: org.dromara.soul.test.dubbo.api.service.DubboTestService.findByIdAndName()\r\ncom.alibaba.dubbo.rpc.RpcException: org.dromara.soul.test.dubbo.api.service.DubboTestService.findByIdAndName()\r\n\tat com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:126)\r\n\tat com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68)\r\n\tat com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:37)\r\n\tat com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68)\r\n\tat com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:37)\r\n\tat com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68)\r\n\tat com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:98)\r\n\tat com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96)\r\n\tat com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:168)\r\n\tat com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:50)\r\n\tat com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:79)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: java.lang.NoSuchMethodException: org.dromara.soul.test.dubbo.api.service.DubboTestService.findByIdAndName()\r\n\tat java.lang.Class.getMethod(Class.java:1786)\r\n\tat com.alibaba.dubbo.common.utils.ReflectUtils.findMethodByMethodSignature(ReflectUtils.java:809)\r\n\tat com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:59)\r\n\t... 13 more\r\n","stackTrace":[{"declaringClass":"com.alibaba.dubbo.remoting.exchange.support.DefaultFuture","methodName":"returnFromResponse","fileName":"DefaultFuture.java","lineNumber":245},{"declaringClass":"com.alibaba.dubbo.remoting.exchange.support.DefaultFuture","methodName":"get","fileName":"DefaultFuture.java","lineNumber":162},{"declaringClass":"com.alibaba.dubbo.remoting.exchange.support.DefaultFuture","methodName":"get","fileName":"DefaultFuture.java","lineNumber":135},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker","methodName":"doInvoke","fileName":"DubboInvoker.java","lineNumber":95},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.AbstractInvoker","methodName":"invoke","fileName":"AbstractInvoker.java","lineNumber":154},{"declaringClass":"com.alibaba.dubbo.rpc.filter.GenericImplFilter","methodName":"invoke","fileName":"GenericImplFilter.java","lineNumber":172},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1","methodName":"invoke","fileName":"ProtocolFilterWrapper.java","lineNumber":72},{"declaringClass":"com.alibaba.dubbo.monitor.support.MonitorFilter","methodName":"invoke","fileName":"MonitorFilter.java","lineNumber":75},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1","methodName":"invoke","fileName":"ProtocolFilterWrapper.java","lineNumber":72},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter","methodName":"invoke","fileName":"FutureFilter.java","lineNumber":54},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1","methodName":"invoke","fileName":"ProtocolFilterWrapper.java","lineNumber":72},{"declaringClass":"com.alibaba.dubbo.rpc.filter.ConsumerContextFilter","methodName":"invoke","fileName":"ConsumerContextFilter.java","lineNumber":49},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1","methodName":"invoke","fileName":"ProtocolFilterWrapper.java","lineNumber":72},{"declaringClass":"com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper","methodName":"invoke","fileName":"ListenerInvokerWrapper.java","lineNumber":77},{"declaringClass":"com.alibaba.dubbo.rpc.protocol.InvokerWrapper","methodName":"invoke","fileName":"InvokerWrapper.java","lineNumber":56},{"declaringClass":"com.alibaba.dubbo.rpc.cluster.support.FailfastClusterInvoker","methodName":"doInvoke","fileName":"FailfastClusterInvoker.java","lineNumber":48},{"declaringClass":"com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker","methodName":"invoke","fileName":"AbstractClusterInvoker.java","lineNumber":244},{"declaringClass":"com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker","methodName":"invoke","fileName":"MockClusterInvoker.java","lineNumber":75},{"declaringClass":"com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler","methodName":"invoke","fileName":"InvokerInvocationHandler.java","lineNumber":52},{"declaringClass":"com.alibaba.dubbo.common.bytecode.proxy1","methodName":"$invoke","fileName":"proxy1.java","lineNumber":-1},{"declaringClass":"io.github.ningyu.jmeter.plugin.dubbo.sample.DubboSample","methodName":"callDubbo","fileName":"DubboSample.java","lineNumber":548},{"declaringClass":"io.github.ningyu.jmeter.plugin.dubbo.sample.DubboSample","methodName":"sample","fileName":"DubboSample.java","lineNumber":346},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"executeSamplePackage","fileName":"JMeterThread.java","lineNumber":498},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"processSampler","fileName":"JMeterThread.java","lineNumber":424},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"run","fileName":"JMeterThread.java","lineNumber":255},{"declaringClass":"java.lang.Thread","methodName":"run","fileName":null,"lineNumber":-1}],"suppressedExceptions":[]},"stackTrace":[{"declaringClass":"com.alibaba.dubbo.rpc.cluster.support.FailfastClusterInvoker","methodName":"doInvoke","fileName":"FailfastClusterInvoker.java","lineNumber":53},{"declaringClass":"com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker","methodName":"invoke","fileName":"AbstractClusterInvoker.java","lineNumber":244},{"declaringClass":"com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker","methodName":"invoke","fileName":"MockClusterInvoker.java","lineNumber":75},{"declaringClass":"com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler","methodName":"invoke","fileName":"InvokerInvocationHandler.java","lineNumber":52},{"declaringClass":"com.alibaba.dubbo.common.bytecode.proxy1","methodName":"$invoke","fileName":"proxy1.java","lineNumber":-1},{"declaringClass":"io.github.ningyu.jmeter.plugin.dubbo.sample.DubboSample","methodName":"callDubbo","fileName":"DubboSample.java","lineNumber":548},{"declaringClass":"io.github.ningyu.jmeter.plugin.dubbo.sample.DubboSample","methodName":"sample","fileName":"DubboSample.java","lineNumber":346},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"executeSamplePackage","fileName":"JMeterThread.java","lineNumber":498},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"processSampler","fileName":"JMeterThread.java","lineNumber":424},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"run","fileName":"JMeterThread.java","lineNumber":255},{"declaringClass":"java.lang.Thread","methodName":"run","fileName":null,"lineNumber":-1}],"suppressedExceptions":[]}
ningyu1 commented 5 years ago

@liuwenya1234 看到了你的emal,接口方法是有参数的,把参数传入即可