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

fix: prevent exception getting DevModeHandlerManager on application shutdown (#19300) (CP: 24.4) #19306

Merged
merged 1 commit into from
May 6, 2024

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

…hutdown (#19300)

During the destruction of the web applicationi context, the
DevModeStartupListener's context destroy listener is invoked.
This listener attempts to locate the DevModeHandlerManager to
halt the Vaadin dev-server. However, this process could trigger
an exception if the dependency injection container behind the
Lookup mechanism has already been stopped.
This commit addresses the issue by capturing a reference to the
handler during web context start, eliminating the need for a
lookup during destruction, thus preventing potential exceptions.

Fixes #19183
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) May 6, 2024 06:27
Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

github-actions bot commented May 6, 2024

Test Results

1 100 files  1 100 suites   1h 23m 17s ⏱️
7 010 tests 6 961 ✅ 49 💤 0 ❌
7 375 runs  7 314 ✅ 61 💤 0 ❌

Results for commit 54bbb8f.

@vaadin-bot vaadin-bot merged commit 0a20933 into 24.4 May 6, 2024
25 of 26 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-19300-to-24.4-1714976455056 branch May 6, 2024 06:36
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 24.4.0.beta2 and is also targeting the upcoming stable 24.4.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants