You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Juraj Kuruc (JIRA)" <ji...@apache.org> on 2008/12/02 14:04:05 UTC

[jira] Created: (AMQ-2021) durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().

durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().
--------------------------------------------------------------------------------------------------------------------

                 Key: AMQ-2021
                 URL: https://issues.apache.org/activemq/browse/AMQ-2021
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.2.0
         Environment: WinXP,
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) 
            Reporter: Juraj Kuruc
            Priority: Critical


Using two topic durable subscribers which consume every odd message and recover their session if message number is even one of the durable subscriper after couple hundred messages get stuck and  java.lang.NullPointerException is shown on provider console.

Reproducing steps:
1. start amq server using default configuration.
2. run TopicRedeliver.
3. run TopicProducer.

Discovered during test of  https://issues.apache.org/activemq/browse/AMQ-1797 .
See attached logs and java files. 





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQ-2021) durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().

Posted by "Juraj Kuruc (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juraj Kuruc updated AMQ-2021:
-----------------------------

    Attachment: amq2021.zip

> durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-2021
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2021
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>         Environment: WinXP,
> java version "1.6.0_05"
> Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) 
>            Reporter: Juraj Kuruc
>            Priority: Critical
>         Attachments: amq2021.zip
>
>
> Using two topic durable subscribers which consume every odd message and recover their session if message number is even one of the durable subscriper after couple hundred messages get stuck and  java.lang.NullPointerException is shown on provider console.
> Reproducing steps:
> 1. start amq server using default configuration.
> 2. run TopicRedeliver.
> 3. run TopicProducer.
> Discovered during test of  https://issues.apache.org/activemq/browse/AMQ-1797 .
> See attached logs and java files. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQ-2021) durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-2021.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.3.0

resolved in r729038.
Problem is in dispatch to the DLQ for topics. A property is set in the message before dispatch to the DLQ but this can invalidate the message for delivery to other topic subscribers. The failure can be a little odd as it can result in empty properties at the consumer or marshal errors.
The solution is to copy the message before making modifications.

> durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-2021
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2021
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>         Environment: WinXP,
> java version "1.6.0_05"
> Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) 
>            Reporter: Juraj Kuruc
>            Assignee: Gary Tully
>            Priority: Critical
>             Fix For: 5.3.0
>
>         Attachments: amq2021.zip
>
>
> Using two topic durable subscribers which consume every odd message and recover their session if message number is even one of the durable subscriper after couple hundred messages get stuck and  java.lang.NullPointerException is shown on provider console.
> Reproducing steps:
> 1. start amq server using default configuration.
> 2. run TopicRedeliver.
> 3. run TopicProducer.
> Discovered during test of  https://issues.apache.org/activemq/browse/AMQ-1797 .
> See attached logs and java files. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (AMQ-2021) durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully reassigned AMQ-2021:
-------------------------------

    Assignee: Gary Tully

> durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-2021
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2021
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>         Environment: WinXP,
> java version "1.6.0_05"
> Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) 
>            Reporter: Juraj Kuruc
>            Assignee: Gary Tully
>            Priority: Critical
>         Attachments: amq2021.zip
>
>
> Using two topic durable subscribers which consume every odd message and recover their session if message number is even one of the durable subscriper after couple hundred messages get stuck and  java.lang.NullPointerException is shown on provider console.
> Reproducing steps:
> 1. start amq server using default configuration.
> 2. run TopicRedeliver.
> 3. run TopicProducer.
> Discovered during test of  https://issues.apache.org/activemq/browse/AMQ-1797 .
> See attached logs and java files. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQ-2021) durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48317#action_48317 ] 

Gary Tully commented on AMQ-2021:
---------------------------------

ps: thanks for the test case :-) I committed a variant of it that catches the various failure scenarios.

> durable subscriber gets stuck while using persistent delivery mode and client acknowledgment with session.recover().
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-2021
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2021
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>         Environment: WinXP,
> java version "1.6.0_05"
> Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) 
>            Reporter: Juraj Kuruc
>            Assignee: Gary Tully
>            Priority: Critical
>             Fix For: 5.3.0
>
>         Attachments: amq2021.zip
>
>
> Using two topic durable subscribers which consume every odd message and recover their session if message number is even one of the durable subscriper after couple hundred messages get stuck and  java.lang.NullPointerException is shown on provider console.
> Reproducing steps:
> 1. start amq server using default configuration.
> 2. run TopicRedeliver.
> 3. run TopicProducer.
> Discovered during test of  https://issues.apache.org/activemq/browse/AMQ-1797 .
> See attached logs and java files. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.