You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org> on 2009/12/15 17:28:18 UTC

[jira] Resolved: (QPID-2263) Housekeeping thread can throw NPE and stop running.

     [ https://issues.apache.org/jira/browse/QPID-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marnie McCormack resolved QPID-2263.
------------------------------------

    Resolution: Fixed

Reviewed ok, though poss need separate JIRA for protection within housekeeping thread for exceptions

> 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: M3, M4, 0.5
>            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