powered by Jive Software

Monitoring Plugin not showing on Server GUI

Hi, after upgrading to Openfire 4.6.2, Monitoring plugin stop showing on the Server section in the GUI. Already tried to reinstall the same and old versions, restart the server but non worked. Java version is 1.8.0_202. OS. The OS is CENTOS 7. This is what the log file shows:

2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jersey-core-1.19.4.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jersey-bundle-1.19.4.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jakarta.xml.bind-api-2.3.2.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jakarta.activation-api-1.2.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-jaxrs-json-provider-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-jaxrs-base-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jettison-1.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jrobin-1.6.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/hamcrest-core-1.3.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jfreechart-1.0.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-queryparser-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-queries-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-sandbox-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/barcodes-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/slf4j-api-1.7.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/font-asian-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/io-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/layout-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/pdfa-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/sign-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/styled-xml-parser-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/rome-1.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/javax.activation-api-1.2.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/activation-1.1.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/txw2-2.3.2.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/istack-commons-runtime-3.0.8.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/stax-ex-1.8.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/FastInfoset-1.2.16.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/bcpkix-jdk15on-1.61.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/monitoring-2.2.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jersey-server-1.19.4.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jsr311-api-1.1.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-module-jaxb-annotations-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-annotations-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-core-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-databind-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/junit-4.11.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jcommon-1.0.16.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-core-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/forms-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/hyph-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/kernel-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/svg-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/orsonpdf-1.7.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jdom-1.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jaxb-api-2.3.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jaxb-runtime-2.3.2.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/bcprov-jdk15on-1.61.jar
2021.03.24 17:19:13 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginManager - Successfully unloaded plugin 'monitoring2.2.1'.
2021.03.24 17:19:48 ERROR [pool-60-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:89) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.2]
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.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.2.jar:4.6.2]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1475) ~[xpp3-1.1.4c.jar:?]
at org.jivesoftware.openfire.net.MXParser.nextImpl(MXParser.java:337) ~[xmppserver-4.6.2.jar:4.6.2]
at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) ~[xpp3-1.1.4c.jar:?]
at org.dom4j.io.XMPPPacketReader.parseDocument(XMPPPacketReader.java:347) ~[xmppserver-4.6.2.jar:?]
at org.dom4j.io.XMPPPacketReader.read(XMPPPacketReader.java:176) ~[xmppserver-4.6.2.jar:?]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:173) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:183) [xmppserver-4.6.2.jar:4.6.2]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:89) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:766) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:758) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:697) [mina-core-2.1.3.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
1 Like

The crux here are these lines:

2021.03.24 17:19:48 ERROR [pool-60-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:89) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.2]

For some reason, the plugin fails to load, as it detects that part of its functionality is already running. Since you restarted, this can’t be a remnant of the old plugin (occasionally, we have plugins failing to unload properly, but that gets taken care of by restarting Openfire). It’s almost as if you have the plugin running twice. Can you check the plugins folder in the Openfire home directory, to see if you have jar files that are apparent copies of the monitoring plugin? You should see only one (monitoring.jar).

Thanks @guus for your quick response! I have checked the plugins folder and it has only one monitoring.jar file, as you can see:

1 Like

The file that you highlighted has a different owner than most of the others (see the column on the right hand side). That’s probably causing issues.

Thanks @guus, but it doesn’t make any difference if I change the owner/group from the monitoring file and folder, the issue is still there and so when I reload openfire or the plugin, the monitoring folder returns to have root as owner and the same happens when I reinstall the plugin but in this case, it does with the monitoring.jar file too.

As you said in the first reply, it looks like there is some process duplicated as I can see when I uninstall the monitoring plugin, it still appears in the log file, like if there was installed this plugin. I haven’t been able to get rid of the plugin entirely so the process won’t be duplicated when I reinstall it. Any ideas on how to erase completely the monitoring plugin and processes, w/o erasing all the chat history? Already tried to uninstall and reboot the server, the log still shows like the monitoring plugin is there

1 Like

When you shut down Openfire, remove monitoring.jar and the monitoring directory, then restart Openfire, and you still see references to the monitoring plugin being logged (without having re-installed the plugin) then… gremlins?

At this point, I’m wondering if some kind of mishap caused part of an older ‘monitoring’ directory to get copied into the directory of another plugin, something like that?

Can you reproduce this problem in a fresh installation of Openfire on another server?

Sorry I was not replying these days. It was a hard week. At this time, is not possible for me to have another server with a fresh installation for openfire. I tried to do something different to eliminate the plugin and now I have these errors in the log file:

2021.04.16 18:19:11 org.jivesoftware.util.XMLProperties - Error reading XML properties
org.dom4j.DocumentException: Error on line 1 of document : Premature end of file.
at org.dom4j.io.SAXReader.read(SAXReader.java:511) ~[dom4j-2.1.3.jar:?]
at org.dom4j.io.SAXReader.read(SAXReader.java:408) ~[dom4j-2.1.3.jar:?]
at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:740) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:163) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:123) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.index.LuceneIndexer.loadPropertiesFile(LuceneIndexer.java:413) [monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.index.LuceneIndexer.start(LuceneIndexer.java:68) [monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.plugin.MonitoringPlugin.initializePlugin(MonitoringPlugin.java:201) [monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:683) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.2.jar:4.6.2]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[?:1.8.0_202]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) ~[?:1.8.0_202]
at org.dom4j.io.SAXReader.read(SAXReader.java:494) ~[dom4j-2.1.3.jar:?]
… 14 more
2021.04.16 18:19:11 org.jivesoftware.openfire.archive.ArchiveIndexer[CONVERSATION] - An exception occurred while initializing the Lucene index that is expected to exist in: /opt/openfire/monitoring/search
java.io.IOException: Error on line 1 of document : Premature end of file.
at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:744) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:163) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:123) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.index.LuceneIndexer.loadPropertiesFile(LuceneIndexer.java:413) ~[monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.index.LuceneIndexer.start(LuceneIndexer.java:68) [monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.plugin.MonitoringPlugin.initializePlugin(MonitoringPlugin.java:201) [monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:683) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.2.jar:4.6.2]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
2021.04.16 18:19:11 org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin ‘monitoring’:
java.lang.NullPointerException: null
at org.jivesoftware.openfire.index.LuceneIndexer.getLastModified(LuceneIndexer.java:143) ~[monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.index.LuceneIndexer.start(LuceneIndexer.java:124) ~[monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.plugin.MonitoringPlugin.initializePlugin(MonitoringPlugin.java:201) ~[monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:683) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.2.jar:4.6.2]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]

1 Like

I may have a similar problem. After updating to 4.6.2, I tried the installed Monitoring Service plugin page

2021.04.19 07:58:05 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:89) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.2]
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.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.2.jar:4.6.2]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_282]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_282]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]

Post installation message for this plugin:

2021.04.22 17:37:41 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:89) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.2]
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.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.2.jar:4.6.2]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_282]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_282]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]