Just a guess from your statement that it only (?) happens for larger
data: did you make sure to read all the data from the socket ? Looks
like your data is somehow truncated.
A read() call from a socket returns the number of bytes you actually
got - you might call it multiple times until you actually have all the
data you need.

-h

On Wed, Mar 24, 2010 at 10:21, mk <[email protected]> wrote:
> Hi
>
> Could someone please tell me why I am getting these errors when I
> exchange large messages though sockets between  programs:
>
> ------
>
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \message_lite.cc:106] Ca
> n't parse message of type "Data" because it is missing required
> fields: str, str
> 1, str2, str3, str4, cltst, cltnu
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \wire_format.cc:1012] En
> countered string containing invalid UTF-8 data while parsing protocol
> buffer. St
> rings must contain only UTF-8; use the 'bytes' type for raw bytes.
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \wire_format.cc:1012] En
> countered string containing invalid UTF-8 data while serializing
> protocol buffer
> . Strings must contain only UTF-8; use the 'bytes' type for raw bytes.
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \wire_format.cc:1012] En
> countered string containing invalid UTF-8 data while parsing protocol
> buffer. St
> rings must contain only UTF-8; use the 'bytes' type for raw bytes.
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \message_lite.cc:106] Ca
> n't parse message of type "Data" because it is missing required
> fields: str, clt
> st, cltnu
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \wire_format.cc:1012] En
> countered string containing invalid UTF-8 data while serializing
> protocol buffer
> . Strings must contain only UTF-8; use the 'bytes' type for raw bytes.
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \wire_format.cc:1012] En
> countered string containing invalid UTF-8 data while parsing protocol
> buffer. St
> rings must contain only UTF-8; use the 'bytes' type for raw bytes.
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \message_lite.cc:106] Ca
> n't parse message of type "Data" because it is missing required
> fields: str, clt
> st, cltnu
> libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf
> \wire_format.cc:1012] En
> countered string containing invalid UTF-8 data while serializing
> protocol buffer
> . Strings must contain only UTF-8; use the 'bytes' type for raw bytes.
>
> ---------
>
> thanks for your replies:
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Protocol Buffers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to