- [x] I have searched the 
[issues](https://github.com/apache/incubator-dubbo/issues) of this repository 
and believe that this is not a duplicate.
- [x] I have checked the 
[FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this 
repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.0
* Operating System version: 2.7.0
* Java version: 1.8

### Steps to reproduce this issue

1. Here is demo: Here is demo: 
https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-mock
2. 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) :

``` java
@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);
    } 
       // ….
}
```

[ Full content available at: 
https://github.com/apache/incubator-dubbo/issues/2489 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to