使用Atlassian .NET SDK时的CommunicationException

时间:2014-08-21 09:37:39

标签: c# .net jira-ondemand

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

  

"在操作' getIssuesFromJqlSearch'。#34;

中反序列化回复邮件正文时出错

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

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 []参数,Boolean isRequest)      在System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader,MessageVersion version,String action,MessageDescription messageDescription,Object [] parameters,Boolean isRequest)      在System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(消息消息,Object []参数,布尔isRequest)      在System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(消息消息,Object []参数)      在System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc&amp; rpc)      在System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime操作,ProxyRpc&amp; rpc)      在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,Object [] outs,TimeSpan timeout)      在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,Object [] outs)      在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)      在System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage消息)   在[0]处重新抛出异常:      在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)      在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; 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:line 9445      at atlassian.Jira.Remote.JiraSoapServiceClient.getIssuesFromJqlSearch(String in0,String in1,Int32 in2)in c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Remote \ JiraSoapService.cs:line 9454      at Atlassian.Jira.Remote.JiraSoapServiceClientWrapper.GetIssuesFromJqlSearch(String token,String jqlSearch,Int32 maxNumResults)in c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Remote \ JiraSoapServiceClientWrapper.cs:第39行      在Atlassian.Jira.Jira。&lt;&gt; c__DisplayClass8。&lt; GetIssuesFromJql&gt; b__7(字符串t)在c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Jira.cs:第203行      在Atlassian.Jira.Jira。&lt;&gt; c__DisplayClass37。&lt; WithToken&gt; b__36(字符串t)在c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Jira.cs:第396行      at Atlassian.Jira.Jira。&lt;&gt; c__DisplayClass3d`1.b__3c(String token,IJiraSoapServiceClient客户端)位于c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Jira.cs:第427行      at atlassian.Jira.Jira.WithToken [TResult](Func`3函数)在c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Jira.cs:第446行      at atlassian.Jira.Jira.WithToken [TResult](Func`2函数)在c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Jira.cs:第427行      at atlassian.Jira.Jira.WithToken(Action`1 action)in c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Jira.cs:line 394      at atlassian.Jira.Jira.GetIssuesFromJql(String jql,Nullable`1 maxIssues)in c:\ dev \ atlassian.net-sdk \ Atlassian.Jira \ Jira.cs:line 201      在TicketReportService.ReportService.StartService()中的c:\ OSSTicketReportApp \ TicketReportWebApp \ TicketReportService \ ReportService.cs:第92行      在TicketReportService.Program.Main()中的c:\ OSSTicketReportApp \ TicketReportWebApp \ TicketReportService \ Program.cs:第24行      在System.AppDomain._nExecuteAssembly(RuntimeAssembly程序集,String [] args)      在System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity,String [] args)      在Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()      在System.Threading.ThreadHelper.ThreadStart_Context(对象状态)      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx)      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx)      在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态)      在System.Threading.ThreadHelper.ThreadStart()

1 个答案:

答案 0 :(得分:0)

确保问题68没有特定问题阻止JiraSoapService正确反序列化问题。也许评论或其他WYSIWYG字段中的某些内容正在打破解串器。