{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/467","repository_url":"https://api.github.com/repos/OfficeDev/ews-java-api","labels_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/467/comments","events_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/467/events","html_url":"https://github.com/OfficeDev/ews-java-api/issues/467","id":120740674,"number":467,"title":"Cannot obtain cancel meeting notification using (streaming) event notifications API","user":{"login":"indriesergiu","id":1252398,"avatar_url":"https://avatars.githubusercontent.com/u/1252398?v=3","gravatar_id":"","url":"https://api.github.com/users/indriesergiu","html_url":"https://github.com/indriesergiu","followers_url":"https://api.github.com/users/indriesergiu/followers","following_url":"https://api.github.com/users/indriesergiu/following{/other_user}","gists_url":"https://api.github.com/users/indriesergiu/gists{/gist_id}","starred_url":"https://api.github.com/users/indriesergiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indriesergiu/subscriptions","organizations_url":"https://api.github.com/users/indriesergiu/orgs","repos_url":"https://api.github.com/users/indriesergiu/repos","events_url":"https://api.github.com/users/indriesergiu/events{/privacy}","received_events_url":"https://api.github.com/users/indriesergiu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T10:18:21Z","updated_at":"2016-05-02T16:42:18Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using the streaming API to listen for meeting events and everything seems to be working except for cancelled meeting events. When a meeting is cancelled I generally receive multiple `ItemEvent`s and one `FolderEvent` however when I try to bind the item id to an `Item` \r\n```java\r\nif (event instanceof ItemEvent) \r\n        Item item = Item.bind(service, ((ItemEvent) event).getItemId());\r\n```\r\nI get one of the following errors\r\n```\r\nThe specified object was not found in the store.\r\n```\r\nand\r\n```\r\nAccess is denied. \r\n```\r\nRead access is granted on the meeting room calendar (without it I cannot receive meeting created & updated events) using the following Powershell command\r\n```\r\nAdd-MailboxFolderPermission -Identity <room email>:\\Calendar -User <user email> -AccessRights Readitems\r\n```\r\nThe event types I subscribe for are ```EventType.Modified, EventType.Created, EventType.Deleted, EventType.FreeBusyChanged, EventType.Moved```.\r\n\r\nThe above commands are run against a local exchange server. I've also tried running them in Office365 and got something very similar (but uglier)\r\n```\r\nThe specified object was not found in the store., Microsoft.Exchange.Data.Storage.ObjectNotFoundException: The process failed to get the correct properties. ---> Microsoft.Mapi.MapiExceptionNotFound: MapiExceptionNotFound: Unable to get properties on object. (hr=0x8004010f, ec=-2147221233)\r\nDiagnostic context:\r\n    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=1346]\r\n    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=234][latency=0]\r\n    Lid: 52176   ClientVersion: 15.1.337.19\r\n    Lid: 50032   ServerVersion: 15.1.337.6019\r\n    Lid: 35180  \r\n    Lid: 23226   --- ROP Parse Start ---\r\n    Lid: 27962   ROP: ropOpenMessage [3]\r\n    Lid: 17082   ROP Error: 0x8004010F\r\n    Lid: 26977  \r\n    Lid: 21921   StoreEc: 0x8004010F\r\n    Lid: 27962   ROP: ropExtendedError [250]\r\n    Lid: 1494    ---- Remote Context Beg ----\r\n    Lid: 50428  \r\n    Lid: 59416   StoreEc: 0x8004010F\r\n    Lid: 38536  \r\n    Lid: 10786   dwParam: 0x0        Msg: 15.01.0337.013:DB3PR06MB186\r\n    Lid: 1750    ---- Remote Context End ----\r\n    Lid: 27962   ROP: ropGetPropsSpecific [7]\r\n    Lid: 17082   ROP Error: 0x4B9     \r\n    Lid: 26465  \r\n    Lid: 21921   StoreEc: 0x4B9     \r\n    Lid: 31418   --- ROP Parse Done ---\r\n    Lid: 22753  \r\n    Lid: 21817   ROP Failure: 0x4B9     \r\n    Lid: 20385  \r\n    Lid: 28577   StoreEc: 0x8004010F\r\n    Lid: 32001  \r\n    Lid: 29953   StoreEc: 0x8004010F\r\n    Lid: 32768  \r\n    Lid: 33024   StoreEc: 0x8004010F\r\n   at Microsoft.Mapi.MapiExceptionHelper.InternalThrowIfErrorOrWarning(String message, Int32 hresult, Boolean allowWarnings, Int32 ec, DiagnosticContext diagCtx, Exception innerException)\r\n   at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, IExInterface iUnknown, Exception innerException)\r\n   at Microsoft.Mapi.MapiProp.GetProps(ICollection`1 propTagsRequested)\r\n   at Microsoft.Exchange.Data.Storage.MapiPropertyBag.GetProperties(IList`1 propertyDefinitions)\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Exchange.Data.Storage.MapiPropertyBag.GetProperties(IList`1 propertyDefinitions)\r\n   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag.InternalLoad(ICollection`1 extraProperties)\r\n   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag..ctor(StoreSession session, MapiProp mapiProp, ICollection`1 autoloadProperties, Boolean canSaveOrDisposeMapiProp)\r\n   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag..ctor(StoreSession session, MapiProp mapiProp, ICollection`1 autoloadProperties)\r\n   at Microsoft.Exchange.Data.Storage.ItemBuilder.CoreItemBind(StoreSession session, StoreId storeId, MapiMessageCreator mapiMessageCreator, ItemBindOption itemBindOption, ICollection`1 propertiesToLoad, StoreObjectType& storeObjectType)\r\n   at Microsoft.Exchange.Data.Storage.ItemBuilder.ItemBind[T](StoreSession session, StoreId storeId, Schema expectedSchema, MapiMessageCreator mapiMessageCreator, ItemBindOption itemBindOption, ICollection`1 propertiesToLoad, ItemCreateInfo itemCreateInfo)\r\n   at Microsoft.Exchange.Data.Storage.Item.Bind(StoreSession session, StoreId storeId, ItemBindOption itemBindOption, ICollection`1 propsToReturn)\r\n   at Microsoft.Exchange.Data.Storage.Item.BindWithFallbackSearch(StoreSession session, StoreId storeId, String internetMessageId, ICollection`1 propsToReturn, Boolean& didFallbackSearch)\r\n   at Microsoft.Exchange.Services.Core.ServiceCommandBase.GetXsoItem(StoreSession session, StoreId id, String internetMessageId, PropertyDefinition[] properties)\r\n   at Microsoft.Exchange.Services.Core.GetItem.GetItemObject(IdAndSession idAndSession, Item& xsoItem, ServiceError& warning)\r\n   at Microsoft.Exchange.Services.Core.GetItem.<>c__DisplayClass1.<Execute>b__0()\r\n   at Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1 catchDelegate)\r\n   at Microsoft.Exchange.Services.Core.GetItem.Execute()\r\n   at Microsoft.Exchange.Services.Core.ExceptionHandler`1.Execute(CreateServiceResult createServiceResult, Int32 index, GenerateMessageXmlForServiceError generateErrorXml)\r\n```\r\nand \r\n```\r\nAccess is denied. Check credentials and try again., Microsoft.Exchange.Data.Storage.AccessDeniedException: The process failed to get the correct properties. ---> Microsoft.Mapi.MapiExceptionNoAccess: MapiExceptionNoAccess: Unable to get properties on object. (hr=0x80070005, ec=-2147024891)\r\nDiagnostic context:\r\n    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=1352]\r\n    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=254][latency=0]\r\n    Lid: 52176   ClientVersion: 15.1.337.19\r\n    Lid: 50032   ServerVersion: 15.1.337.6019\r\n    Lid: 35180  \r\n    Lid: 23226   --- ROP Parse Start ---\r\n    Lid: 27962   ROP: ropOpenMessage [3]\r\n    Lid: 17082   ROP Error: 0x80070005\r\n    Lid: 26977  \r\n    Lid: 21921   StoreEc: 0x80070005\r\n    Lid: 27962   ROP: ropExtendedError [250]\r\n    Lid: 1494    ---- Remote Context Beg ----\r\n    Lid: 46439   dwParam: 0xA\r\n    Lid: 58216   dwParam: 0x0\r\n    Lid: 46439   StoreEc: 0x80070005\r\n    Lid: 63016   dwParam: 0x3\r\n    Lid: 39640   StoreEc: 0x80070005\r\n    Lid: 10786   dwParam: 0x0        Msg: 15.01.0337.013:DB3PR06MB186\r\n    Lid: 1750    ---- Remote Context End ----\r\n    Lid: 27962   ROP: ropGetPropsSpecific [7]\r\n    Lid: 17082   ROP Error: 0x4B9     \r\n    Lid: 26465  \r\n    Lid: 21921   StoreEc: 0x4B9     \r\n    Lid: 31418   --- ROP Parse Done ---\r\n    Lid: 22753  \r\n    Lid: 21817   ROP Failure: 0x4B9     \r\n    Lid: 20385  \r\n    Lid: 28577   StoreEc: 0x80070005\r\n    Lid: 32001  \r\n    Lid: 29953   StoreEc: 0x80070005\r\n    Lid: 32768  \r\n    Lid: 33024   StoreEc: 0x80070005\r\n   at Microsoft.Mapi.MapiExceptionHelper.InternalThrowIfErrorOrWarning(String message, Int32 hresult, Boolean allowWarnings, Int32 ec, DiagnosticContext diagCtx, Exception innerException)\r\n   at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, IExInterface iUnknown, Exception innerException)\r\n   at Microsoft.Mapi.MapiProp.GetProps(ICollection`1 propTagsRequested)\r\n   at Microsoft.Exchange.Data.Storage.MapiPropertyBag.GetProperties(IList`1 propertyDefinitions)\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Exchange.Data.Storage.MapiPropertyBag.GetProperties(IList`1 propertyDefinitions)\r\n   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag.InternalLoad(ICollection`1 extraProperties)\r\n   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag..ctor(StoreSession session, MapiProp mapiProp, ICollection`1 autoloadProperties, Boolean canSaveOrDisposeMapiProp)\r\n   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag..ctor(StoreSession session, MapiProp mapiProp, ICollection`1 autoloadProperties)\r\n   at Microsoft.Exchange.Data.Storage.ItemBuilder.CoreItemBind(StoreSession session, StoreId storeId, MapiMessageCreator mapiMessageCreator, ItemBindOption itemBindOption, ICollection`1 propertiesToLoad, StoreObjectType& storeObjectType)\r\n   at Microsoft.Exchange.Data.Storage.ItemBuilder.ItemBind[T](StoreSession session, StoreId storeId, Schema expectedSchema, MapiMessageCreator mapiMessageCreator, ItemBindOption itemBindOption, ICollection`1 propertiesToLoad, ItemCreateInfo itemCreateInfo)\r\n   at Microsoft.Exchange.Data.Storage.Item.Bind(StoreSession session, StoreId storeId, ItemBindOption itemBindOption, ICollection`1 propsToReturn)\r\n   at Microsoft.Exchange.Data.Storage.Item.BindWithFallbackSearch(StoreSession session, StoreId storeId, String internetMessageId, ICollection`1 propsToReturn, Boolean& didFallbackSearch)\r\n   at Microsoft.Exchange.Services.Core.ServiceCommandBase.GetXsoItem(StoreSession session, StoreId id, String internetMessageId, PropertyDefinition[] properties)\r\n   at Microsoft.Exchange.Services.Core.GetItem.GetItemObject(IdAndSession idAndSession, Item& xsoItem, ServiceError& warning)\r\n   at Microsoft.Exchange.Services.Core.GetItem.<>c__DisplayClass1.<Execute>b__0()\r\n   at Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1 catchDelegate)\r\n   at Microsoft.Exchange.Services.Core.GetItem.Execute()\r\n   at Microsoft.Exchange.Services.Core.ExceptionHandler`1.Execute(CreateServiceResult createServiceResult, Int32 index, GenerateMessageXmlForServiceError generateErrorXml)\r\n```\r\n\r\nAny ideas?\r\n\r\nThanks,\r\nSergiu"},"comment":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/comments/216288038","html_url":"https://github.com/OfficeDev/ews-java-api/issues/467#issuecomment-216288038","issue_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/467","id":216288038,"user":{"login":"kentongray","id":100857,"avatar_url":"https://avatars.githubusercontent.com/u/100857?v=3","gravatar_id":"","url":"https://api.github.com/users/kentongray","html_url":"https://github.com/kentongray","followers_url":"https://api.github.com/users/kentongray/followers","following_url":"https://api.github.com/users/kentongray/following{/other_user}","gists_url":"https://api.github.com/users/kentongray/gists{/gist_id}","starred_url":"https://api.github.com/users/kentongray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentongray/subscriptions","organizations_url":"https://api.github.com/users/kentongray/orgs","repos_url":"https://api.github.com/users/kentongray/repos","events_url":"https://api.github.com/users/kentongray/events{/privacy}","received_events_url":"https://api.github.com/users/kentongray/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T16:42:18Z","updated_at":"2016-05-02T16:42:18Z","body":"we seem to be having this same problem which is confusing because i believe using the older version of the lib this worked"}}