thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim wee <>
Subject Problem with Java -- Thrift "strict version old client?"
Date Tue, 17 Feb 2009 09:39:26 GMT
Hello thrift-users,
Just wondering if anyone has gotten this error before. Both client and
server are in java...

Feb 17, 2009 1:14:32 AM
org.apache.thrift.server.TThreadPoolServer$WorkerProcess run

     [java] SEVERE: Thrift error occurred during processing of message.

     [java] org.apache.thrift.protocol.TProtocolException: Missing version
in readMessageBegin, old client?

     [java] at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(

     [java] at bag_banner.gen.Environment$Processor.process(

     [java] at org.apache.thrift.server.TThreadPoolServer$

     [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(

     [java] at java.util.concurrent.ThreadPoolExecutor$

     [java] at

client side code:

TSocket sock = new TSocket(new Socket(host, envPort));

TFramedTransport transport = new TFramedTransport(sock);

TBinaryProtocol protocol = new TBinaryProtocol(transport, true, true);


TServerSocket serverTransport = new TServerSocket(port);

Environment.Processor processor = new Environment.Processor(env);

Factory protFactory = new TBinaryProtocol.Factory(true, true);

TThreadPoolServer server = new TThreadPoolServer(processor, serverTransport,


 System.out.println("starting simulator server");


I took a look at the source code, and it seems like the booleans being
passed into TBinaryProtocol.Factory (serverside) and TBinaryProtocol
(clientside) just have to match.

I tried false with both as well, (to not check versions) it went through,
but then it didn't get to my server-side code, which implemented the Iface
of the generated class. I put debugging/printout statements inside the
generated class, and it seems like it doesn't return or do anything after
the process method of the Processor, specifically after calling
this. iprot.readMessageBegin();

Any help or insight on what I should try next is appreciated. Thanks!


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message