开发者社区> 问答> 正文

1.1.3版本protocol问题

服务器端和客户端分别使用了canal 1.1.3版本, 解析数据时抛错:Caused by: com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.

清空了rocketMq 的store目录后抛错:Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.

原提问者GitHub用户elfc

展开
收起
云上静思 2023-05-04 12:14:24 194 0
1 条回答
写回答
取消 提交回答
  • 已解决: canal 配置文件canal.mq.flatMessage = false 设置为false即可, 消费程序 RocketMQCanalConnector flatMessage 也设置为false

    原回答者GitHub用户elfc

    2023-05-05 10:33:12
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载