You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (Commented) (JIRA)" <ji...@apache.org> on 2012/01/04 15:08:39 UTC

[jira] [Commented] (QPID-3715) On receiving an empty ObjectMessage java client hangs forever

    [ https://issues.apache.org/jira/browse/QPID-3715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179498#comment-13179498 ] 

Keith Wall commented on QPID-3715:
----------------------------------

Hi Alex,

I can't fault your implementation, but I wonder if there is a reason not to use org.apache.qpid.server.util.ByteBufferInputStream?  Admittedly, we'd need to move the class from broker to common (and add a new ByteBufferInputStreamTest). What do you think?




                
> On receiving an empty ObjectMessage java client hangs forever
> -------------------------------------------------------------
>
>                 Key: QPID-3715
>                 URL: https://issues.apache.org/jira/browse/QPID-3715
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.15
>            Reporter: Alex Rudyy
>            Assignee: Keith Wall
>             Fix For: 0.15
>
>         Attachments: 0001-QPID-3715-Fix-the-receiving-of-an-empty-ObjectMessag.patch
>
>
> 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
> {code:title=Sending and receiving an empty object message|borderStyle=solid}
> Message message = session.createObjectMessage();
> producer.send(message);
> ObjectMessage receivedMessage = (ObjectMessage) consumer.receive(1000);// <--- hanging here
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org