CMsgHead head = CMsgHead.newBuilder().setMsglen(5)

when  server client

CMsgHead head = CMsgHead.parseFrom(buffer );<<-------it it error While parsing a
protocol message, the input ended unexpectedly in the middle of a
field.  This could mean either than the input has been truncated or
that an embedded message misreported its own length.

i do not why!
is the  Field have Max length??  why  that when i  set lang string  it
can not "parseFrom" and  error

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to