Skip to content

消费者接收消息提示转换错误,生产者发送的List<Long>类型的数据 #744

@Myaooooo

Description

@Myaooooo

问题根本没有解决public class RocketOrderTimeoutConsumer implements RocketMQListener<List>
报错误
rocketmq java.lang.RuntimeException: cannot convert message to java.util.List<java.lang.Long>

生产者发送的是orderIds List orderIds= new ArrayList<>();
每次第一次接收都会报错,第二次就不报了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions