Problem with python server of 'printer' example

in Help Center
Dear all,
after a long time of utter neglect I try to fiddle with Ice and start from scratch with the latest release 3.6.0.
General system is (K)Ubuntu 12.04.5 LTS (with Ice 3.4.2 for C++and Python still hanging around), so I cloned the source tree from GitHub and started with 'make'. After adding a few dev packages, 'make cpp python ruby' ran through, dito 'make test' for these three languages. Finally I installed the resulting software at '/opt/Ice-3.6.0/' via 'make install'.
Now I cloned 'ice-demos' from GitHub and started to play with the initial 'printer' eaxmple:
C++ server and clients in C++, Python, and Ruby works OK.
Python server and Python client works OK.
Python server and C++ client produces the error message:
Python server and Ruby client produces the error message:
This post is not yet a 'bug report' because I compiled and installed the Ice 3.6.0 'on the fly' on an unsupported system with unsupported tools. Anyway, I submit this for your information.
Cheers, Andreas
after a long time of utter neglect I try to fiddle with Ice and start from scratch with the latest release 3.6.0.
General system is (K)Ubuntu 12.04.5 LTS (with Ice 3.4.2 for C++and Python still hanging around), so I cloned the source tree from GitHub and started with 'make'. After adding a few dev packages, 'make cpp python ruby' ran through, dito 'make test' for these three languages. Finally I installed the resulting software at '/opt/Ice-3.6.0/' via 'make install'.
Now I cloned 'ice-demos' from GitHub and started to play with the initial 'printer' eaxmple:
C++ server and clients in C++, Python, and Ruby works OK.
Python server and Python client works OK.
Python server and C++ client produces the error message:
Outgoing.cpp:535: Ice::UnknownLocalException: unknown local exception: ../../include/Ice/BasicStream.h:175: Ice::UnsupportedEncodingException: protocol error: unsupported encoding version: 1.1
Python server and Ruby client produces the error message:
-! 06/29/15 18:55:03.241 warning: dispatch exception: ../../include/Ice/BasicStream.h:175: Ice::UnsupportedEncodingException: protocol error: unsupported encoding version: 1.1 (can only support encodings compatible with version 1.1) identity: SimplePrinter facet: operation: ice_isA remote host: 127.0.0.1 remote port: 36274 -! 06/29/15 18:55:03.269 warning: dispatch exception: ../../include/Ice/BasicStream.h:175: Ice::UnsupportedEncodingException: protocol error: unsupported encoding version: 1.1 (can only support encodings compatible with version 1.1) identity: SimplePrinter facet: operation: ice_isA remote host: 127.0.0.1 remote port: 36274 Ice::UnknownLocalException (eval):44:in `ice_checkedCast' (eval):44:in `checkedCast' Client.rb:16:in `<main>' (can only support encodings compatible with version 1.1)
This post is not yet a 'bug report' because I compiled and installed the Ice 3.6.0 'on the fly' on an unsupported system with unsupported tools. Anyway, I submit this for your information.
Cheers, Andreas
0
Comments
It looks like your Python server is still using Ice 3.4. The clue is the encoding exception: the client is attempting to use version 1.1 of the Ice encoding (the default behavior in Ice 3.5+), which is not understood by Ice 3.4.
Regards,
Mark
Touché. After explicitly setting PYTHONPATH to the local installation, both the C++ and Ruby clients produce 'Hello World!' in the server terminal. Case closed.
Thanks, Andreas
After commenting out this test in AllTests.cpp, the rest runs through.
Cheers,
Andreas
This test failure indicates that the multicast discovery of the IceGrid locator failed.
This can be caused if the firewall on the machine blocks multicast (I would expect a similar failure with the IceDiscovery tests if that's the case). It can also potentially be timing related too, is the test failing all the time?
Cheers,
Benoit.
Yes, the same error occurs on every invocation.
Andreas
Can you confirm that the test/Ice/udp and test/IceDiscovery/simple tests work on your platform?
If they do, can you add:
to cpp/test/IceGrid/simple/AllTests.cpp line 68? and send us the resulting output of the test after the failure?
Cheers,
Benoit.
Cheers, Andreas
We are aware of some UDP multicast issue with Ice 3.6 on Ubuntu 12.04; we didn't spend a lot of time investigating these issues as we don't support this old version of Ubuntu.
Can you upgrade to a Linux distribution we support, like for example Ubuntu 14.04?
Best regards,
Bernard
I'll just keep the failing tests commented.
And I'll stick to Ubuntu 12.04 _LTS_ until 2017. ;-)
Cheers, Andreas