Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: org/springframework/cglib/beans/BeanMapEmitter #28110

Closed
murainwood opened this issue Feb 28, 2022 · 3 comments
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: regression A bug that is also a regression
Milestone

Comments

@murainwood
Copy link

Affects: <Spring Framework version>


Hi:
After we upgrade to spring boot 2.5.10 (spring-core 5.3.16), when invoke following method

org.springframework.cglib.beans.BeanMap.create(BeanMap.java:68)

got the the exception

java.lang.NoClassDefFoundError: org/springframework/cglib/beans/BeanMapEmitter

Checking the jar of spring-core-5.3.16, seems the class BeanMapEmitter was miss

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 28, 2022
@bclozel
Copy link
Member

bclozel commented Feb 28, 2022

This looks related to #27802. I'm not sure why BeanMap is referring to the now excluded BeanMapEmitter type.

@bclozel bclozel added the in: core Issues in core modules (aop, beans, core, context, expression) label Feb 28, 2022
@jhoeller
Copy link
Contributor

jhoeller commented Feb 28, 2022

This seems like an accidental exclude of BeanMap* over just BeanMap, as part of the patch that we're applying for JDK 17 compatibility now. Sorry for the oversight, I'll fix this for 5.3.17.

@jhoeller jhoeller added type: regression A bug that is also a regression and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 28, 2022
@jhoeller jhoeller added this to the 5.3.17 milestone Feb 28, 2022
@murainwood
Copy link
Author

@jhoeller Wow, thanks a lot!
So, I'm keeping springboot 2.5.9 (with spring core 5.3.15) now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

4 participants