这是一个创建于 4485 天前的主题,其中的信息可能已经有所发展或是发生改变。
我在用Python+SOAPpy调用Jira的SoapService写个脚本,其中用到了getIssuesFromJqlSearch(具体描述如下 ),我的代码完全是比对着写的:
result = soap.getIssuesFromJqlSearch(auth, 'project=MyProject', 10)
但是却返回如下错误提示,完全找不到错误在哪里,还望高人指点,感谢先~
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.SAXExce
ption: Bad types (class java.math.BigInteger -> int): <SOAPpy.Types.structType d
etail at 27249200>: {'hostname': 'MCDCSFPWEB220', 'faultData': <SOAPpy.Types.str
uctType faultData at 27247000>: {'exception': None, 'cause': None, 'message': 'B
ad types (class java.math.BigInteger -> int)'}}>
RemoteIssue[] getIssuesFromJqlSearch(java.lang.String token,
java.lang.String jqlSearch,
int maxNumResults)
throws RemoteException
Execute a specified JQL query and return the resulting issues.
This method also respects the jira.search.views.max.limit and jira.search.views.max.unlimited.group JIRA properties which will override the max number of results returned.
If the jira.search.views.max.limit property is set and you are not in a group specified by jira.search.views.max.unlimited.group then the number of results returned will be constrained by the value of jira.search.views.max.limit if it is less than the specified maxNumResults.
Parameters:
token - the SOAP authentication token
jqlSearch - JQL query string to execute
maxNumResults - the maximum number of results that this method will return
Returns:
issues matching the JQL query
Throws:
RemoteException - If there was a JQL parse error or an error occurs during the search