Skip to content

EventListenerMethodProcessor resolves classes (by MethodIntrospector) of lazy beans causing NoClassDefFoundError [SPR-14330] #18902

Closed
@spring-projects-issues

Description

@spring-projects-issues

David Rain opened SPR-14330 and commented

After upgrading from 4.1.x to 4.2.5 and 4.2.6 we encounter the same problem mentioned in #17619.
It seems it still persist... in another piece of code.
org.springframework.context.event.EventListenerMethodProcessor#processBean calls MethodIntrospector#selectMethods which in turn calls ReflectionUtils#doWithMethods. In this method there's a call to getDeclaredMethods which fires NoClassDefFoundError (during reflection) even on lazy beans. This in turn wraps to BeanInitializationException and is fired out.


Affects: 4.2.6

Issue Links:

Referenced from: commits 2fd691b, f657952

Backported to: 4.2.7

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions