<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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.6</li>
<li>Operating System version: Linux staging 4.4.0-63-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42302365" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/84" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/84/hovercard" href="https://github.com/apache/dubbo/pull/84">#84</a>~14.04.2-Ubuntu SMP Mon Feb 13 11:04:58 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</li>
<li>Java version: 1.8.0</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>start thrift provider with native-thrift, zookeeper is used for register</li>
<li>start thrift consumer with native-thrift, zookeeper is used for register</li>
<li>run for while, there will be exception as below. But not happen regularly but occasionally.</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps？<br>
no error.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
which happens occasionally. Not every time.</p>
<p dir="auto">Failed to invoke the method getInstitute in the service thrift.java.institute.InstituteService$Iface. Tried 3 times of the providers [10.28.57.152:20886, 10.28.61.123:20886] (2/2) from the registry zookeeper.config.palmdrive.cn:2181 on the consumer 59.110.53.154 using the dubbo version 2.7.6. Last error is: Failed to invoke remote service: interface thrift.java.institute.InstituteService$Iface, method: getInstitute, cause: Expected protocol id ffffff82 but got c</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<p dir="auto">Failed to invoke the method getInstitute in the service thrift.java.institute.InstituteService$Iface. Tried 3 times of the providers [10.28.57.152:20886, 10.28.61.123:20886] (2/2) from the registry zookeeper.config.palmdrive.cn:2181 on the consumer 59.110.53.154 using the dubbo version 2.7.6. Last error is: Failed to invoke remote service: interface thrift.java.institute.InstituteService$Iface, method: getInstitute, cause: Expected protocol id ffffff82 but got c<br>
org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:113)</p>
<p dir="auto">org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:259)</p>
<p dir="auto">org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47)</p>
<p dir="auto">org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92)</p>
<p dir="auto">org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:82)</p>
<p dir="auto">org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74)</p>
<p dir="auto">org.apache.dubbo.common.bytecode.proxy0.getInstitute(proxy0.java)</p>
<p dir="auto">model.institute.InstituteModel.getDubboInstitute(InstituteModel.java:100)</p>
<p dir="auto">model.institute.InstituteModel.getInstitute(InstituteModel.java:60)</p>
<p dir="auto">controllers.institute.InstitutesCtrl.getSchool(InstitutesCtrl.java:100)</p>
<p dir="auto">Routes$$anonfun$routes$1$$anonfun$applyOrElse$446$$anonfun$apply$446.apply(routes_routing.scala:7672)</p>
<p dir="auto">Routes$$anonfun$routes$1$$anonfun$applyOrElse$446$$anonfun$apply$446.apply(routes_routing.scala:7672)</p>
<p dir="auto">play.core.Router$HandlerInvokerFactory$$anon$4.resultCall(Router.scala:264)</p>
<p dir="auto">play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.invocation(Router.scala:255)</p>
<p dir="auto">play.core.j.JavaAction$$anon$1.call(JavaAction.scala:55)</p>
<p dir="auto">play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)</p>
<p dir="auto">play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)</p>
<p dir="auto">scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)</p>
<p dir="auto">scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)</p>
<p dir="auto">play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)</p>
<p dir="auto">play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:46)</p>
<p dir="auto">play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:32)</p>
<p dir="auto">scala.concurrent.impl.Future$.apply(Future.scala:31)</p>
<p dir="auto">scala.concurrent.Future$.apply(Future.scala:485)</p>
<p dir="auto">play.core.j.JavaAction$class.apply(JavaAction.scala:82)</p>
<p dir="auto">play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.apply(Router.scala:252)</p>
<p dir="auto">play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)</p>
<p dir="auto">play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)</p>
<p dir="auto">play.utils.Threads$.withContextClassLoader(Threads.scala:21)</p>
<p dir="auto">play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:129)</p>
<p dir="auto">play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:128)</p>
<p dir="auto">scala.Option.map(Option.scala:145)</p>
<p dir="auto">play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:128)</p>
<p dir="auto">play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:121)</p>
<p dir="auto">play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)</p>
<p dir="auto">play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)</p>
<p dir="auto">play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)</p>
<p dir="auto">play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)</p>
<p dir="auto">play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)</p>
<p dir="auto">play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)</p>
<p dir="auto">scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)</p>
<p dir="auto">scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)</p>
<p dir="auto">akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)</p>
<p dir="auto">akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)</p>
<p dir="auto">scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)</p>
<p dir="auto">scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)</p>
<p dir="auto">scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)</p>
<p dir="auto">scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> 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.7.1</li>
<li>Operating System version: mac</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>xxx</li>
<li>xxx</li>
<li>xxx</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps？</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<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="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>