Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

BZ997782 - Calling message.clearBody() on large message after failover t... #1733

Merged
merged 1 commit into from

2 participants

@jbertram
Owner

...hrows RuntimeException

@clebertsuconic clebertsuconic merged commit 6c20530 into hornetq:2.3.x

1 check failed

Details default Merged build started.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 22, 2014
  1. @jbertram
This page is out of date. Refresh to see the latest.
View
11 hornetq-jms-client/src/main/java/org/hornetq/jms/client/HornetQBytesMessage.java
@@ -413,7 +413,16 @@ public void clearBody() throws JMSException
{
super.clearBody();
- getBuffer().clear();
+ try
+ {
+ getBuffer().clear();
+ }
+ catch (RuntimeException e)
+ {
+ JMSException e2 = new JMSException(e.getMessage());
+ e2.initCause(e);
+ throw e2;
+ }
}
public long getBodyLength() throws JMSException
Something went wrong with that request. Please try again.