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.

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

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions