Skip to content

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

Closed

Description

@murainwood

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

Activity

  1. bclozel commented on Feb 28, 2022

    @bclozel
    Member

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

  2. added
    in: coreIssues in core modules (aop, beans, core, context, expression)
    on Feb 28, 2022
  3. jhoeller commented on Feb 28, 2022

    @jhoeller
    Contributor

    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.

  4. added and removed on Feb 28, 2022
  5. added this to the 5.3.17 milestone on Feb 28, 2022
  6. murainwood commented on Feb 28, 2022

    @murainwood
    Author

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

  7. added a commit that references this issue on Mar 16, 2022
    c1261f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions