thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Error Read an invalid frame size of 0. Are you using TFramedTransport on the client side?
Date Tue, 11 Feb 2014 09:57:59 GMT
Hi all,
I write two thrift server A and B, A is C++ and B is JAVA and I use TFramedTransport and TCompactProtocol
in both server and client, the java server B will proxy some C++ server A interface, If call
the java server directly ,the error message not occured.But when java client call the B and
in B will create a another client to call server A, the error message will occur when B return
the data

2014-01-27 14:22:11,567 ERROR org.apache.thrift.server.AbstractNonblockingServer$
- Read an invalid frame size of 0. Are you using TFramedTransport on the client side? 
The method executeCmd is the interface of B, when the "return result" is execute , the error
message will occur.
public CmdResult executeCmd(String cmd, List<String> params,
Map<String,String> envs, String execuser) throws InvokeException {
CmdResult result = new CmdResult();
throw new InvokeException(0, "Command is null.");
if(params == null){
params = new ArrayList<String>();
ExecproxyClient client = (ExecproxyClient)ctx.getBean("execproxyClient");
TCmdRequest cmdReq = new TCmdRequest();
TCmdResponse cmdRes = client.execute(cmdReq);
}catch(Exception e){
InvokeException ie = new InvokeException();
ie.setExpCause("Execproxy : " + e.getMessage());
throw ie;
return result;
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message