Closed spring-projects-issues closed 8 years ago
Juergen Hoeller commented
The container is about to create that specific bean though, so wouldn't the NoClassDefFoundError occur at some point anyway? Since it is trying to create a bean of a class for which certain field types cannot be loaded?
Juergen
Hendy Irawan commented
I guess so, although getting the error from spring-orm-jpa might hint a wrong clue...
Juergen Hoeller commented
We're catching NoClassDefFoundErrors now, converting them to an IllegalStateException with a clearer exception message, pointing out the introspection failure on the given bean class.
Juergen
Hendy Irawan commented
Thank you Juergen Hoeller for additional Exception clarity :)
Hendy Irawan opened SPR-12461 and commented
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata()
prevented application startup during its scanning phase, because of a missing related class. Which should be ignored.Affects: 4.0.8
Issue Links:
19449 Improve exception when failing to create a specific bean due to a NoClassDefFoundError