You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2009/12/11 14:09:18 UTC
[jira] Created: (QPID-2263) Housekeeping thread can throw NPE and
stop running.
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
[jira] Commented: (QPID-2263) Housekeeping thread can throw NPE and
stop running.
Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789371#action_12789371 ]
Martin Ritchie commented on QPID-2263:
--------------------------------------
Fix also merged to 0.5.x-dev
> 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
[jira] Resolved: (QPID-2263) Housekeeping thread can throw NPE and
stop running.
Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
[ 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
[jira] Updated: (QPID-2263) Housekeeping thread can throw NPE and
stop running.
Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Ritchie updated QPID-2263:
---------------------------------
Status: Ready To Review (was: In Progress)
> 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