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.IllegalStateException: zip file closed" when call JarFileWrapper.stream() of spring-boot-loader #24017

Closed
wilkinsona opened this issue Nov 3, 2020 · 0 comments
Labels
status: forward-port An issue tracking the forward-port of a change made in an earlier branch type: bug A general bug
Milestone

Comments

@wilkinsona
Copy link
Member

Forward port of issue #23821 to 2.4.x.

@wilkinsona wilkinsona added status: forward-port An issue tracking the forward-port of a change made in an earlier branch type: bug A general bug labels Nov 3, 2020
@wilkinsona wilkinsona added this to the 2.4.0 milestone Nov 3, 2020
humaolin pushed a commit to humaolin/spring-boot that referenced this issue May 7, 2022
Prior to this commit, methods in a @ControllerAdvice bean were
registered and invoked twice if the advice was a scoped bean (e.g.,
request or session scoped). In other words, both the proxy bean and the
target bean were wrapped in ControllerAdviceBean instances.

This commit fixes this bug by modifying the findAnnotatedBeans() method
in ControllerAdviceBean so that it filters out targets of scoped
proxies.

Closes spring-projectsgh-24017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: forward-port An issue tracking the forward-port of a change made in an earlier branch type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant