-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Failed to bind as java.util.concurrent.ThreadPerTaskExecutor is unsupported. #4826
Comments
I just noticed there is a second log just after that seems to be also link to Java 21: |
Ran into the same issue. Seems that the Java 21 |
Which executor metrics specifically are you interested in with a |
@shakuzen no idea, I just want this warning to disappear and Micrometer to work as usual. |
What do you mean by work as usual? The log message is making you aware something is trying to monitor an ExecutorService that is not supported. There will be no corresponding metrics but nothing is broken, per se. If you don't want the warning log, don't call Are you configuring this yourself or is some library/framework trying to do this? If the latter, probably that library/framework should be updated to not do this with |
I'm using Micronaut. |
By reading the source for both |
It seems it's been fixed here: micronaut-projects/micronaut-micrometer#679 |
OK, let's close it. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@angulito that's not really related to this issue. It would have been better to comment on that pull request. I've left a review on it now. |
Describe the bug
Micrometer ExecutorServiceMetrics class logs a warning
Failed to bind as java.util.concurrent.ThreadPerTaskExecutor is unsupported.
when runs in Java 21.Environment
Expected behavior
No warning logs should be visible in the console.
The text was updated successfully, but these errors were encountered: