ide 调试sqlservercdc_stream.json 脚本 加载不到SqlservercdcSourceFactory类

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, sql
Domain
databases

Research direction

Start with the SQL Server CDC JSON example and trace class loading from com.dtstack.chunjun.util.DataSyncFactoryUtil.java:70, especially discoverSource. Investigate why com.dtstack.chunjun.connector.sqlservercdc.source.SqlservercdcSourceFactory is not found, then verify that the example can resolve the source factory without the reported ClassNotFoundException.

Written by the indexing model from the issue text.

Description

json例子
{
"job" : {
"content" : [ {
"reader" : {
"parameter" : {
"databaseName":"inventory",
"tableList": ["inventory.orders"],
"username" : "sa",
"password" : "Password@,",
"cat" : "insert,delete,update",
"url" : "jdbc:sqlserver://192.168.1.153:1433;databaseName=inventory",
"splitUpdate" : true,
"pavingData" : true,
"pollInterval" : 1000
},
"name" : "sqlservercdcreader"
},
"writer" : {
"parameter" : {
"print" : true
},
"name" : "streamwriter"
}
} ],
"setting" : {
"speed" : {
"bytes" : 0,
"channel" : 1
}
}
}
}
报错信息:
Caused by: java.lang.ClassNotFoundException: com.dtstack.chunjun.connector.sqlservercdc.source.SqlservercdcSourceFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at com.dtstack.chunjun.util.DataSyncFactoryUtil$1.get(DataSyncFactoryUtil.java:70)
at com.dtstack.chunjun.util.DataSyncFactoryUtil$1.get(DataSyncFactoryUtil.java:67)
at com.dtstack.chunjun.classloader.ClassLoaderSupplierCallBack.callbackAndReset(ClassLoaderSupplierCallBack.java:33)
at com.dtstack.chunjun.classloader.ClassLoaderManager.newInstance(ClassLoaderManager.java:72)
at com.dtstack.chunjun.util.DataSyncFactoryUtil.discoverSource(DataSyncFactoryUtil.java:67)

Dominant language
No language data
Stars
55
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DTStack/flinkx

All issues in DTStack/flinkx

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.