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

Service attempts to find a config value for an unused bean #19388

Closed
mikethecalamity opened this issue Aug 13, 2021 · 3 comments · Fixed by #19965
Closed

Service attempts to find a config value for an unused bean #19388

mikethecalamity opened this issue Aug 13, 2021 · 3 comments · Fixed by #19965
Assignees
Labels
area/config kind/bug Something isn't working
Milestone

Comments

@mikethecalamity
Copy link

Describe the bug

I have a library with multiple beans in it, each containing config values. I also have a service that only injects one of those beans. But at runtime there is an error attempting to find the config value for the bean that is not used in the service.

Note: I'd like to not use default config values so that anyone actually injecting the bean is required to add it to the config.

Expected behavior

Successful run.

Actual behavior

Error find config value for unused bean.

How to Reproduce?

Reproducer: service4 in https://github.com/mweber03/quarkus-test

  1. ./gradlew service4:quarkusBuild
  2. docker build -t service4 -f modules/service4/Dockerfile .
  3. docker run -it -p 8080:8080 service4

Library with beans: lib2

Output of uname -a or ver

Ubuntu 20.04

Output of java -version

OpenJDK 11.0.11

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.1.2

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 7.1.1

Additional information

No response

@mikethecalamity mikethecalamity added the kind/bug Something isn't working label Aug 13, 2021
@famod
Copy link
Member

famod commented Aug 16, 2021

/cc @radcortez

@radcortez
Copy link
Member

@mweber03 There is no service4 branch or service4 folder in the project structure.

@mikethecalamity
Copy link
Author

@radcortez Forgot to push, my bad. It's there now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants