Skip to content

InvalidDataAccessApiUsageException: Parameter value [%...%] did not match expected type #30558

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

Closed
Iceforgedmvp opened this issue Apr 6, 2022 · 1 comment
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue

Comments

@Iceforgedmvp
Copy link

Hi,

after updating from Spring Boot 2.6.4 to 2.6.6 I observe the following issue:

I have a DataSupplierRepository with the method findByNameContainingIgnoreCaseOrderByNameAsc(String). The first call is working but all subsequent calls fail with the following error:

org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [%bbb%] did not match expected type [java.lang.Character (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [%bbb%] did not match expected type [java.lang.Character (n/a)]

I tested it on PostgreSQL and H2 with the same error in both cases. When I remove the "Containing" from the method's name, the problem disappears. I have set up an simple test project where you can execute the unit test DataSupplierRepositoryTest in order to reproduce the error: https://github.com/Iceforgedmvp/containing-bug

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 6, 2022
@scottfrederick
Copy link
Contributor

scottfrederick commented Apr 6, 2022

Duplicate of #30421

@scottfrederick scottfrederick added status: duplicate A duplicate of another issue for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 6, 2022
@scottfrederick scottfrederick marked this as a duplicate of #30421 Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants