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/05/16 17:16:12 UTC

[jira] [Commented] (ARTEMIS-520) Artemis hangs when receiving messages after paging

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

clebert suconic commented on ARTEMIS-520:
-----------------------------------------

You forgot to start the session.


The test works if you called receiveSession.start();


That's part of the API, and it's very similar to JMS on that sense.


Also you should look at using URIs for your connectors and acceptors, it's way easier on the configuration:

      c.addAcceptorConfiguration("invm-acceptor", "vm://0");


> Artemis hangs when receiving messages after paging
> --------------------------------------------------
>
>                 Key: ARTEMIS-520
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-520
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>         Environment: Windows, java 1.8
>            Reporter: Zabelinski Andrey
>         Attachments: NativePagingTest.java, NativePagingTest_threads_dump.log
>
>
> A brief description: 
>     1. send as many messages as it needs to fill an address up to max-size and then at least 1 another message to start paging. 
>     2. Start a new session and a new consumer 
>     3. try to issue receive() - it will never return (receiveImmediate() returns null)
> A full test is in attachment. An error could be reproduced on version 1.2.0 and on a current master version.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)