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

Deploy-undeploy-deploy-undeploy sequence cause java.lang.NoClassDefFoundError on 2nd #1241

Merged
merged 2 commits into from Aug 30, 2022

Conversation

vavishal
Copy link
Contributor

During undeploy of the application the method org.eclipse.persistence.sessions.factories.SessionManager.destroy is being called and when managers object is empty then it is resulting into the following exception
java.lang.NoClassDefFoundError: ch/qos/logback/core/status/WarnStatus

So in the fix I have added the check for empty managers object

Added testcase at eclipselink/foundation/eclipselink.core.test/src/test/java/org/eclipse/persistence/testing/tests/junit/sessionsxml/SessionManagerTest.java

Signed-off-by: Vaibhav Vishal <vaibhav.vishal@oracle.com>
Signed-off-by: Vaibhav Vishal <vaibhav.vishal@oracle.com>
@rfelcman rfelcman changed the title Bugno33036242 Deploy-undeploy-deploy-undeploy sequence cause java.lang.NoClassDefFoundError on 2nd Aug 16, 2021
Copy link
Member

@lukasj lukasj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lukasj lukasj merged commit b66e865 into eclipse-ee4j:master Aug 30, 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

Successfully merging this pull request may close these issues.

None yet

2 participants