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

Stack trace when user logs in on Openfire 4.8 #16

Closed
guusdk opened this issue May 2, 2023 · 1 comment
Closed

Stack trace when user logs in on Openfire 4.8 #16

guusdk opened this issue May 2, 2023 · 1 comment

Comments

@guusdk
Copy link
Member

guusdk commented May 2, 2023

In Openfire 4.8.0 alpha (and possibly in earlier versions, I did not check), the following stack trace is logged when a user logs in while this plugin (v1.2.3-SNAPSHOT) is loaded:

Exception in thread "httpbind-worker-2" java.lang.NoSuchMethodError: 'boolean org.jivesoftware.openfire.user.UserManager.isRegisteredUser(org.xmpp.packet.JID)'
	at com.reucon.openfire.plugins.userstatus.UserStatusPlugin.sessionCreated(UserStatusPlugin.java:73)
	at org.jivesoftware.openfire.event.SessionEventDispatcher.dispatchEvent(SessionEventDispatcher.java:74)
	at org.jivesoftware.openfire.SessionManager.addSession(SessionManager.java:647)
	at org.jivesoftware.openfire.session.LocalClientSession.setAuthToken(LocalClientSession.java:589)
	at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:156)
	at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:62)
	at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:394)
	at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:106)
	at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:74)
	at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:106)
	at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:65)
	at org.jivesoftware.openfire.http.HttpSession.lambda$sendPendingPackets$2(HttpSession.java:572)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
@guusdk
Copy link
Member Author

guusdk commented May 2, 2023

This affects Openfire 4.8 and later only. It is caused by removal of deprecated API in Openfire 4.8: https://igniterealtime.atlassian.net/browse/OF-2395

@guusdk guusdk changed the title Stack trace when user logs in Stack trace when user logs in on Openfire 4.8 May 2, 2023
guusdk added a commit to guusdk/openfire-userStatus-plugin that referenced this issue May 2, 2023
In Openfire 4.8, API that was used by this plugin was removed. In this commit, usage of that API has been replaced.
akrherz added a commit that referenced this issue Nov 27, 2023
fixes #16: Ensure compatibility with Openfire 4.8
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