qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Ritchie (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Created: (QPID-2263) Housekeeping thread can throw NPE and stop running.
Date Fri, 11 Dec 2009 13:09:18 GMT
Housekeeping thread can throw NPE and stop running.
---------------------------------------------------

                 Key: QPID-2263
                 URL: https://issues.apache.org/jira/browse/QPID-2263
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: 0.5, M4, M3
            Reporter: Martin Ritchie
            Assignee: Martin Ritchie
             Fix For: 0.6


The following NPE stack trace has been observed on the housekeeping thread:

Exception in thread "Queue-housekeeping-dev" java.lang.NullPointerException
        at org.apache.qpid.server.queue.WeakReferenceMessageHandle.populateFromMessageMetaData(WeakReferenceMessageHandle.java:85)
        at org.apache.qpid.server.queue.WeakReferenceMessageHandle.loadMessageMetaData(WeakReferenceMessageHandle.java:79)
        at org.apache.qpid.server.queue.WeakReferenceMessageHandle.getContentHeaderBody(WeakReferenceMessageHandle.java:64)
        at org.apache.qpid.server.queue.AMQMessage.getContentHeaderBody(AMQMessage.java:273)
        at org.apache.qpid.server.queue.NotificationCheck$2.notifyIfNecessary(NotificationCheck.java:53)
        at org.apache.qpid.server.queue.AMQQueueMBean.checkForNotification(AMQQueueMBean.java:263)
        at org.apache.qpid.server.queue.SimpleAMQQueue.checkMessageStatus(SimpleAMQQueue.java:1627)
        at org.apache.qpid.server.virtualhost.VirtualHost$1RemoveExpiredMessagesTask.run(VirtualHost.java:268)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462) 

Preventing the HK thread from working on deleted messages will ensure that this situation
does not occur. 

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


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


Mime
View raw message