<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.5.10</li>
<li>Operating System version: win10</li>
<li>Java version: 10</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<ol dir="auto">
<li>add dependency hessian into maven</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dependency&gt;
    &lt;groupId&gt;com.caucho&lt;/groupId&gt;
    &lt;artifactId&gt;hessian&lt;/artifactId&gt;
    &lt;version&gt;4.0.7&lt;/version&gt;
&lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate">&lt;dependency&gt;
    &lt;groupId&gt;com.caucho&lt;/groupId&gt;
    &lt;artifactId&gt;hessian&lt;/artifactId&gt;
    &lt;version&gt;4.0.7&lt;/version&gt;
&lt;/dependency&gt;
</code></pre></div>
<ol start="2" dir="auto">
<li>Use API Configuration to setup a consumer, with spring-boot</li>
<li>Use Generic Reference to invoke a remote provider, using protocol hessian</li>
</ol>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">got a error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: Unsupported protocol hessian in notified url: hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686 from registry localhost:2181 to consumer x.x.x.x, supported protocol: [dubbo, http, injvm, mock, redis, registry, rmi, thrift]"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: Unsupported protocol hessian in notified url: hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686 from registry localhost:2181 to consumer x.x.x.x, supported protocol: [dubbo, http, injvm, mock, redis, registry, rmi, thrift]
</code></pre></div>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-08-03 17:28:45.564 ERROR 26132 --- [           main] c.a.d.r.integration.RegistryDirectory    : Unsupported protocol hessian in notified url: hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686 from registry localhost:2181 to consumer x.x.x.x, supported protocol: [dubbo, http, injvm, mock, redis, registry, rmi, thrift]

java.lang.IllegalStateException: Unsupported protocol hessian in notified url: hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686 from registry localhost:2181 to consumer x.x.x.x, supported protocol: [dubbo, http, injvm, mock, redis, registry, rmi, thrift]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:362)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:251)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:221)
    at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:407)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259)
    at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:182)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:189)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:302)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:283)
    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:98)
    at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63)
    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:63)
    at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394)
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.getGenericService(DubboHessianGenericDomeTest.java:60)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.testInputStream(DubboHessianGenericDomeTest.java:44)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73)
    at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
    at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

2018-08-03 17:28:45.565 ERROR 26132 --- [           main] c.a.d.r.integration.RegistryDirectory    : urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686]

java.lang.IllegalStateException: urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:256)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:221)
    at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:407)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259)
    at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:182)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:189)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:302)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:283)
    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:98)
    at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63)
    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:63)
    at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394)
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.getGenericService(DubboHessianGenericDomeTest.java:60)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.testInputStream(DubboHessianGenericDomeTest.java:44)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73)
    at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
    at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)"><pre class="notranslate"><code class="notranslate">2018-08-03 17:28:45.564 ERROR 26132 --- [           main] c.a.d.r.integration.RegistryDirectory    : Unsupported protocol hessian in notified url: hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686 from registry localhost:2181 to consumer x.x.x.x, supported protocol: [dubbo, http, injvm, mock, redis, registry, rmi, thrift]

java.lang.IllegalStateException: Unsupported protocol hessian in notified url: hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686 from registry localhost:2181 to consumer x.x.x.x, supported protocol: [dubbo, http, injvm, mock, redis, registry, rmi, thrift]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:362)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:251)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:221)
    at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:407)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259)
    at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:182)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:189)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:302)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:283)
    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:98)
    at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63)
    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:63)
    at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394)
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.getGenericService(DubboHessianGenericDomeTest.java:60)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.testInputStream(DubboHessianGenericDomeTest.java:44)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73)
    at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
    at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

2018-08-03 17:28:45.565 ERROR 26132 --- [           main] c.a.d.r.integration.RegistryDirectory    : urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686]

java.lang.IllegalStateException: urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[hessian://x.x.x.x:8081/com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider?accesslog=true&amp;anyhost=true&amp;application=mock-dubbo-provider&amp;default.delay=-1&amp;delay=-1&amp;dubbo=2.0.1&amp;generic=false&amp;interface=com.xx.xx.xx.mock.dubbo.provider.dubbo.GenericReferenceHessianProtocolProvider&amp;methods=getInputStreamByUrl,getInputStream&amp;pid=15020&amp;server=jetty&amp;side=provider&amp;timestamp=1533283864686]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:256)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:221)
    at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:407)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259)
    at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:182)
    at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:189)
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:302)
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:283)
    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:98)
    at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63)
    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:63)
    at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394)
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.getGenericService(DubboHessianGenericDomeTest.java:60)
    at com.xx.xx.api.gateway.gateway.config.test.DubboHessianGenericDomeTest.testInputStream(DubboHessianGenericDomeTest.java:44)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73)
    at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
    at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
</code></pre></div>
<ul class="contains-task-list">
<li>[√] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: Windows 10</li>
<li>Java version: Oracle JDK 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>set <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a>(timeout = 10000)</li>
<li>kill -9 provider</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">fast return when timeout is not reached</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">the consumer returns until the timeout ends</p>
<p dir="auto">detail see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="334154640" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/1968" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/1968/hovercard" href="https://github.com/apache/dubbo/issues/1968">#1968</a></p>