问:FindItems返回有效的EWS消息,但抛出异常 [英] Q: FindItems returns valid EWS Message, but throws exception

查看:312
本文介绍了问:FindItems返回有效的EWS消息,但抛出异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何可能导致此问题的想法?错误?


提前致谢!


--- snip ---

2010-07-12 09: 35:11,977(3341)DEBUG - GetTasks离开(抓住了bug)。 Microsoft.Exchange.WebServices.Data.ServiceResponseException:在商店中找不到指定的对象。

  在Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()

  在Microsoft.Exchange.WebServices.Data.ServiceResponse.ThrowIfNecessary()

  在Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()

  在Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems [TItem](IEnumerable`1 parentFolderIds,SearchFilter searchFilter,String queryString,ViewBase view,Grouping groupBy,ServiceErrorHandling errorHandlingMode)

  在Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(FolderId parentFolderId,SearchFilter searchFilter,ItemView视图)

  在Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(WellKnownFolderName parentFolderName,ItemView视图)

--- snip ---


---请求 - -


< EwsLogEntry EntryKind =" EwsRequest"的ThreadId = QUOT; 38"时间戳=" 12/07/2010 9:46:53 AM">

  <?xml version =" 1.0" encoding =" utf-8"?>

  < soap:Envelope xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance"的xmlns:M =" HTTP://schemas.microsoft.com/exchange/services/2006/messages"的xmlns:T =" HTTP://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap =" http://schemas.xmlsoap.org/soap/envelope/">

    < soap:Header>

      < t:RequestServerVersion Version =" Exchange2010" />
$
    < / soap:Header>

    < soap:Body>

      < m:FindItem Traversal =" Shallow">

        < m:ItemShape>

          < t:BaseShape> AllProperties< / t:BaseShape>

          < t:AdditionalProperties>

            < t:ExtendedFieldURI PropertySetId =" 8315e55a-cdbe-4262-b43a-73aafcb921b9"属性名= QUOT; UNIQUEID"属性类型= QUOT;字符串" />
$
          < / t:AdditionalProperties>

        < / m:ItemShape>

        < m:IndexedPageItemView MaxEntriesReturned =" 2147483647"偏移量=" 0"基点= QUOT;初" />
$
        < m:ParentFolderIds>

          < t:DistinguishedFolderId Id =" tasks" />
$
        < / m:ParentFolderIds>

      < / m:FindItem>

    < / soap:Body>

  < / soap:Envelope>

< / EwsLogEntry>


---回复---


< ; EwsLogEntry EntryKind =" EwsResponse"的ThreadId = QUOT; 38"时间戳=" 12/07/2010 9:48:05 AM">

  <?xml version =" 1.0" encoding =" utf-8"?>

  < s:Envelope xmlns:s =" http://schemas.xmlsoap.org/soap/envelope/">

    < s:Header>

      < h:ServerVersionInfo MajorVersion =" 14" MinorVersion = QUOT; 0" MajorBuildNumber = QUOT; 650" MinorBuildNumber = QUOT; 36英寸;版本= QUOT; Exchange2010"的xmlns:H =" HTTP://schemas.microsoft.com/exchange/services/2006/types"
xmlns =" http://schemas.microsoft.com/exchange/services/2006/types"的xmlns:的xsi = QUOT; HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns:XSD = QUOT; HTTP://www.w3.org/2001/XMLSchema" />
$
    < / s:Header>

    < s:Body xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd =" http://www.w3.org/2001/XMLSchema">

      < m:FindItemResponse xmlns:m =" http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t =" http://schemas.microsoft.com/exchange/services/2006/types">

        < m:ResponseMessages>

          < m:FindItemResponseMessage ResponseClass =" Success">

            < m:ResponseCode> NoError< / m:ResponseCode>

            < m:RootFolder IndexedPagingOffset =" 0" TotalItemsInView = QUOT; 0" IncludesLastItemInRange =" true">

              < t:Items />

            < / m:RootFolder>

          < / m:FindItemResponseMessage>

        < / m:ResponseMessages>

      < / m:FindItemResponse>

    < / s:正文>

  < / s:信封>

< / EwsLogEntry>


 

解决方案

请求/响应时间戳表示9:46:53和9:48:05,而例外的时间戳是9:35。因此,除非您的客户端和服务器具有完全不同步的时钟,否则我会说在发送请求之前肯定会抛出异常,
因此该异常不是此请求的结果。


Any ideas what might be causing this? Bug?

Thanks in advance!

---snip---
2010-07-12 09:35:11,977 (3341) DEBUG - GetTasks leaving (caught bug). Microsoft.Exchange.WebServices.Data.ServiceResponseException: The specified object was not found in the store.
   at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()
   at Microsoft.Exchange.WebServices.Data.ServiceResponse.ThrowIfNecessary()
   at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
   at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems[TItem](IEnumerable`1 parentFolderIds, SearchFilter searchFilter, String queryString, ViewBase view, Grouping groupBy, ServiceErrorHandling errorHandlingMode)
   at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(FolderId parentFolderId, SearchFilter searchFilter, ItemView view)
   at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(WellKnownFolderName parentFolderName, ItemView view)
---snip---

---Request---

<EwsLogEntry EntryKind="EwsRequest" ThreadId="38" Timestamp="12/07/2010 9:46:53 AM">
  <?xml version="1.0" encoding="utf-8"?>
  <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
      <t:RequestServerVersion Version="Exchange2010" />
    </soap:Header>
    <soap:Body>
      <m:FindItem Traversal="Shallow">
        <m:ItemShape>
          <t:BaseShape>AllProperties</t:BaseShape>
          <t:AdditionalProperties>
            <t:ExtendedFieldURI PropertySetId="8315e55a-cdbe-4262-b43a-73aafcb921b9" PropertyName="uniqueId" PropertyType="String" />
          </t:AdditionalProperties>
        </m:ItemShape>
        <m:IndexedPageItemView MaxEntriesReturned="2147483647" Offset="0" BasePoint="Beginning" />
        <m:ParentFolderIds>
          <t:DistinguishedFolderId Id="tasks" />
        </m:ParentFolderIds>
      </m:FindItem>
    </soap:Body>
  </soap:Envelope>
</EwsLogEntry>

---Response---

<EwsLogEntry EntryKind="EwsResponse" ThreadId="38" Timestamp="12/07/2010 9:48:05 AM">
  <?xml version="1.0" encoding="utf-8"?>
  <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
      <h:ServerVersionInfo MajorVersion="14" MinorVersion="0" MajorBuildNumber="650" MinorBuildNumber="36" Version="Exchange2010" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
    </s:Header>
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <m:FindItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
        <m:ResponseMessages>
          <m:FindItemResponseMessage ResponseClass="Success">
            <m:ResponseCode>NoError</m:ResponseCode>
            <m:RootFolder IndexedPagingOffset="0" TotalItemsInView="0" IncludesLastItemInRange="true">
              <t:Items />
            </m:RootFolder>
          </m:FindItemResponseMessage>
        </m:ResponseMessages>
      </m:FindItemResponse>
    </s:Body>
  </s:Envelope>
</EwsLogEntry>

 

解决方案

The request/response time stamps indicate 9:46:53 and 9:48:05, whereas the exception's time stamp is 9:35. So unless your client and server have clocks that are completely off sync, I'd say the exception was definitely thrown before the request was sent, and therefore that the exception is not the result of this request.


这篇关于问:FindItems返回有效的EWS消息,但抛出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆