Qpid
  1. Qpid
  2. QPID-3715

On receiving an empty ObjectMessage java client hangs forever

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.15
    • Fix Version/s: 0.15
    • Component/s: Java Client
    • Labels:
      None

      Description

      If ObjectMessage message is created and sent without a body than on receiving such a message the consumer hangs regardless whether timeout specified or not.

      The following snippet demonstrates the problem

      Sending and receiving an empty object message
      Message message = session.createObjectMessage();
      producer.send(message);
      ObjectMessage receivedMessage = (ObjectMessage) consumer.receive(1000);// <--- hanging here
      

        Activity

          People

          • Assignee:
            Keith Wall
            Reporter:
            Alex Rudyy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development