Skip to content

Commit

Permalink
Merge pull request #605 from bsenduran/ESBJAVA-4724
Browse files Browse the repository at this point in the history
fixing ESBJAVA-4724
  • Loading branch information
bsenduran committed Jul 20, 2016
2 parents af95bb8 + 77240fb commit 2c8fa39
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -137,11 +137,8 @@ public static void builldMessage(MessageContext messageContext, boolean earlyBui
element = messageBuilder.getDocument(messageContext,
bufferedInputStream != null ? bufferedInputStream : in);
} catch (Exception e) {
/*
Remove bufferedinputstream content & continue: (for large payloads)
reset bufferedInputStream can't be done in this situation
*/
while ((bufferedInputStream.read()) > 0);
//Clearing the buffer when there is an exception occurred.
consumeAndDiscardMessage(messageContext);
messageContext.setProperty(PassThroughConstants.MESSAGE_BUILDER_INVOKED, Boolean.TRUE);
handleException("Error while building Passthrough stream", e);
}
Expand Down

0 comments on commit 2c8fa39

Please sign in to comment.