Environment
- Dubbo version: 2.7.0
- Operating System version: 2.7.0
- Java version: 1.8
Steps to reproduce this issue
- Here is demo: Here is demo: https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-mock
- change consumer configuraton: <dubbo:reference id="demoService" check="false" interface="com.alibaba.dubbo.samples.mock.api.DemoService" mock="force”/>
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
force mock should be trigged.
Actual Result
start failed.
I have checked code(MockClusterInvoker) :
@Override
public Result invoke(Invocation invocation) throws RpcException {
// ….
else if (value.startsWith("force")) {
if (logger.isWarnEnabled()) {
logger.info("force-mock: " + invocation.getMethodName() + " force-mock enabled , url : " + directory.getUrl());
}
//force:direct mock
result = doMockInvoke(invocation, null);
}
// ….
}
Environment
Steps to reproduce this issue
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
force mock should be trigged.
Actual Result
start failed.
I have checked code(MockClusterInvoker) :