Skip to content

java.lang.ClassNotFoundException: org.springframework.data.mapping.model.MappingException [DATACMNS-1272] #1710

@spring-projects-issues

Description

@spring-projects-issues

Akram opened DATACMNS-1272 and commented

Looking at the spring-data-commons-1.13.10.RELEASE vs spring-data-commons-2.0.5.RELEASE, it looks like MappingException class has been moved from org.springframework.data.mapping.model.MappingException to org.springframework.data.mapping.MappingException which causes lots of applications to fail if they have any dependency on spring-data-commons older than 2.0.x

Currently I want to test Spring Boot 2.0.0.RC2 but I'm adding a library that has a dependency on spring-data-commons-1.13.10.RELEASE, and on loading context I get the following exception:

Caused by: java.lang.ClassNotFoundException: org.springframework.data.mapping.model.MappingException
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

Affects: 2.0.5 (Kay SR5)

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supportstatus: declinedA suggestion or change that we don't feel we should currently applytype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions