欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

java.io.IOException: end of stream when reading header 异常 #238

程序员文章站 2022-04-19 13:36:35
场景:2020-06-28 12:36:19.240 ERROR 32 — [ main] c.l.p.canal.controller.CanalListence :canal连接失败:java.io.IOException: end of stream when reading headercom.alibaba.otter.canal.protocol.exception.CanalClientException: java.io.IOException: end of...

场景:

2020-06-28 12:36:19.240 ERROR 32 — [ main] c.l.p.canal.controller.CanalListence :canal连接失败:java.io.IOException: end of stream when reading header
com.alibaba.otter.canal.protocol.exception.CanalClientException: java.io.IOException: end of stream when reading header
at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.doConnect(SimpleCanalConnector.java:178) ~[canal.client-1.0.25.jar:na]
at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.connect(SimpleCanalConnector.java:102) ~[canal.client-1.0.25.jar:na]
at com.landi.pumper.canal.controller.CanalListence.run(CanalListence.java:111) ~[pumper-canal-1.0.1.jar:na]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:813) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:797) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:324) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at com.landi.pumper.canal.CanalApplication.main(CanalApplication.java:12) [pumper-canal-1.0.1.jar:na]
Caused by: java.io.IOException: end of stream when reading header
at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.read(SimpleCanalConnector.java:401) ~[canal.client-1.0.25.jar:na]
at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.readNextPacket(SimpleCanalConnector.java:389) ~[canal.client-1.0.25.jar:na]
at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.readNextPacket(SimpleCanalConnector.java:373) ~[canal.client-1.0.25.jar:na]
at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.doConnect(SimpleCanalConnector.java:140) ~[canal.client-1.0.25.jar:na]
… 8 common frames omitted

canal就连不上了,一直报错:原因端口变更配置文件(canal.properties)未改

java.io.IOException: end of stream when reading header 异常 #238

本文地址:https://blog.csdn.net/wbh_g0d/article/details/107253849