V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
tylr
V2EX  ›  问与答

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

  •  
  •   tylr · 2012-08-05 17:55:56 +08:00 · 3436 次点击
    这是一个创建于 4295 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我在用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
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   978 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 21:16 · PVG 05:16 · LAX 14:16 · JFK 17:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.