shiyilei / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Protocol message contained an invalid tag (zero). #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use protobuf-c example-client against another non-c server
2. We use java server, specifically protobuf-rpc-pro, but see problem in other 
servers tested
3.

What is the expected output? What do you see instead?
Sending a simple "name" test, throws exception immediately. It basically is 
confused about the TCP message length from what we can gather.

What version of the product are you using? On what operating system?
0.14 and have tried svn checkout as well.  Mac OS X 10.5.8

Please provide any additional information below.

com.google.protobuf.InvalidProtocolBufferException: Protocol message contained 
an invalid tag (zero).

Original issue reported on code.google.com by paceda...@gmail.com on 30 Jan 2011 at 7:35

GoogleCodeExporter commented 8 years ago
There is no standard protobuf RPC protocol - so I wouldn't expect this to work. 

However, a compatible version would be nice...

Original comment by lahike...@gmail.com on 10 Mar 2011 at 10:42

GoogleCodeExporter commented 8 years ago
if you use the method like this "XXX.parseFrom(bytebuff) ", please check the 
length of bytebuff. sometimes, bytebuff maybe returned by other object , so the 
length is lager than  you think , and contain 0 at th end.

Original comment by Springfi...@gmail.com on 4 Sep 2013 at 3:14