OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
870 stars 560 forks source link

XMLStreamException2 on EWS events syncing #728

Open Venny opened 4 years ago

Venny commented 4 years ago

We experience a ParseError exception while syncing EWS events:

Caused by: com.sun.xml.stream.XMLStreamException2: ParseError at [row,col]:[59,5288] Message: InvalidCharRef [x19] at com.sun.xml.stream.y.a(SourceFile:604) at com.sun.xml.stream.v.a(SourceFile:99) at microsoft.exchange.webservices.data.core.EwsXmlReader.read(SourceFile:201) at microsoft.exchange.webservices.data.core.EwsXmlReader.readValue(SourceFile:489) at microsoft.exchange.webservices.data.property.complex.MessageBody.readTextValueFromXml(SourceFile:134) at microsoft.exchange.webservices.data.property.complex.ComplexProperty.internalLoadFromXml(SourceFile:265) at microsoft.exchange.webservices.data.property.complex.ComplexProperty.loadFromXml(SourceFile:211) at microsoft.exchange.webservices.data.property.complex.ComplexProperty.loadFromXml(SourceFile:311) at microsoft.exchange.webservices.data.property.definition.ComplexPropertyDefinitionBase.internalLoadFromXml(SourceFile:108) at microsoft.exchange.webservices.data.property.definition.ComplexPropertyDefinitionBase.loadPropertyValueFromXml(SourceFile:150) at microsoft.exchange.webservices.data.core.PropertyBag.loadFromXml(SourceFile:510) at microsoft.exchange.webservices.data.core.service.ServiceObject.loadFromXml(SourceFile:298) at microsoft.exchange.webservices.data.core.EwsServiceXmlReader.readServiceObjectsCollectionFromXml(SourceFile:169) at microsoft.exchange.webservices.data.core.response.GetItemResponse.readElementsFromXml(SourceFile:77) at microsoft.exchange.webservices.data.core.response.ServiceResponse.loadFromXml(SourceFile:133) at microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.parseResponse(SourceFile:76) at microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.parseResponse(SourceFile:44) at microsoft.exchange.webservices.data.core.request.ServiceRequestBase.readResponse(SourceFile:434) at microsoft.exchange.webservices.data.core.request.ServiceRequestBase.readResponse(SourceFile:401) at microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase.internalExecute(SourceFile:63)

It seems that some data from the EWS response could not be parsed from the library..

pkropachev commented 4 years ago

It can be if something was changed in schema. Do you work with Exchange Online? What is ExchangeVersion you use? On what request you get bad response?