You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Stan Lewis (Created) (JIRA)" <ji...@apache.org> on 2011/12/06 16:17:40 UTC

[jira] [Created] (AMQ-3622) NPE in LastImageSubscriptionRecoveryPolicy

NPE in LastImageSubscriptionRecoveryPolicy
------------------------------------------

                 Key: AMQ-3622
                 URL: https://issues.apache.org/jira/browse/AMQ-3622
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.5.1
            Reporter: Stan Lewis


Start up a subscriber when no messages are available and this NPE will eventually get logged:

2011-12-02 15:01:00,588 | WARN  | Failed to browse Topic: xxx | org.apache.activemq.broker.region.Topic | ActiveMQ Broker[xxx] Scheduler
java.lang.NullPointerException
	at org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy.browse(LastImageSubscriptionRecoveryPolicy.java:63)
	at org.apache.activemq.broker.region.Topic.browse(Topic.java:564)
	at org.apache.activemq.broker.region.Topic$6.run(Topic.java:659)
	at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)

repeatedly every 30 seconds or so until a message is sent to the topic.

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

        

[jira] [Resolved] (AMQ-3622) NPE in LastImageSubscriptionRecoveryPolicy

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

Gary Tully resolved AMQ-3622.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.6.0

patch and test applied with thanks.
http://svn.apache.org/viewvc?rev=1211568&view=rev
                
> NPE in LastImageSubscriptionRecoveryPolicy
> ------------------------------------------
>
>                 Key: AMQ-3622
>                 URL: https://issues.apache.org/jira/browse/AMQ-3622
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Stan Lewis
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>         Attachments: 0001-Avoid-NPE.patch, 0002-Add-test-for-AMQ-3622.patch
>
>
> Start up a subscriber when no messages are available and this NPE will eventually get logged:
> 2011-12-02 15:01:00,588 | WARN  | Failed to browse Topic: xxx | org.apache.activemq.broker.region.Topic | ActiveMQ Broker[xxx] Scheduler
> java.lang.NullPointerException
> 	at org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy.browse(LastImageSubscriptionRecoveryPolicy.java:63)
> 	at org.apache.activemq.broker.region.Topic.browse(Topic.java:564)
> 	at org.apache.activemq.broker.region.Topic$6.run(Topic.java:659)
> 	at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
> 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 	at java.util.TimerThread.run(Timer.java:462)
> repeatedly every 30 seconds or so until a message is sent to the topic.

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

        

[jira] [Updated] (AMQ-3622) NPE in LastImageSubscriptionRecoveryPolicy

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

Stan Lewis updated AMQ-3622:
----------------------------

    Attachment: 0001-Avoid-NPE.patch

Here's the patch!
                
> NPE in LastImageSubscriptionRecoveryPolicy
> ------------------------------------------
>
>                 Key: AMQ-3622
>                 URL: https://issues.apache.org/jira/browse/AMQ-3622
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Stan Lewis
>         Attachments: 0001-Avoid-NPE.patch
>
>
> Start up a subscriber when no messages are available and this NPE will eventually get logged:
> 2011-12-02 15:01:00,588 | WARN  | Failed to browse Topic: xxx | org.apache.activemq.broker.region.Topic | ActiveMQ Broker[xxx] Scheduler
> java.lang.NullPointerException
> 	at org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy.browse(LastImageSubscriptionRecoveryPolicy.java:63)
> 	at org.apache.activemq.broker.region.Topic.browse(Topic.java:564)
> 	at org.apache.activemq.broker.region.Topic$6.run(Topic.java:659)
> 	at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
> 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 	at java.util.TimerThread.run(Timer.java:462)
> repeatedly every 30 seconds or so until a message is sent to the topic.

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

        

[jira] [Assigned] (AMQ-3622) NPE in LastImageSubscriptionRecoveryPolicy

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

Gary Tully reassigned AMQ-3622:
-------------------------------

    Assignee: Gary Tully
    
> NPE in LastImageSubscriptionRecoveryPolicy
> ------------------------------------------
>
>                 Key: AMQ-3622
>                 URL: https://issues.apache.org/jira/browse/AMQ-3622
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Stan Lewis
>            Assignee: Gary Tully
>         Attachments: 0001-Avoid-NPE.patch, 0002-Add-test-for-AMQ-3622.patch
>
>
> Start up a subscriber when no messages are available and this NPE will eventually get logged:
> 2011-12-02 15:01:00,588 | WARN  | Failed to browse Topic: xxx | org.apache.activemq.broker.region.Topic | ActiveMQ Broker[xxx] Scheduler
> java.lang.NullPointerException
> 	at org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy.browse(LastImageSubscriptionRecoveryPolicy.java:63)
> 	at org.apache.activemq.broker.region.Topic.browse(Topic.java:564)
> 	at org.apache.activemq.broker.region.Topic$6.run(Topic.java:659)
> 	at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
> 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 	at java.util.TimerThread.run(Timer.java:462)
> repeatedly every 30 seconds or so until a message is sent to the topic.

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

        

[jira] [Updated] (AMQ-3622) NPE in LastImageSubscriptionRecoveryPolicy

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

Stan Lewis updated AMQ-3622:
----------------------------

    Attachment: 0002-Add-test-for-AMQ-3622.patch

Here's the test for this patch, needs patch applied for AMQ-3623 first
                
> NPE in LastImageSubscriptionRecoveryPolicy
> ------------------------------------------
>
>                 Key: AMQ-3622
>                 URL: https://issues.apache.org/jira/browse/AMQ-3622
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Stan Lewis
>         Attachments: 0001-Avoid-NPE.patch, 0002-Add-test-for-AMQ-3622.patch
>
>
> Start up a subscriber when no messages are available and this NPE will eventually get logged:
> 2011-12-02 15:01:00,588 | WARN  | Failed to browse Topic: xxx | org.apache.activemq.broker.region.Topic | ActiveMQ Broker[xxx] Scheduler
> java.lang.NullPointerException
> 	at org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy.browse(LastImageSubscriptionRecoveryPolicy.java:63)
> 	at org.apache.activemq.broker.region.Topic.browse(Topic.java:564)
> 	at org.apache.activemq.broker.region.Topic$6.run(Topic.java:659)
> 	at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
> 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 	at java.util.TimerThread.run(Timer.java:462)
> repeatedly every 30 seconds or so until a message is sent to the topic.

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