Are your ObjectOutputStreams transparent ? Or do they prepend/append
things to the data ?

On Wed, Dec 2, 2009 at 13:11, Nigel Pickard <pickard.ni...@gmail.com> wrote:
> Oh, wait.... So I have a test Java app where one thread is running as
> a server, one as a client.
>
> I've been sending a GPB defined class instance between them, no
> problem when I use Object I/O streams (e.g. ObjectOutputStream on the
> server, ObjectInputStream on the client.  I've been calling writeTo
> and parseFrom on the GBP object successfully.
>
> If I understand the previous posts correctly it should not make a
> difference which outputstream or inputstream type I use, right?  The
> stream of whatever type it is should just be a series of bytes, able
> to be parsed by my GBP object....  But if I change my
> ObjectOutputStream to DataOutputStream on my client (so I'm leaving my
> server still using ObjectInputStream) I get the following error:
>
> "com.google.protobuf.InvalidProtocolBufferException: Protocol message
> end-group tag did not match expected tag."
>
> Wouldn't this suggest there is a difference (at least in Java)
> concerning which inputstream you use?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to 
> protobuf+unsubscr...@googlegroups.com.
> 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 proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to