Plugins errors since 4.8.0

Hi! I have several plugins errors, that starts after update to 4.8.0.
From 4.8.0 - jmxweb and xmldebugger:

2024.06.01 21:08:01.388 ESC[1;31mERRORESC[m [PluginMonitorExec-2]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'jmxweb':
java.lang.NoClassDefFoundError: org/apache/mina/transport/socket/SocketAcceptor
        at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:3373) ~[?:?]
        at java.lang.Class.getConstructor0(Class.java:3578) ~[?:?]
        at java.lang.Class.newInstance(Class.java:626) ~[?:?]
        at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:586) [xmppserver-4.8.0.jar:4.8.0]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:380) [xmppserver-4.8.0.jar:4.8.0]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:368) [xmppserver-4.8.0.jar:4.8.0]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.ClassNotFoundException: org.apache.mina.transport.socket.SocketAcceptor
        at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
        ... 11 more

2024.06.01 21:19:46.269 ESC[1;31mERRORESC[m [PluginMonitorExec-2]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'xmldebugger':
java.lang.NoClassDefFoundError: org/apache/mina/transport/socket/SocketAcceptor
        at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:3373) ~[?:?]
        at java.lang.Class.getConstructor0(Class.java:3578) ~[?:?]
        at java.lang.Class.newInstance(Class.java:626) ~[?:?]
        at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:586) [xmppserver-4.8.0.jar:4.8.0]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:380) [xmppserver-4.8.0.jar:4.8.0]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:368) [xmppserver-4.8.0.jar:4.8.0]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.ClassNotFoundException: org.apache.mina.transport.socket.SocketAcceptor
        at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
        ... 11 more

From 4.8.1 the errors mentioned above remained and loadstats, offocus and ofmeet were added.

2024.06.02 14:05:54.687 ESC[1;31mERRORESC[m [PluginMonitorExec-2]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'loadstats':
java.lang.NoClassDefFoundError: org/apache/mina/transport/socket/SocketAcceptor
        at org.jivesoftware.openfire.plugin.StatisticPlugin.initializePlugin(StatisticPlugin.java:36) ~[loadStats-1.2.1.jar:?]
        at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:652) ~[xmppserver-4.8.1.jar:4.8.1]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:380) ~[xmppserver-4.8.1.jar:4.8.1]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:368) ~[xmppserver-4.8.1.jar:4.8.1]
        at java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.ClassNotFoundException: org.apache.mina.transport.socket.SocketAcceptor
        at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:593) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
        ... 8 more

2024.06.02 14:07:04.871 ESC[1;31mERRORESC[m [PluginMonitorExec-2]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'offocus':
java.lang.NoSuchMethodError: 'boolean org.jivesoftware.openfire.user.UserManager.isRegisteredUser(java.lang.String)'
        at org.jivesoftware.openfire.plugin.ofmeet.FocusPlugin.ensureFocusUser(FocusPlugin.java:119) ~[offocus-0.9.4.jar:?]
        at org.jivesoftware.openfire.plugin.ofmeet.FocusPlugin.initializePlugin(FocusPlugin.java:57) ~[offocus-0.9.4.jar:?]
        at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:652) ~[xmppserver-4.8.1.jar:4.8.1]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:380) ~[xmppserver-4.8.1.jar:4.8.1]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:368) ~[xmppserver-4.8.1.jar:4.8.1]
        at java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.lang.Thread.run(Thread.java:1583) [?:?]

2024.06.02 14:07:48.872 ESC[1;31mERRORESC[m [PluginMonitorExec-2]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'ofmeet':
java.lang.IllegalStateException: OFFocus plugin detected. This version of The OFMeet plugin cannot run next to the OFFocus plugin (OFFocus is no longer needed). Please remove OFFocus and reinstall OFMeet!
        at org.jivesoftware.openfire.plugin.ofmeet.OfMeetPlugin.initializePlugin(OfMeetPlugin.java:111) ~[ofmeet-0.9.5.jar:?]
        at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:652) ~[xmppserver-4.8.1.jar:4.8.1]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:380) ~[xmppserver-4.8.1.jar:4.8.1]
        at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:368) ~[xmppserver-4.8.1.jar:4.8.1]
        at java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.lang.Thread.run(Thread.java:1583) [?:?]

FreeBSD 13.2 amd64, openjdk 21.0.3.

hi, the xmldebugger is still not ready for the 4.8 although there is a version of it which can run, but still has some issues.

1 Like

Thanks for reporting this. We’ve raised issues for these problems in the corresponding projects:

A similar exception for the EXI plugin:

PluginManager - An exception occurred while loading plugin 'exi':
java.lang.NoClassDefFoundError: org/apache/mina/transport/socket/SocketAcceptor

authfiltersanitizer has something different:

ERROR [PluginMonitorExec-2]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'authfiltersanitizer':
java.lang.NoSuchMethodError: 'void org.jivesoftware.util.TaskEngine.schedule(java.util.TimerTask, long, long)'
	at org.igniterealtime.openfire.plugin.AuthFilterSanitizerPlugin.initializePlugin(AuthFilterSanitizerPlugin.java:42) ~[authfiltersanitizer-1.0.0.jar:?]
	at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:640) ~[xmppserver-4.10.0-SNAPSHOT.jar:4.10.0-SNAPSHOT]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:380) ~[xmppserver-4.10.0-SNAPSHOT.jar:4.10.0-SNAPSHOT]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:368) ~[xmppserver-4.10.0-SNAPSHOT.jar:4.10.0-SNAPSHOT]

I hope this all are similar problems that can be fixed easily

Thanks for reporting this! The problem with the EXI plugin for Openfire has been logged as Not compatible with Openfire 4.9.0 · Issue #6 · igniterealtime/openfire-exi-plugin · GitHub

As an aside: are you using this plugin? I’d be interested in learning how this performs in real-world scenarios.

Good to know that the issues are already tracker.

are you using this plugin?

Sorry, no. I think that it should be fine to add some telemetry/monitoring/statistics to the Openfire so that it can get some insights to you.
But the EXI looks really promising because it’s somewhat solves the main problem of XMPP and reduces traffic. The WhatsUp did the same when invented their FunXMPP that is a binary based XMPP with tags replaced by a dict.

The problem with telemetry is that people worry about software ‘calling home’. It’s nice to have those statistics, but it’s not important enough to alienate people, I think.

I’m not sure if the data size of XMPP is anything but a theoretical problem in most scenarios. Nowadays, bandwidth is generally good enough for most consumers - it even was very acceptable back in the early 2000’s, for mobile-based XMPP chat.

For many other scenarios there are other compression solutions available, that typically are ‘good enough’.

I do like the promise of EXI, and I’m certainly interested in its application. It does seem to be a very specific audience, though.

1 Like