powered by Jive Software

Problem with Openfire 4.6.4 and Monitoring Service 2.2.1

I noticed that I do not have the “Statistics” and “Archives subscription”, it was probably after the openfire 4.6.4 update.
In my logs I have:

2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jackson-core-2.12.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jackson-databind-2.12.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jackson-jaxrs-base-2.12.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jackson-jaxrs-json-provider-2.12.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jackson-module-jaxb-annotations-2.12.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jakarta.activation-api-1.2.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jakarta.xml.bind-api-2.3.2.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\javax.activation-api-1.2.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jaxb-api-2.3.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jaxb-runtime-2.3.2.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jcommon-1.0.16.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jdom-1.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jersey-bundle-1.19.4.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jersey-core-1.19.4.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jersey-server-1.19.4.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jersey-servlet-1.19.4.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jettison-1.4.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jfreechart-1.0.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jrobin-1.6.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\jsr311-api-1.1.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\junit-4.11.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\kernel-7.1.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\layout-7.1.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\lucene-core-8.4.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\lucene-queries-8.4.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\lucene-queryparser-8.4.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\lucene-sandbox-8.4.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\monitoring-2.2.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\orsonpdf-1.7.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\pdfa-7.1.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\rome-1.0.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\sign-7.1.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\slf4j-api-1.7.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\stax-ex-1.8.1.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\styled-xml-parser-7.1.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\svg-7.1.13.jar
2021.08.20 23:43:52 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file C:\Program Files\Openfire\plugins\monitoring\lib\txw2-2.3.2.jar
2021.08.20 23:43:54 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginManager - Successfully unloaded plugin 'monitoring'.
2021.08.20 23:44:00 ERROR [pool-56-thread-1]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'monitoring':
java.lang.IllegalStateException: A task with ID MonitoringPlugin Conversations has already been added.
at org.jivesoftware.openfire.archive.ArchiveManager.add(ArchiveManager.java:143) ~[xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.4]
at org.jivesoftware.openfire.plugin.MonitoringPlugin.initializePlugin(MonitoringPlugin.java:198) ~[monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:683) [xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.4.jar:4.6.4]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_202]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202] 

and

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_202]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202]
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_202]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_202]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_202]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:1.8.0_202]
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[?:1.8.0_202]
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:345) ~[jetty-server-9.4.35.v20201120.jar:9.4.35.v20201120]
... 20 more
2021.08.20 23:43:42 org.jivesoftware.openfire.container.PluginManager - An exception occurred while unloading plugin 'loadstats':
java.lang.NullPointerException: null
at org.apache.mina.management.MINAStatCollector.stop(MINAStatCollector.java:163) ~[xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.plugin.StatCollector.stop(StatCollector.java:172) ~[?:?]
at org.jivesoftware.openfire.plugin.StatisticPlugin.destroyPlugin(StatisticPlugin.java:43) ~[?:?]
at org.jivesoftware.openfire.container.PluginManager.unloadPlugin(PluginManager.java:959) [xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask.run(PluginMonitor.java:269) [xmppserver-4.6.4.jar:4.6.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_202]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202]
2021.08.20 23:43:51 org.jivesoftware.openfire.container.PluginManager - An exception occurred while unloading plugin 'monitoring':
java.lang.NullPointerException: null
at org.jivesoftware.openfire.index.LuceneIndexer.stop(LuceneIndexer.java:169) ~[?:?]
at org.jivesoftware.openfire.plugin.MonitoringPlugin.destroyPlugin(MonitoringPlugin.java:215) ~[?:?]
at org.jivesoftware.openfire.container.PluginManager.unloadPlugin(PluginManager.java:959) [xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask.run(PluginMonitor.java:269) [xmppserver-4.6.4.jar:4.6.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_202]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202]
2021.08.20 23:44:00 org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'monitoring':
java.lang.IllegalStateException: A task with ID MonitoringPlugin Conversations has already been added.
at org.jivesoftware.openfire.archive.ArchiveManager.add(ArchiveManager.java:143) ~[xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.4]
at org.jivesoftware.openfire.plugin.MonitoringPlugin.initializePlugin(MonitoringPlugin.java:198) ~[monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:683) [xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.4.jar:4.6.4]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.4.jar:4.6.4]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_202]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202]