Program hangs when calling parseFrom for java implementation of protobuf
Posted
by cornerback84
on Stack Overflow
See other posts from Stack Overflow
or by cornerback84
Published on 2010-05-05T07:19:41Z
Indexed on
2010/05/05
8:08 UTC
Read the original article
Hit count: 355
protobuf
|protobuf-net
I have a message (say its called OuterMessage)
message OuterMessage {
optional int64 id = 1;
optional InnerMessage inner = 2;
}
and an inner message
message InnerMessage {
optional string type = 1;
optioanl int64 id = 2;
}
Now when I call parseFrom on OuterMessage like OuterMessage.parseFrom(buffer) the method never returns and nor does it throw any exception. But if I do InnerMessage.parseFrom(buffer) it returns an empty InnerMessage instance.
I am serializing the message using protobuf-net. Any idea what might be causing the issue?
© Stack Overflow or respective owner