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

API plugin - Openfire 4.0.9.0 - Missing Session Status STATUS_CLOSED #200

Closed
Devocity81 opened this issue Oct 4, 2024 · 9 comments · Fixed by #201
Closed

API plugin - Openfire 4.0.9.0 - Missing Session Status STATUS_CLOSED #200

Devocity81 opened this issue Oct 4, 2024 · 9 comments · Fixed by #201

Comments

@Devocity81
Copy link

Installing Openfire 4.0.9.0 as well as the RestAPI Plugin 1.11.0 and we are receiving an error with the following information:
e[1;31mERRORe[m [Jetty-QTP-AdminConsole-192]: org.jivesoftware.openfire.container.PluginServlet - org.glassfish.jersey.server.ContainerException: java.lang.NoSuchFieldError: Class org.jivesoftware.openfire.session.Session does not have member field ‘org.jivesoftware.openfire.session.Session$Status STATUS_CLOSED’
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoSuchFieldError: Class org.jivesoftware.openfire.session.Session does not have member field ‘org.jivesoftware.openfire.session.Session$Status STATUS_CLOSED’

Is Openfire missing something, or is the the restAPI plugin not compatible with the newest version of Openfire?

@guusdk
Copy link
Member

guusdk commented Oct 4, 2024

That seems to be a compatibility issue with the latest version of Openfire, indeed. The unrecognized member field was removed from Openfire.

Does this problem occur only on specific REST endpoints?

@Devocity81
Copy link
Author

We just started testing the upgrade to Openfire 4.0.9.0 with RestAPI Plugin 1.11.0. So far we are getting this error when calling 'sessions', and 'roster'.

guusdk added a commit to guusdk/openfire-restAPI-plugin that referenced this issue Oct 4, 2024
This replaces API of Openfire that was removed in Openfire 4.9.0. The plugin remains compatible with Openfire 4.8.0 and later.

Fixes igniterealtime#200
@guusdk
Copy link
Member

guusdk commented Oct 4, 2024

Thanks for reporting this. I have rushed a provisional fix for you in #201

Can you test that fix please?

guusdk added a commit that referenced this issue Oct 5, 2024
This replaces API of Openfire that was removed in Openfire 4.9.0. The plugin remains compatible with Openfire 4.8.0 and later.

Fixes #200
@guusdk
Copy link
Member

guusdk commented Oct 5, 2024

The change should be available in the latest 'snapshot' build of the plugin that can be downloaded from https://www.igniterealtime.org/projects/openfire/plugin-archive.jsp?plugin=restAPI

@Devocity81
Copy link
Author

Devocity81 commented Oct 7, 2024

The change should be available in the latest 'snapshot' build of the plugin that can be downloaded from https://www.igniterealtime.org/projects/openfire/plugin-archive.jsp?plugin=restAPI

We downloaded the plugin from the link you shared, installed the plugin and restarted the server, but we are still seeing the same error message.

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoSuchFieldError: Class org.jivesoftware.openfire.session.Session does not have member field 'org.jivesoftware.openfire.session.Session$Status STATUS_CLOSED'
2024.10.07 17:48:48.544 ERROR [Jetty-QTP-AdminConsole-16374]: org.jivesoftware.openfire.container.PluginServlet - org.glassfish.jersey.server.ContainerException: java.lang.NoSuchFieldError: Class org.jivesoftware.openfire.session.Session does not have member field 'org.jivesoftware.openfire.session.Session$Status STATUS_CLOSED'

@guusdk
Copy link
Member

guusdk commented Oct 8, 2024

Hmm, that is unexpected. Can you please confirm which version you used? It should be 1.11.1-SNAPSHOT.

@Devocity81
Copy link
Author

Hmm, that is unexpected. Can you please confirm which version you used? It should be 1.11.1-SNAPSHOT.

I apologize, the wrong version was installed. After installing the correct version, it is now working as expected. I want to thank you again for resolving this issue so fast, we really appreciate it.

@Devocity81
Copy link
Author

I know this is probably not the correct place to ask this question, I didn't want to ask a question via opening a new issue as it's not an issue. If you could point me to the correct place to ask the following question, I would greatly appreciate it.

We don't use active directory, our users and passwords are managed via a custom implementation. We are looking to for information related to managing users externally directly using the OfUser Jive database table. What encryption is used? How is the Server and Store key calculated and the salt.

Again I know this is not the correct forum for this, any information would be greatly appreciated.

Thanks,
Patrick Shaffer

@akrherz
Copy link
Member

akrherz commented Oct 8, 2024

I know this is probably not the correct place to ask this question,

Ask here https://discourse.igniterealtime.org/

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

Successfully merging a pull request may close this issue.

3 participants