请问有熟悉Jira的吗?getIssuesFromJqlSearch返回Bad Types错误

2012-08-05 17:55:56 +08:00
 tylr
我在用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
3492 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/44331

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX