[
https://jira.jboss.org/jira/browse/JBAS-6783?page=com.atlassian.jira.plug...
]
Jason T. Greene updated JBAS-6783:
----------------------------------
Summary: NPE when setting 'messageCounterHistoryDayLimit' prop on JMS
Topics (was: NPE when setting 'messageCounterHistoryDayLimit' prop on JMS
destinations)
Component/s: JMS (JBoss Messaging)
(was: ProfileService)
Description:
Setting the "MessageCounterHistoryDayLimit" in a topic deployment descriptor
triggers an NPE:
Caused by: java.lang.NullPointerException
at
org.jboss.jms.server.destination.ManagedTopic.getMessageCounters(ManagedTopic.java:159)
at
org.jboss.jms.server.destination.ManagedTopic.setMessageCounterHistoryDayLimit(ManagedTopic.java:191)
Also See
https://jira.jboss.org/jira/browse/JBAS-6721?focusedCommentId=12460246#ac... .
The problem is that the property is only expected to be set at runtime, AFTER the topic
has started:
Collection queues = serverPeer.getPostOfficeInstance().getQueuesForCondition(new
JMSCondition(false, name), true);
was:
Reporting this on behalf of Emanuel.
See
https://jira.jboss.org/jira/browse/JBAS-6721?focusedCommentId=12460246#ac...
for his original comments.
In todays meeting he mentioned you get an NPE when setting the
messageCounterHistoryDayLimit property.
More investigation is needed.
NPE when setting 'messageCounterHistoryDayLimit' prop on JMS
Topics
-------------------------------------------------------------------
Key: JBAS-6783
URL:
https://jira.jboss.org/jira/browse/JBAS-6783
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JMS (JBoss Messaging)
Affects Versions: JBossAS-5.1.0.CR1
Reporter: Charles Crouch
Assignee: Jason T. Greene
Fix For: JBossAS-5.2.0.Beta1
Setting the "MessageCounterHistoryDayLimit" in a topic deployment descriptor
triggers an NPE:
Caused by: java.lang.NullPointerException
at
org.jboss.jms.server.destination.ManagedTopic.getMessageCounters(ManagedTopic.java:159)
at
org.jboss.jms.server.destination.ManagedTopic.setMessageCounterHistoryDayLimit(ManagedTopic.java:191)
Also See
https://jira.jboss.org/jira/browse/JBAS-6721?focusedCommentId=12460246#ac... .
The problem is that the property is only expected to be set at runtime, AFTER the topic
has started:
Collection queues = serverPeer.getPostOfficeInstance().getQueuesForCondition(new
JMSCondition(false, name), true);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira