-
Notifications
You must be signed in to change notification settings - Fork 470
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
Fix for IllegalStateException when stopping re-satrting an OSGI plugin with Jersey resources #31185
Comments
Note I think we may have been seeing a similar error message with previous version of Jersey and although we have an exception trace it didn't impact the whole server after restart of the context, The error message seemed to occur from an internal Jersey call that forms part of the request to restart. Unfortunately, we are restricted in bumping jersey up to a higher version without upgrading to tomcat 10 We have someone else here with the same message on an reload of the Jersey context I want to raise this as the issue the customer is having with the server not working after the restart may not be directly related to the exception. We probably need to find the last version removing the plugin breaks the server and we may find the error message is still there, but we can then discover the real cause of the issue unless that version does no longer throw the exception. We should also look at any other indications of a problem in the log around this message
|
What OSGI resource plugin can I use to reproduce this issue? |
…31259) ### Proposed Changes * This comes to fix a jersey bug that leaves the application in a useless state after stopping an OSG plugin * The problem was caused by the ContainerReloader component that we had to restart the Servlet container on the fly. This component shouldn't be a Managed bean so it can survive a restart with no problem. * This ContainerReloader was made singleton, as it used to be before we added CDI * I am removing CdiComponentProvider since it's an internal dependency that is already part of Jersey
Failed IQA
500 after re-uploading a plugin
Note: It can be a plugin issue VideoIQA-OSGI-PART-1.movUnable to
|
Looks like names with spaces are troublesome but that's another issue. Please create another card for that and let's focus on the reload stop problem we had. Thanks! |
Second issue will be handled here: #31348 |
After a conversation with @fabrizzio-dotCMS and due to support requirements, I will create a ticket for each issue found and move this ticket to |
Only for 24.12 LTS |
Problem Statement
User Story
As a software engineer, I want a fix for an issue related to OSGI plugins. When stopping or undeploying an active OSGI plugin with a Jersey resource, dotCMS stops working and requires a full restart. This occurs due to a call to
RestServiceUtil.removeResource(clazz)
that throws anIllegalStateException
.Acceptance Criteria
RestServiceUtil.removeResource(clazz)
from causing anIllegalStateException
when stopping or undeploying OSGI plugins.dotCMS Version
master
Proposed Objective
Customer Support
Proposed Priority
Priority 1 - Show Stopper
External Links
Assumptions & Initiation Needs
master
branch.Quality Assurance Notes & Workarounds
Sub-Tasks & Estimates
IllegalStateException
(3 hours).Steps to Reproduce
dotCMS Version
25.01.15
Proposed Objective
Code Maintenance
Proposed Priority
Priority 2 - Important
Link to Support ticket:
https://dotcms.freshdesk.com/a/tickets/29269
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: