Skip to content

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

Closed
@nwholloway

Description

@nwholloway

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.

Activity

changed the title [-]@SubscribeMapping method not called when built as native image[/-] [+]`@SubscribeMapping` method not called when built as native image[/+] on Feb 20, 2023
added
in: messagingIssues in messaging modules (jms, messaging)
theme: aotAn issue related to Ahead-of-time processing
on Feb 20, 2023
self-assigned this
on Feb 20, 2023
added this to the 6.0.6 milestone on Feb 21, 2023
added a commit that references this issue on Feb 21, 2023
626a7fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sbrannen@sdeleuze@nwholloway@spring-projects-issues

      Issue actions

        `@SubscribeMapping` method not called when built as native image · Issue #30002 · spring-projects/spring-framework