You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (JIRA)" <ji...@apache.org> on 2016/04/02 01:58:25 UTC
[jira] [Comment Edited] (ARTEMIS-464) Sending empty textMessage
breaks delivery
[ https://issues.apache.org/jira/browse/ARTEMIS-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222550#comment-15222550 ]
clebert suconic edited comment on ARTEMIS-464 at 4/1/16 11:58 PM:
------------------------------------------------------------------
testcase:
@Test
public void testSendEmpty() throws Exception {
try (Connection connection = factory.createConnection()) {
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = session.createQueue(queueName);
System.out.println("Queue:" + queue);
MessageProducer producer = session.createProducer(queue);
MessageConsumer consumer = session.createConsumer(queue);
producer.send(session.createTextMessage());
Assert.assertNull(consumer.receive(100));
connection.start();
TextMessage message = (TextMessage) consumer.receive(5000);
Assert.assertNotNull(message);
message.acknowledge();
}
}
was (Author: clebertsuconic):
testcase:
@Test
public void testSendEmpty() throws Exception {
try (Connection connection = factory.createConnection()) {
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = session.createQueue(queueName);
System.out.println("Queue:" + queue);
MessageProducer producer = session.createProducer(queue);
MessageConsumer consumer = session.createConsumer(queue);
producer.send(session.createTextMessage(""));
Assert.assertNull(consumer.receive(100));
connection.start();
TextMessage message = (TextMessage) consumer.receive(5000);
Assert.assertNotNull(message);
message.acknowledge();
}
}
> Sending empty textMessage breaks delivery
> -----------------------------------------
>
> Key: ARTEMIS-464
> URL: https://issues.apache.org/jira/browse/ARTEMIS-464
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 1.2.0
> Reporter: clebert suconic
> Assignee: Howard Gao
> Priority: Critical
> Fix For: 1.3.0
>
>
> if you send a Text Message like this:
> TextMessage msg = session.createTextMessage();
> producer.send(msg);
> The consumer will never get it.. something will be broken through the conversions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)