I have created a repro project from your StackOverflow question and indeed such exception is raised, but the stacktrace seems to be at Spring Data Commons level which calls directly Kotlin API so I am going to move this issue to DATACMS
We attempt to look up the preferred constructor for Kotlin classes during initialization. The Kotlin class has multiple constructors but no primary constructor. Since we relied on Kotlin's primary constructor lookup, this lookup failed.
We will fall back to the no-args constructor in such cases