1

我正在使用 Atlassian .NET SDK 从 Jira OnDemand 中提取数据。我需要为一个特定的项目解决 100 多个问题。我的问题是,如果我将 maxIssues 属性设置为高于67,我会CommunicationExceptions说:

“反序列化操作'getIssuesFromJqlSearch'的回复消息正文时出错。”

有什么想法可以解决这个问题吗?

var jiraConn = new Jira(url, user, password);

IEnumerable<Atlassian.Jira.Issue> jiraIssues = 
     jiraConn.GetIssuesFromJql("project = MAGNAMES", 67);

foreach (var i in jiraIssues)
{
    MessageBox.Show(i.Key + " " + i.Summary);
}

服务器堆栈跟踪:在 System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader阅读器,MessageVersion 版本,字符串操作,MessageDescription messageDescription,Object[] 参数,Boolean isRequest) 在 System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest) 在 System.ServiceModel.Dispatcher.OperationFormatter。在 System.ServiceModel.Dispatcher.ProxyOperationRuntime 的 DeserializeReply(消息消息,对象 [] 参数)。AfterReply(ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[]出,TimeSpan 超时)在 System.ServiceModel.Channels.ServiceChannel.Call(字符串操作,布尔单向,ProxyOperationRuntime 操作,Object[] ins,Object[] 出)在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 在 [0] 处重新抛出异常:在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 在 System.Runtime.Remoting.Proxies .RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Atlassian.Jira.Remote.JiraSoapService.getIssuesFromJqlSearch(getIssuesFromJqlSearchRequest request) at Atlassian.Jira.Remote.JiraSoapServiceClient.Atlassian.Jira.Remote.JiraSoapService.getIssuesFromJqlSearch(getIssuesFromJqlSearchRequest request) in c:\ dev\atlassian.net-sdk\Atlassian.Jira\Remote\JiraSoapService.cs:Atlassian.Jira.Remote.JiraSoapServiceClient.getIssuesFromJqlSearch(String in0, String in1, Int32 in2) 中的第 9445 行在 c:\dev\atlassian.net- sdk\Atlassian.Jira\Remote\JiraSoapService.cs:Atlassian.Jira.Remote.JiraSoapServiceClientWrapper.GetIssuesFromJqlSearch(String token, String jqlSearch, Int32 maxNumResults) 中的第 9454 行在 c:\dev\atlassian.net-sdk\Atlassian.Jira\ Remote\JiraSoapServiceClientWrapper.cs:Atlassian.Jira.Jira 的第 39 行。<>c__DisplayClass8.<GetIssuesFromJql>b__7(String t) in c:\dev\atlassian.net-sdk\Atlassian.Jira\Jira.cs:Atlassian.Jira.Jira 的第 203 行。<>c__DisplayClass37.<WithToken>b__36(String t ) 在 c:\dev\atlassian.net-sdk\Atlassian.Jira\Jira.cs:line 396 at Atlassian.Jira.Jira.<>c__DisplayClass3d`1.b__3c(String token, IJiraSoapServiceClient client) in c:\dev\ atlassian.net-sdk\Atlassian.Jira\Jira.cs:c:\dev\atlassian.net-sdk\Atlassian.Jira\Jira 中 Atlassian.Jira.Jira.WithToken[TResult](Func`3 函数)的第 427 行c:\dev\atlassian.net-sdk\Atlassian.Jira\Jira.cs:Atlassian.Jira.Jira.WithToken[TResult](Func`2 函数)的第 446 行:Atlassian.Jira.Jira 的第 427 行c:\dev\atlassian.net-sdk\Atlassian.Jira\Jira.cs 中的 .WithToken(Action`1 动作):Atlassian.Jira.Jira.GetIssuesFromJql 的第 394 行(String jql,Nullable`1 maxIssues) in c:\dev\atlassian.net-sdk\Atlassian.Jira\Jira.cs:line 201 at TicketReportService.ReportService.StartService() in c:\OSSTicketReportApp\TicketReportWebApp\TicketReportService\ReportService.cs:line 92 at TicketReportService.Program.Main() in c:\OSSTicketReportApp\TicketReportWebApp\TicketReportService\Program.cs: System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 在 System.Threading.ThreadHelper.ThreadStart_Context(Object state) 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback 回调, 对象状态的证据 assemblySecurity, String[] args), Boolean preserveSyncCtx) 在系统。Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

4

1 回答 1

0

确保问题编号 68 没有阻止JiraSoapService正确反序列化问题的特定问题。也许评论或其他所见即所得字段中的某些内容破坏了反序列化器。

于 2014-08-21T12:57:26.540 回答