MashaTelyatnikova / protobuf-socket-rpc

Automatically exported from code.google.com/p/protobuf-socket-rpc
MIT License
0 stars 0 forks source link

Incompatibility between python and java implementations #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a java client/server, and a python client/server, all from one .proto 
file
2. invoke java server with java client, works.
3. invoke python server with python client, works.
4. invoke java server with python client, gets an error ( (decodeError): 
Unexpected end-group tag.)
5. invoke python server with java client, client hangs.

What is the expected output? What do you see instead?
expect successful call between platforms

What version of the product are you using? On what operating system?
tried Java protobuf-socket-rpc-2.0.jar with protobuf.socketrpc-1.3.2-py2.6.egg
tried Java protobuf-socket-rpc-2.0.jar with latest python source from svn (Sep 
28 2012)

Please provide any additional information below.

Original issue reported on code.google.com by kenlar...@gmail.com on 28 Sep 2012 at 6:39

GoogleCodeExporter commented 8 years ago
for step #4, java server outputs: Protocol message end-group tag did not match 
expected tag.

Original comment by kenlar...@gmail.com on 28 Sep 2012 at 6:40

GoogleCodeExporter commented 8 years ago
python 2.7, ubuntu

Original comment by kenlar...@gmail.com on 28 Sep 2012 at 6:41

GoogleCodeExporter commented 8 years ago
protobuf-2.4.1-py2.7.egg

Original comment by kenlar...@gmail.com on 28 Sep 2012 at 6:42

GoogleCodeExporter commented 8 years ago
java protobuf is same version: com.google.protobuf:protobuf-java:2.4.1

Original comment by kenlar...@gmail.com on 28 Sep 2012 at 6:45

GoogleCodeExporter commented 8 years ago
OK, if on the Java (client) side I do this, it works:

SocketRpcConnectionFactories.createUndelimitedRpcConnectionFactory
instead of createRpcConnectionFactory

Original comment by kenlar...@gmail.com on 28 Sep 2012 at 7:10