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

Conflicting ConversionService #295

Closed
barthofu opened this issue May 23, 2023 · 1 comment · Fixed by #296
Closed

Conflicting ConversionService #295

barthofu opened this issue May 23, 2023 · 1 comment · Fixed by #296
Labels
bug Something isn't working

Comments

@barthofu
Copy link

Hello,

I suddenly got this error while starting the app:

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 1 of constructor in com.turkraft.springfilter.boot.FilterConversionServiceConfiguration required a single bean, but 2 were found:
	- mvcConversionService: defined by method 'mvcConversionService' in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]
	- integrationConversionService: defined in null


Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed

I tried to narrow down any potential new or updated dependency that could cause this conflict but as I work in a big team and haven't been on the project for a while it's quite complicated... Also i'm not that familiarized with Spring Boot and all its Bean system.

It maaay be caused by the spring-integration-core library, but this one has been on the project since longer than spring-filter, and haven't been updated since so it's quite weird...

I haven't updated springfilter since it was working, and i then tried to update from 3.0.7 to 3.1.0 but it didn't solve the problem.

Any idea?


Versions:

springfilter: 3.1.0
spring boot: latest
java: 18

@torshid torshid added the bug Something isn't working label May 23, 2023
@torshid
Copy link
Member

torshid commented May 23, 2023

Seems like you have another ConversionService (integrationConversionService) coming from somewhere else which causes the issue. Anyways, the problem should be solved in https://github.com/turkraft/springfilter/releases/tag/3.1.1.

Feel free to reopen if the issue persists.

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

Successfully merging a pull request may close this issue.

2 participants