The canal is running with docker ,and i can also ping the port successfully,but can't be started in java client.
Exception in thread "main" java.lang.NoClassDefFoundError: com/alibaba/otter/canal/protocol/exception/CanalClientException
at com.alibaba.otter.canal.client.CanalConnectors.newSingleConnector(CanalConnectors.java:31)
at org.example.CanalTest.main(CanalTest.java:10)
Caused by: java.lang.ClassNotFoundException: com.alibaba.otter.canal.protocol.exception.CanalClientException
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 2 more
1条答案
按热度按时间2guxujil1#
I found the reason ,it's caused by the version ...
but why there is so much classes decrease in version 1.1.5?
The mirror I choosed is aliyunmirror.