-
Notifications
You must be signed in to change notification settings - Fork 246
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
Exception is logged when Java VM is shutting down #2303
Comments
I am seeing the same issue with CDK CLI 1.71.0 (build 953bc25) |
I am seeing the same issue with downgrading even to CLI 1.40.0 |
I also face the same issue. |
Same issue her CLI version - 1.75.0 (build 7708242) |
Same here, but my stacks still launch successfully AWS CLI version - aws-cli/2.0.62 Python/3.7.4 Darwin/18.7.0 exe/x86_64 |
Same issue, and same result as @timmattison. Also, it appears intermittently. The Stack does get built and deployed successfully. |
Very strange issue |
I started receiving this today, it appears to run when maven runs tests. |
Hey! Thanks for reporting! It appears the de-registering method cannot be called during VM shutdown, causing this stack trace to be logged. It should not affect your application's ability to run correctly and can be ignored until we release an updated version of the runtime which no longer attempts the illegal operation. |
@all-contributors add @majasb for bug |
I've put up a pull request to add @majasb! 🎉 |
Guards against the `IllegalStateException` that will be thrown upon attempting to remove a shutdown hook during VM shut down. In such cases, the removal is no longer possible nor necessary, so the exception can be safely ignored. Fixes #2303
Adds @majasb as a contributor for bug. This was requested by RomainMuller [in this comment](#2303 (comment))
Guards against the `IllegalStateException` that will be thrown upon attempting to remove a shutdown hook during VM shut down. In such cases, the removal is no longer possible nor necessary, so the exception can be safely ignored. Fixes #2303 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
|
Exception is logged when Java VM is shutting down.
Reproduction Steps
Kotlin unit test synthesizing an empty app:
What did you expect to happen?
No stacktrace logged.
What actually happened?
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: