Skip to content

@ControllerAdvice behaving erratically in latest milestones [SPR-15861] #20416

@spring-projects-issues

Description

@spring-projects-issues

Alex opened SPR-15861 and commented

I'm using messaging (websocket) classes with methods annotated with @MessageMapping, with Spring Boot 2.0M3 and I'm experiencing stability issues: my class marked with @ControllerAdvice sometimes is not handling the exceptions and they are instead propagated to the client.

I've also seen the problem where when one Exception is generated by controller A gets correctly handled by the @ControllerAdvice class, while when generated by controller B is not.

This seems to be related to the way the binary is built: some builds works fine, while some others exhibit the problem, so I would suppose that a different ordering of the jars inside the artifact causes the problem.

I'm not able to reproduce it at will right now, sometimes it works, sometimes not, I would like to leave this report open to track the problem and see if someone else runs in it too.


Affects: 5.0 RC3

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions