Description of problem: When I try to create a new errata, I'm getting traceback. Version-Release number of selected component (if applicable): Red Hat Network release 5.2.0 How reproducible: always Steps to Reproduce: 1. >>> client.errata.create(key, me, mb, mk, mp, True, 'test-0') Actual results: Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response return u.close() File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault -1: 'com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to interface java.util.List'> Expected results: Errata created Additional info: >>> print me {'advisory_name': 'advisory_name', 'advisory_type': 'Bug Fix Advisory', 'product': 'product', 'description': 'description', 'notes': 'notes', 'solution': 'solution', 'topic': 'topic', 'synopsis': 'synopsis', 'references': 'references', 'advisory_release': 1} >>> print mb ({'id': 123456, 'summary': 'bug 123456 summary'},) >>> print mk ('keyword1', 'keyword2') >>> print mp (198,) >>> a = client.errata.create(key, me, mb, mk, mp, True, 'test-0') Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response return u.close() File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault -1: 'com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to interface java.util.List'> I do not know what I'm doing wrong here.
Hi Jan, The error appears to be related to the channel label being specified as a string ('test-0') vs an array (['test-0']). Try the test using the same variables (me, mb, mk, mp); however, use the following: a = client.errata.create(key, me, mb, mk, mp, True, ['test-0']) I tried this in my env (5.3) and it works Ok.
Oh, you are right, thank you and sorry for the mess! Thanks, Jan