Skip to content

Upgrading to Spring Data JDBC 2.1.3 results in ConverterNotFoundException for String to Duration #959

@dmkeen

Description

@dmkeen

I have a Spring Data repository that returns an object with a Duration field which is stored in the database as a String. In Spring Data JDBC 2.1.2 the object is created and returned successfully. After upgrading to Spring Data JDBC 2.1.3, the following exception is thrown:

org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.time.Duration]

I've created a project that demonstrates the issue here: https://github.com/dmkeen/spring-boot-2.4.2-issue

Because the issue presented itself when upgrading Spring Boot, I filed an issue there first. Scott Frederick helped narrow down the problem - please see his analysis here: spring-projects/spring-boot#25878.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions