-
Notifications
You must be signed in to change notification settings - Fork 1.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
NPE when @ConditionalOnBean is present alongside with the @MessagingGateway #3374
Comments
Please, start from StackOverflow and share as much info as possible. Some code to reproduce would be very useful. We don't handle question here on GH and your description doesn't depict the problem. Thanks for understanding. |
OK. I decided to play with this and realized that issue is like this:
So, the |
artembilan
added a commit
to artembilan/spring-integration
that referenced
this issue
Sep 9, 2020
Fixes spring-projects#3374 An internal `ClassPathScanningCandidateComponentProvider` instance in the `IntegrationComponentScanRegistrar` does not propagate a provided `registry`. * Implement `getRegistry()` on the internal `ClassPathScanningCandidateComponentProvider` to propagate a provided into the `registerBeanDefinitions()` a `BeanDefinitionRegistry` * Add `@Conditional` on some scanned `@MessagingGateway` in the `EnableIntegrationTests` **Cherry-pick to 5.3.x & 5.2.x**
garyrussell
pushed a commit
that referenced
this issue
Sep 11, 2020
* GH-3374: Fix scan for BF propagation Fixes #3374 An internal `ClassPathScanningCandidateComponentProvider` instance in the `IntegrationComponentScanRegistrar` does not propagate a provided `registry`. * Implement `getRegistry()` on the internal `ClassPathScanningCandidateComponentProvider` to propagate a provided into the `registerBeanDefinitions()` a `BeanDefinitionRegistry` * Add `@Conditional` on some scanned `@MessagingGateway` in the `EnableIntegrationTests` **Cherry-pick to 5.3.x & 5.2.x** * * Remove unused import * Restore `unused` warning on the unused registry arg
garyrussell
pushed a commit
that referenced
this issue
Sep 11, 2020
* GH-3374: Fix scan for BF propagation Fixes #3374 An internal `ClassPathScanningCandidateComponentProvider` instance in the `IntegrationComponentScanRegistrar` does not propagate a provided `registry`. * Implement `getRegistry()` on the internal `ClassPathScanningCandidateComponentProvider` to propagate a provided into the `registerBeanDefinitions()` a `BeanDefinitionRegistry` * Add `@Conditional` on some scanned `@MessagingGateway` in the `EnableIntegrationTests` **Cherry-pick to 5.3.x & 5.2.x** * * Remove unused import * Restore `unused` warning on the unused registry arg
garyrussell
pushed a commit
that referenced
this issue
Sep 11, 2020
* GH-3374: Fix scan for BF propagation Fixes #3374 An internal `ClassPathScanningCandidateComponentProvider` instance in the `IntegrationComponentScanRegistrar` does not propagate a provided `registry`. * Implement `getRegistry()` on the internal `ClassPathScanningCandidateComponentProvider` to propagate a provided into the `registerBeanDefinitions()` a `BeanDefinitionRegistry` * Add `@Conditional` on some scanned `@MessagingGateway` in the `EnableIntegrationTests` **Cherry-pick to 5.3.x & 5.2.x** * * Remove unused import * Restore `unused` warning on the unused registry arg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
5.2.x and above
Describe the bug
In Spring Boot application we declare like this:
and get an excpetion at start up:
The text was updated successfully, but these errors were encountered: