InvalidDataAccessResourceUsageException: No argument for named parameter when using a param multiple times in @Query annotation during the count query in a paged query #3789
Labels
status: duplicate
A duplicate of another issue
There seems to be a bug in version 3.4.3. I experienced it in multiple applications when updating from Spring Boot 3.4.2 to 3.4.3. It seems to be related to the count query in a paged query, but I'm not entirely sure.
When using a query param multiple times in the query in the
@Query
annotation an exception occurs. Here is an example which worked without any issues before and now suddenly throws the exception below:It happened independent of the Hibernate version (in one case 6.4.x and in the other case 6.6.x). Also changing to the Hibernate version specified in 3.4.2 did not solve the issue. I could workaround the issue when using Spring Boot 3.4.3 by forcing spring data to 3.4.2, so I'm pretty sure the origin of the issue is here:
Error does not happen adding this to
build.gradle
:Here is the full stack trace, which hopefully helps to find the root cause of the issue.
The text was updated successfully, but these errors were encountered: