canal deployed successfully,but can't be started in java client

83qze16e  于 2021-12-03  发布在  Java
关注(0)|答案(1)|浏览(232)

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

2guxujil

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.

相关问题