I am using Gradle and was experiencing the exact same issue.
InvalidPersistentPropertyPath
seems to have been introduced in the latest SNAPSHOT build of spring-data-commons
(1.11.0.BUILD-SNAPSHOT). My project also includes Spring Data JPA which relies on a more stable version (1.11.0.M1). Gradle did some conflict resolution and went with the M1 library, which does not have the new class and resulted in the NoClassDefFoundError
.
For now, I am working around this by telling Gradle to ignore spring-data-commons
as a transitive dependency of JPA so that the SNAPSHOT build being pulled in as a transitive dependency of SDN is used:
compile("org.springframework.data:spring-data-jpa:$springDataJpaVersion") {
exclude group: "org.springframework.data", module: "spring-data-commons"
}
If you're using Gradle, you can check for conflicts using:
./gradlew <project>:dependencies
I think it will be worthwhile to check on the release schedules for each of these projects but for not this workaround is allowing our builds to continue.