apache / apache/doris-flink-connector
[Bug] Thread 'pool-1-streamload-executor-1' produced an uncaught exception. If you want to fail on uncaught exceptions, then configure cluster.uncaught-exception-handling accordingly java.lang.NoClassDefFoundError: org/apache/http/xxx
- Dominant language
- Java
- Stars
- 385
- Forks
- 279
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 6
Description
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
### Version
flink 1.20.1
### What's Wrong?
在Flink上运行任务,每次报错的据图内容都不同,但都是
2025-06-11 18:56:40,895 ERROR org.apache.flink.runtime.util.ClusterUncaughtExceptionHandler [] - WARNING: Thread 'pool-1-streamload-executor-1' produced an uncaught exception. If you want to fail on uncaught exceptions, then configure cluster.uncaught-exception-handling accordingly
java.lang.NoClassDefFoundError: org/apache/http/xxx. 非常确定的是我的jar包不缺少那些类,但就是报错
### What You Expected?
I look forward to running my code normally
### How to Reproduce?
pom :
4.0.0
org.example
stream-demo
1.0-SNAPSHOT
1.20.1
2.12
1.20_2.12-1.4.0
1.8
1.7.36
1.2.12
org.apache.flink
flink-java
${flink.version}
org.apache.flink
flink-clients
${flink.version}
org.apache.flink
flink-connector-base
${flink.version}
org.apache.flink
flink-runtime-web
${flink.version}
org.apache.flink
flink-streaming-java
${flink.version}
org.slf4j
slf4j-log4j12
log4j
log4j
org.apache.flink
flink-table-common
${flink.version}
org.apache.flink
flink-table-api-java
${flink.version}
org.apache.flink
flink-connector-jdbc
3.3.0-1.20
mysql
mysql-connector-java
8.0.28
org.apache.flink
flink-sql-connector-mysql-cdc
3.3.0
org.apache.doris
flink-doris-connector-1.20
24.0.1
org.apache.flink
*
org.scala-lang
*
org.apache.httpcomponents
httpclient
4.5.14
org.apache.httpcomponents
httpcore
4.4.16
org.apache.flink
flink-table-api-java-bridge
${flink.version}
org.apache.flink
flink-table-planner-loader
${flink.version}
*
*
org.apache.flink
flink-table-runtime
${flink.version}
org.apache.flink
flink-json
${flink.version}
org.slf4j
slf4j-api
${slf4j.version}
ch.qos.logback
logback-classic
${logback.version}
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
${java.version}
${java.version}
org.apache.maven.plugins
maven-shade-plugin
3.3.0
package
shade
false
*:*
META-INF/*.SF
META-INF/*.DSA
META-INF/*.RSA
com.example.DorisAggregationJob
### Anything Else?
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
Contributor guide
Research direction
Start with the submitted pom.xml, especially the Doris connector exclusions, Flink table planner loader exclusions, and HTTP client dependencies. Reproduce the Flink job and inspect the packaged dependencies for the class named in the NoClassDefFoundError. Done means the job runs without the uncaught class-loading exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mysql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100