Skip to content

MappingJackson2MessageConverter fails with null pointer in Native mode #30975

@MatejNedic

Description

@MatejNedic

Hello,
Possible enhancement?
When using MappingJackson2MessageConverter to convert payload to Message type I have noticed that in native mode MappingJackson2MessageConverter is failing when calling:
public final Message<?> toMessage(Object payload, @Nullable MessageHeaders headers) {
Only way to fix this is to provide reflection hints for class which is sent in method as Object payload.
Is this normal behaviour?

Related to awspring/spring-cloud-aws#856 providing Native hints for Spring Cloud AWS SQS integration.

I can provide example if needed.

Edit: Since it uses reflection under the hood it kinda makes sense that given class needs to be enabled for reflection?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions