mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
EWS: improve error logging on invalid character
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1801 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
e76582ede7
commit
ffb4740fe7
@ -1006,7 +1006,7 @@ public abstract class EWSMethod extends PostMethod {
|
|||||||
|
|
||||||
protected void processResponseStream(InputStream inputStream) {
|
protected void processResponseStream(InputStream inputStream) {
|
||||||
responseItems = new ArrayList<Item>();
|
responseItems = new ArrayList<Item>();
|
||||||
XMLStreamReader reader;
|
XMLStreamReader reader = null;
|
||||||
try {
|
try {
|
||||||
inputStream = new FilterInputStream(inputStream) {
|
inputStream = new FilterInputStream(inputStream) {
|
||||||
int totalCount;
|
int totalCount;
|
||||||
@ -1043,9 +1043,15 @@ public abstract class EWSMethod extends PostMethod {
|
|||||||
handleCustom(reader);
|
handleCustom(reader);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (XMLStreamException e) {
|
} catch (XMLStreamException e) {
|
||||||
LOGGER.error("Error while parsing soap response: " + e, e);
|
LOGGER.error("Error while parsing soap response: " + e, e);
|
||||||
|
if (reader != null) {
|
||||||
|
try {
|
||||||
|
LOGGER.error("Current text: " + reader.getText());
|
||||||
|
} catch (IllegalStateException ise) {
|
||||||
|
LOGGER.error(e+" "+e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (errorDetail != null) {
|
if (errorDetail != null) {
|
||||||
LOGGER.debug(errorDetail);
|
LOGGER.debug(errorDetail);
|
||||||
|
Loading…
Reference in New Issue
Block a user