Skip to content

@SubscribeMapping method not called when built as native image #30002

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

Closed
nwholloway opened this issue Feb 20, 2023 · 0 comments
Closed

@SubscribeMapping method not called when built as native image #30002

nwholloway opened this issue Feb 20, 2023 · 0 comments
Assignees
Labels
in: messaging Issues in messaging modules (jms, messaging) theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@nwholloway
Copy link

nwholloway commented Feb 20, 2023

Affects: 6.0.4


I have a simple STOMP application using the simple broker, containing a controller with two methods. One is annotated with @MessageMapping, and one is annotated with @SubscribeMapping.

When compiled as a native image, the subscribe mapping is not called when a client subscribes, and the debug log reports "No matching message handler methods".

I see that #28754 added MessageMappingReflectiveProcessor for @MessageMapping, but there do not appear to be similar changes for the @SubscribeMapping annotation.

It looks as the lack of runtime hints may also affect the @MessageExceptionHandler annotation.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 20, 2023
@sbrannen sbrannen changed the title @SubscribeMapping method not called when built as native image @SubscribeMapping method not called when built as native image Feb 20, 2023
@sbrannen sbrannen added in: messaging Issues in messaging modules (jms, messaging) theme: aot An issue related to Ahead-of-time processing labels Feb 20, 2023
@sdeleuze sdeleuze self-assigned this Feb 20, 2023
@sdeleuze sdeleuze added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 21, 2023
@sdeleuze sdeleuze added this to the 6.0.6 milestone Feb 21, 2023
jhoeller added a commit that referenced this issue Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

4 participants