Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when loading plugin before ConnectionListener is started #8

Open
guusdk opened this issue Jun 13, 2022 · 1 comment
Open

Errors when loading plugin before ConnectionListener is started #8

guusdk opened this issue Jun 13, 2022 · 1 comment

Comments

@guusdk
Copy link
Member

guusdk commented Jun 13, 2022

The following stack traces were logged on a clustered instance of Openfire 4.7.1 (I'm not sure if the fact that this is a cluster makes any difference). Note that the stack trace logged on each cluster node is slightly different.

2022.06.13 00:01:27 �[32mINFO �[m [pool-6-thread-2]: org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin 'httpfileupload'.
2022.06.13 00:01:27 �[1;31mERROR�[m [pool-6-thread-3]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'loadstats':
java.lang.NullPointerException: Cannot invoke "org.apache.mina.core.service.IoService.getManagedSessions()" because "this.service" is null
	at org.apache.mina.management.MINAStatCollector.start(MINAStatCollector.java:137) ~[xmppserver-4.7.1.jar:4.7.1]
	at org.jivesoftware.openfire.plugin.StatCollector.start(StatCollector.java:165) ~[loadStats-1.2.1.jar:?]
	at org.jivesoftware.openfire.plugin.StatisticPlugin.initializePlugin(StatisticPlugin.java:38) ~[loadStats-1.2.1.jar:?]
	at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:637) [xmppserver-4.7.1.jar:4.7.1]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.7.1.jar:4.7.1]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.7.1.jar:4.7.1]
	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:833) [?:?]
2022.06.13 01:01:24 �[1;31mERROR�[m [pool-6-thread-3]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'loadstats':
java.lang.NullPointerException: null
	at org.apache.mina.management.MINAStatCollector.start(MINAStatCollector.java:137) ~[xmppserver-4.7.1.jar:4.7.1]
	at org.jivesoftware.openfire.plugin.StatCollector.start(StatCollector.java:165) ~[loadStats-1.2.1.jar:?]
	at org.jivesoftware.openfire.plugin.StatisticPlugin.initializePlugin(StatisticPlugin.java:38) ~[loadStats-1.2.1.jar:?]
	at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:637) [xmppserver-4.7.1.jar:4.7.1]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.7.1.jar:4.7.1]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.7.1.jar:4.7.1]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
@guusdk
Copy link
Member Author

guusdk commented Jun 14, 2022

This problem occurs when the plugin is started before the ConnectionListener that it is using to record data was started.

@guusdk guusdk changed the title Errors when loading plugin in Openfire 4.7.1 (clustered) Errors when loading plugin before ConnectionListener is started Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant