Parser fails silently if first numeric field has value zero.

2009-07-06 Thread Vijay Mathew
Hello all, I have a Message type EventStatus with the following definition: message EventStatus { required int32 reason = 1; required string msg = 2; } This is part of a larger protocol where a C++ client sends an event to a Java server where it is handled. The Java server returns an

Re: Parser fails silently if first numeric field has value zero.

2009-07-06 Thread Kenton Varda
This is most likely a bug in your code -- you probably aren't transmitting the message correctly. Please make sure that the bytes you give to the protobuf parser on the receiving end are exactly the same bytes that were produced by the serializer at the sending end -- both the size and contents