JiraSoapService - getIssuesFromJqlSearch - return Bad types exception

Tylr Wu August 4, 2012

I'm using Python / SOAPpy to write a script aganst Jira SoapService, getIssuesFromJqlSearch is something I'm shooting for, it looks pretty straight forward in the doc (RemoteIssue[] getIssuesFromJqlSearch(java.lang.String token, java.lang.String jqlSearch, int maxNumResults)), but I keep getting 'bad types' exception, have no idea where exactly went wrong, can anyone kindly give me a hint? Thank you.

---

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "C:\Python27\lib\site-packages\SOAPpy\Client.py", line 540, in __call__return self.__r_call(*args, **kw)

File "C:\Python27\lib\site-packages\SOAPpy\Client.py", line 562, in __r_call self.__hd, self.__ma)

File "C:\Python27\lib\site-packages\SOAPpy\Client.py", line 475, in __call raise p SOAPpy.Types.faultType: <Fault soapenv:Server.userException: org.xml.sax.SAXException: Bad types (class java.math.BigInteger -> int): <SOAPpy.Types.structType detail at 27249200>: {'hostname': 'host', 'faultData': <SOAPpy.Types.structType faultData at 27247000>: {'exception': None, 'cause': None, 'message': 'Bad types (class java.math.BigInteger -> int)'}}>

3 answers

1 accepted

1 vote
Answer accepted
Adam Myers September 11, 2012

Try this:

issues = jira.getIssuesFromJqlSearch( token, jql, SOAPpy.Types.intType(50) )

Note the case: IntType (capital "I") will behave differently.

0 votes
Matt Legrand December 4, 2012

I had the same problem, and this fixed it. Thanks!

0 votes
Matt Legrand December 4, 2012

I had the same problem and this solved it - thanks!

Suggest an answer

Log in or Sign up to answer