-
1. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
clebert.suconic Jul 7, 2011 11:36 AM (in response to jeremystone)Someone had reported me that on IRC but I couldn't replicate it.
If you give me the exact steps to reproduce it. (start with an empty distribution, step by step).. We will fix it. (you may open a JIRA on that case.. if you find a way to reproduce it).
If it needs code (not just JMX-console or jconsole), please provide us some code / test.
-
2. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
jeremystone Jul 7, 2011 11:57 AM (in response to clebert.suconic)Thanks, Clebert. I will see what I can come up with.
-
3. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
jeremystone Jul 8, 2011 4:56 AM (in response to jeremystone)To reproduce:
- Unzip JBoss 4.2.3.GA installation (also happens with later 4.2.3 service releases)
- Integrate HornetQ 2.2.5 using the build.bat/build.sh in hornetq-2.2.5.Final\config\jboss-as-4 (following instructions in Quickstart Guide)
- Run JBoss using run -c default-with-hornetq
- Open jmx-console in a browser and invoke the the listMessageCounterAsHTML method on the module=JMS,name="DLQ",type=Queue mbean.
[Note: you will need to fix up the ra.xml where there appears to be a typo: TransactionManagerLocatorMethod is set twice. The first should be setting TransactionManagerLocatorClass. Otherwise get ArrayIndexOutOfBoundsException when it tries to look up the transaction manager.]
-
4. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
jeremystone Jul 8, 2011 5:03 AM (in response to jeremystone)Have created https://issues.jboss.org/browse/HORNETQ-735
-
5. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
clebert.suconic Jul 8, 2011 10:56 AM (in response to jeremystone)Does it only happen on 4.2.3?
-
6. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
jeremystone Jul 8, 2011 11:03 AM (in response to clebert.suconic)And 4.3.0.GA.CP04. Not tried JBoss 5+
-
7. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
zohar_melamed Jul 8, 2011 11:35 AM (in response to clebert.suconic)Hi
We are seeing the same issue running 2.2.5 Final standalone.
This happens on both listMessageCounterAsHTML() and listMessageCounter()
In both cases debugging shows serverQueue to be null in MessageCounter.java....
Cheers
Z
-
8. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
zohar_melamed Jul 8, 2011 11:37 AM (in response to zohar_melamed)and our config :
Configuration configuration = new ConfigurationImpl();
configuration.setPersistenceEnabled(false);
configuration.setSecurityEnabled(false);
configuration.setLogDelegateFactoryClassName(Log4jLogDelegateFactory.class.getName());
configuration.setBindingsDirectory(subdirectoryInMessagingDirectory("bindings"));
configuration.setJournalDirectory(subdirectoryInMessagingDirectory("journal"));
configuration.setLargeMessagesDirectory(subdirectoryInMessagingDirectory("largemessages"));
configuration.setPagingDirectory(subdirectoryInMessagingDirectory("paging"));
configuration.setMessageCounterEnabled(true);
configuration.setMessageCounterMaxDayHistory(14);
configuration.setMessageCounterSamplePeriod(5000);
configuration.setSharedStore(false);
configuration.setPersistenceEnabled(true);
configuration.setJournalType(JournalType.NIO);
deleteAndRecreate(configuration.getJournalDirectory());
deleteAndRecreate(configuration.getLargeMessagesDirectory());
deleteAndRecreate(configuration.getPagingDirectory());
Map<String, Object> connectionParams = new HashMap<String, Object>();
connectionParams.put(TransportConstants.PORT_PROP_NAME, messagingServiceConfig.getMessagingPort());
connectionParams.put(TransportConstants.HOST_PROP_NAME, messagingServiceConfig.getHost().value);
TransportConfiguration transpConf = new TransportConfiguration(NettyAcceptorFactory.class.getName(), connectionParams);
HashSet<TransportConfiguration> setTransp = new HashSet<TransportConfiguration>();
setTransp.add(transpConf);
configuration.setAcceptorConfigurations(setTransp);
JMSConfiguration jmsConfig = new JMSConfigurationImpl();
server = new EmbeddedJMS();
server.setConfiguration(configuration);
server.setJmsConfiguration(jmsConfig);
server.start();
-
9. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
clebert.suconic Jul 8, 2011 11:56 AM (in response to zohar_melamed)@zohar, so you are doing embedded?
-
10. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
clebert.suconic Jul 8, 2011 11:57 AM (in response to clebert.suconic)Please, ignore my last message! :-)
-
11. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
clebert.suconic Jul 8, 2011 1:32 PM (in response to clebert.suconic)fixed on https://svn.jboss.org/repos/hornetq/branches/Branch_2_2_AS7
That's the best branch to get it now.
Branch_2_2_EAP is under work on clustering.
trunk will be updated as soon as I finish some clustering changes.
-
12. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
clebert.suconic Jul 8, 2011 1:33 PM (in response to clebert.suconic)Thanks for the help on fixing it...
The issue was on loading existent JMS queues. The createQueue was being ignored and returning null.
-
13. Re: NPE when invoke listMessageCounterAsHTML on JMS queue mbean
zohar_melamed Jul 8, 2011 3:22 PM (in response to clebert.suconic)Thanks for the quick fix Cedric. I'll try and test this on Monday. We are indeed using hornet in an embedded setting ,where it replaced activemq.