none
Illegal character entity: expansion character not a valid XML character RRS feed

  • Question

  • Hi Guys,

    I'm using the java EWS API, get mimecontent from Office 365, I'm getting these error for some messages, any suggestions will be highly appreciated:

    The request failed. Illegal character entity: expansion character (code 0xb) not
    a valid XML character
    at [row,col {unknown-source}]: [179,364]
    microsoft.exchange.webservices.data.ServiceRequestException: The request failed.
    Illegal character entity: expansion character (code 0xb) not a valid XML charac
    ter
    at [row,col {unknown-source}]: [179,364]
    at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internal
    Execute(Unknown Source)
    at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execu
    te(Unknown Source)
    at microsoft.exchange.webservices.data.ExchangeService.internalBindToIte
    ms(Unknown Source)
    at microsoft.exchange.webservices.data.ExchangeService.bindToItem(Unknow
    n Source)
    at microsoft.exchange.webservices.data.ExchangeService.bindToItem(Unknow
    n Source)
    at microsoft.exchange.webservices.data.EmailMessage.bind(Unknown Source)

    at microsoft.exchange.webservices.data.EmailMessage.bind(Unknown Source)

    at test.EWSTest.getMessagesFromInbox(EWSTest.java:1636)
    at test.EWSTest.main(EWSTest.java:1718)
    Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expa
    nsion character (code 0xb) not a valid XML character
    at [row,col {unknown-source}]: [179,364]
    at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.jav
    a:605)
    at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)

    at com.ctc.wstx.sr.StreamScanner.reportIllegalChar(StreamScanner.java:23
    75)
    at com.ctc.wstx.sr.StreamScanner.checkAndExpandChar(StreamScanner.java:2
    321)
    at com.ctc.wstx.sr.StreamScanner.resolveSimpleEntity(StreamScanner.java:
    1180)
    at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader
    .java:4675)
    at com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader
    .java:4124)
    at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:
    3699)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1023)
    at com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:306)
    at microsoft.exchange.webservices.data.EwsXmlReader.isEmptyElement(Unkno
    wn Source)
    at microsoft.exchange.webservices.data.ComplexPropertyDefinitionBase.loa
    dPropertyValueFromXml(Unknown Source)
    at microsoft.exchange.webservices.data.PropertyBag.loadFromXml(Unknown S
    ource)
    at microsoft.exchange.webservices.data.ServiceObject.loadFromXml(Unknown
    Source)
    at microsoft.exchange.webservices.data.EwsServiceXmlReader.readServiceOb
    jectsCollectionFromXml(Unknown Source)
    at microsoft.exchange.webservices.data.GetItemResponse.readElementsFromX
    ml(Unknown Source)
    at microsoft.exchange.webservices.data.ServiceResponse.loadFromXml(Unkno
    wn Source)
    at microsoft.exchange.webservices.data.MultiResponseServiceRequest.parse
    Response(Unknown Source)
    at microsoft.exchange.webservices.data.ServiceRequestBase.readResponse(U
    nknown Source)
    at microsoft.exchange.webservices.data.SimpleServiceRequestBase.readResp
    onse(Unknown Source)
    ... 9 more

    James
    Tuesday, May 15, 2012 7:25 PM