使用Atlassian .NET SDK时的CommunicationException

我正在使用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)在System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(消息消息,Object []参数,布尔isRequest)在System.ServiceModel.Dispatcher.OperationFormatter读者,MessageVersion版本,字符串操作,MessageDescription messageDescription,对象[]参数,布尔isRequest)。 System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc&rpc)上System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime操作,ProxyRpc&rpc)System.ServiceModel.Channels.ServiceCha上的DeserializeReply(Message message,Object []参数) 在System.ServiceModel.Channels.ServiceChannel.Call(String action,单向布尔值,ProxyOperationRuntime操作,Object []函数中调用nnel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,Object [] outs,TimeSpan timeout) ,System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)上System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage消息)异常rethrown在[0] System.Runtime.Remoting在Atlassian.Jira上的Atlassian.Jira.Remote.JiraSoapService.getIssuesFromJqlSearch(getIssuesFromJqlSearchRequest请求)上的System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)上的.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) .Remote.JiraSoapServiceClient.Atlassian.Jira.Remote.JiraSoapService.getIssuesFromJqlSearch(getIssuesFromJqlSearchRequest request)in c: dev atlassian.net-sdk Atlassian.Jira Remote JiraSoap Service.cs:第9445行Atlassian.Jira.Remote.JiraSoapServiceClient.getIssuesFromJqlSearch(String in0,String in1,Int32 in2)in c: dev atlassian.net -sdk Atlassian.Jira Remote JiraSoapService.cs:line 9454 Atlassian.Jira.Remote.JiraSoapServiceClientWrapper.GetIssuesFromJqlSearch(String token,String jqlSearch,Int32 maxNumResults)in c: dev atlassian.net-sdk Atlassian.Jira Remote JiraSoapServiceClientWrapper.cs:Atlassian.Jira.Jira的第39行<> c__DisplayClass8.b__7(String t)in c: dev atlassian.net-sdk Atlassian.Jira Jira.cs:Atlassian.Jira.Jira的第203行。<> c__DisplayClass37.b__36(String t)in c : dev atlassian.net-sdk Atlassian.Jira Jira.cs:Atlassian.Jira.Jira的第396行。<> c__DisplayClass3d 1.<WithToken>b__3c(String token, IJiraSoapServiceClient client) in c:devatlassian.net-sdkAtlassian.JiraJira.cs:line 427 at Atlassian.Jira.Jira.WithToken[TResult](Func 3函数)在c: dev atlassian.net-sdk Atlassian.Jira Jira.cs中:Atlassian.Jira.Jira.WithToken的第446行[TResult](Func 2 function) in c:devatlassian.net-sdkAtlassian.JiraJira.cs:line 427 at Atlassian.Jira.Jira.WithToken(Action 2 function) in c:devatlassian.net-sdkAtlassian.JiraJira.cs:line 427 at Atlassian.Jira.Jira.WithToken(Action 1操作)在c: dev atlassian.net-sdk Atlassian .jira Jira.cs:行394 at Atlassian.Jira.Jira.GetIssuesFromJql(String jql,Nullable`1 maxIssues)in c: dev atlassian.net-sdk Atlassian.Jira Jira.cs:TicketReportService处的第201行.ReportService.StartService()in c: OSSTicketReportApp TicketReportWebApp TicketReportService ReportService.cs:位于c: OSSTicketReportApp TicketReportWebApp TicketReportService Program.cs中TicketReportService.Program.Main()的第92行:System.AppDomain System.ThreadingHelper.ThreadStart_Context()上的System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity,String [] args)上的Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()上的.nExecuteAssembly(RuntimeAssembly程序集,String [] args)对象状态)在System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Obje System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态)在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态,布尔preserveSyncCtx)上的ct状态,布尔preserveSyncCtx) ThreadHelper.ThreadStart()


确保问题编号68没有特定的问题,这会阻止JiraSoapService正确反序列化问题。 也许在评论或其他所见即所得的领域中有某些东西正在打破解串器。

链接地址: http://www.djcxy.com/p/95939.html

上一篇: CommunicationException while using the Atlassian .NET SDK

下一篇: Get MSMQ Queues using WMI and C#