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

Can't inject ManagedExecutor since quarkus 1.6.0 #10963

Closed
parkee opened this issue Jul 24, 2020 · 3 comments · Fixed by #10985
Closed

Can't inject ManagedExecutor since quarkus 1.6.0 #10963

parkee opened this issue Jul 24, 2020 · 3 comments · Fixed by #10985
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@parkee
Copy link

parkee commented Jul 24, 2020

Describe the bug
I'm trying to inject a ManagedExecutor (using Kotlin and injecting into @Singleton bean that extends MutinyExampleServiceGrpc.ExampleServiceImplBase if that matters) and get

Parameter specified as non-null is null: method com.example.Example.<init>, parameter managedExecutor"

I tried both constructor injection as well as field injection via lateinit var

Expected behavior
ManagedExecutor is injected

Actual behavior
ManagedExecutor is not injected to my bean (both 1.6.0.Final and 1.6.1.Final)
But it's injected successfully if I change the version to 1.5.2.Final

@parkee parkee added the kind/bug Something isn't working label Jul 24, 2020
@stuartwdouglas
Copy link
Member

Does your project depend on quarkus-smallrye-context-propagation? I think there were some fixes around this where previously is may have been accidentally included as a transitive dep in 1.5.

@parkee
Copy link
Author

parkee commented Jul 27, 2020

@stuartwdouglas
yes, basically as soon as I switch from 1.6.1 to 1.5.2 version (without any other changes) it starts working as expected, so I suppose my configuration is correct.

@geoand
Copy link
Contributor

geoand commented Jul 27, 2020

@mkouba mkouba self-assigned this Jul 27, 2020
@mkouba mkouba added this to the 1.7.0 - master milestone Jul 27, 2020
mkouba added a commit to mkouba/quarkus that referenced this issue Jul 27, 2020
- deprecate ManagedExecutorInitializedBuildItem
- resolves quarkusio#10963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants