Hi all,
I write two thrift server for execute cmd or shell script remote, one is writen
by java and the other is c++, the java thrift server like a proxy.
This work well before, but now one request always show this exception message,
I debug it and found the c++ server has send the data to the java server, but
when java api return, always show this error message.Not all request get this
exception.
What's wrong with this exception?
org.apache.thrift.protocol.TProtocolException: Expected protocol id ffffff82
but got ffffffc1
at
org.apache.thrift.protocol.TCompactProtocol.readMessageBegin(TCompactProtocol.java:472)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
at
com.jhinno.appserver.thrift.gen.bean.AppServer$Client.recv_executeCmd(AppServer.java:263)
at
com.jhinno.appserver.thrift.gen.bean.AppServer$Client.executeCmd(AppServer.java:247)
at
com.jhinno.appserver.thrift.client.AppServerClient.executeCmd(AppServerClient.java:120)
org.apache.thrift.protocol.TProtocolException: Expected protocol id ffffff82
but got 1
at
org.apache.thrift.protocol.TCompactProtocol.readMessageBegin(TCompactProtocol.java:472)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
at
com.jhinno.appserver.thrift.gen.bean.AppServer$Client.recv_executeCmd(AppServer.java:263)
at
com.jhinno.appserver.thrift.gen.bean.AppServer$Client.executeCmd(AppServer.java:247)
at
com.jhinno.appserver.thrift.client.AppServerClient.executeCmd(AppServerClient.java:120)
at
com.jhinno.appportal.cluster.service.ClusterService.getHosts(ClusterService.java:22)
at
com.jhinno.appportal.cluster.controller.ClusterController.getHostListJson(ClusterController.java:50)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
[email protected]