Siddhi CDC - class not found errors

120 views
Skip to first unread message

Vinoja

unread,
Aug 4, 2022, 5:02:59 AM8/4/22
to siddhi-dev
Hi,
I got following errors when I run a siddhi CDC app with MySQL. Can I know how to solve those errors?

[2022-08-03 17:55:53,245] ERROR {io.siddhi.core.stream.input.source.Source} - Error on 'cdcTest1'. Connection to the database lost. Error while connecting at Source 'cdc' at 'inputStream'. Will retry in '5 sec'. io.siddhi.core.exception.ConnectionUnavailableException: Connection to the database lost.
    at io.siddhi.extension.io.cdc.source.CDCSource.lambda$connect$1(CDCSource.java:496)
    at io.debezium.embedded.EmbeddedEngine.run(EmbeddedEngine.java:899)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/mysql/cj/jdbc/Driver
    at io.debezium.connector.mysql.MySqlConnectorConfig.<clinit>(MySqlConnectorConfig.java:670)
    at io.debezium.connector.mysql.MySqlConnectorTask.getAllConfigurationFields(MySqlConnectorTask.java:446)
    at io.debezium.connector.common.BaseSourceTask.start(BaseSourceTask.java:38)
    at io.debezium.embedded.EmbeddedEngine.run(EmbeddedEngine.java:793)
    ... 3 more
Caused by: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver cannot be found by siddhi-io-cdc_2.0.5
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:448)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:361)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:353)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
    at java.lang.ClassLoader.loadClass(Unknown Source)



[2022-08-03 17:55:58,313] ERROR {io.siddhi.core.stream.input.source.Source} - Error on 'cdcTest1'. Connection to the database lost. Error while connecting at Source 'cdc' at 'inputStream'. Will retry in '5 sec'. io.siddhi.core.exception.ConnectionUnavailableException: Connection to the database lost.
    at io.siddhi.extension.io.cdc.source.CDCSource.lambda$connect$1(CDCSource.java:496)
    at io.debezium.embedded.EmbeddedEngine.run(EmbeddedEngine.java:899)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.debezium.connector.mysql.MySqlConnectorConfig
    at io.debezium.connector.mysql.MySqlConnectorTask.getAllConfigurationFields(MySqlConnectorTask.java:446)
    at io.debezium.connector.common.BaseSourceTask.start(BaseSourceTask.java:38)
    at io.debezium.embedded.EmbeddedEngine.run(EmbeddedEngine.java:793)

Senthuran Ambalavanar

unread,
Aug 11, 2022, 9:15:16 AM8/11/22
to Vinoja, siddhi-dev
Hi,

Seems you have missed to add the mysql connector. Please follow the instructions on [1]


Thanks,
Senthuran.

--
Siddhi homepage: http://siddhi.io/
Siddhi Github repo: https://github.com/siddhi-io/siddhi
 
You received this message because you are subscribed to the Google Groups "Siddhi-dev" group.
To post to this group, send email to siddh...@googlegroups.com
To unsubscribe from this group, send email to siddhi-dev+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/siddhi-dev?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "siddhi-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to siddhi-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/siddhi-dev/86bc86d6-ff51-4fd3-afea-a855672fcb08n%40googlegroups.com.


--
Senthuran Ambalavanar | Associate Technical Lead | WSO2 Inc.

Vinoja Rathnayake

unread,
Aug 11, 2022, 11:26:02 AM8/11/22
to Senthuran Ambalavanar, siddhi-dev
Ok, will do that. Thank you 
Reply all
Reply to author
Forward
0 new messages