activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "clebert suconic (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ARTEMIS-464) Sending empty textMessage breaks delivery
Date Fri, 01 Apr 2016 23:58:25 GMT

    [ 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)

Mime
View raw message