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

Do not try to list synthetic injection points in "inactive bean" errors #44336

Merged

Commits on Nov 6, 2024

  1. Do not try to list synthetic injection points in "inactive bean" errors

    Attempting to list them results in an error message such as:
    
    ```
    04:07:27,906 INFO  [app] Caused by: io.quarkus.runtime.configuration.ConfigurationException: Unable to find datasource '<default>' for persistence unit 'default-reactive': Bean is not active: SYNTHETIC bean [class=io.vertx.pgclient.PgPool, id=WVL9cdM2vfa8AHSEpmajClhheoQ]
    04:07:27,906 INFO  [app] Reason: Datasource '<default>' was deactivated automatically because its URL is not set. To activate the datasource, set configuration property 'quarkus.datasource.reactive.url'. Refer to https://quarkus.io/guides/datasource for guidance.
    04:07:27,906 INFO  [app] To avoid this exception while keeping the bean inactive:
    04:07:27,906 INFO  [app] 	- Configure all extensions consuming this bean as inactive as well, if they allow it, e.g. 'quarkus.someextension.active=false'
    04:07:27,906 INFO  [app] 	- Make sure that custom code only accesses this bean if it is active
    04:07:27,907 INFO  [app] 	- Inject the bean with 'Instance<io.vertx.pgclient.PgPool>' instead of 'io.vertx.pgclient.PgPool'
    04:07:27,907 INFO  [app] This bean is injected into:
    04:07:27,907 INFO  [app] 	-
    04:07:27,907 INFO  [app] 	at io.quarkus.hibernate.orm.runtime.PersistenceUnitUtil.unableToFindDataSource(PersistenceUnitUtil.java:115)
    ```
    
    See the empty list item after "This bean is injected into"?
    yrodiere committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    f459659 View commit details
    Browse the repository at this point in the history