litiliu opened a new issue, #8539: URL: https://github.com/apache/seatunnel/issues/8539
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened The NPE was thrown when running within the local IDE, the PG version is 17. My maven dependencies of seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml ``` <dependency> <groupId>org.apache.seatunnel</groupId> <artifactId>connector-cdc-postgres</artifactId> <version>${revision}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql --> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.7.5</version> </dependency> ``` ### SeaTunnel Version 2.3.9 ### SeaTunnel Config ```conf { "env": { "job.mode": "STREAMING", "parallelism": 1 }, "source": [ { "plugin_name": "Postgres-CDC", "base-url": "jdbc:postgresql://localhost:4000/postgres?loggerLevel=OFF", "username": "un", "password": "pd", "table-names": ["postgres.up.test_cdc"], "schema-names": ["up"], "database-names": ["postgres"], "exactly_once": false } ], "sink": [ { "plugin_name": "Console" } ] } ``` ### Running Command ```shell src/main/java/org/apache/seatunnel/example/flink/v2/SeaTunnelApiExample.java ``` ### Error Exception ```log Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Read split SnapshotSplit(tableId=postgres.udp.test_cdc, splitKeyType=null, splitStart=null, splitEnd=null, lowWatermark=null, highWatermark=null) error due to java.lang.NullPointerException. at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.checkReadException(IncrementalSourceScanFetcher.java:216) ~[classes/:?] at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.pollSplitRecords(IncrementalSourceScanFetcher.java:117) ~[classes/:?] at org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceSplitReader.fetch(IncrementalSourceSplitReader.java:75) ~[classes/:?] at org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.FetchTask.run(FetchTask.java:54) ~[connector-file-s3-2.3.9-SNAPSHOT.jar:2.3.9-SNAPSHOT] at org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:162) ~[connector-file-s3-2.3.9-SNAPSHOT.jar:2.3.9-SNAPSHOT] ... 7 more Caused by: io.debezium.DebeziumException: java.lang.NullPointerException at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.execute(PostgresSnapshotSplitReadTask.java:112) ~[classes/:?] at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotFetchTask.execute(PostgresSnapshotFetchTask.java:65) ~[classes/:?] at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.lambda$submitTask$0(IncrementalSourceScanFetcher.java:96) ~[classes/:?] ... 6 more Caused by: java.lang.NullPointerException at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.createDataEventsForTable(PostgresSnapshotSplitReadTask.java:183) ~[classes/:?] at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.createDataEvents(PostgresSnapshotSplitReadTask.java:170) ~[classes/:?] at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.doExecute(PostgresSnapshotSplitReadTask.java:136) ~[classes/:?] at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.execute(PostgresSnapshotSplitReadTask.java:107) ~[classes/:?] at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotFetchTask.execute(PostgresSnapshotFetchTask.java:65) ~[classes/:?] at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.lambda$submitTask$0(IncrementalSourceScanFetcher.java:96) ~[classes/:?] ``` ### Zeta or Flink or Spark Version Flink 1.18.1 ### Java or Scala Version java 11 ### Screenshots _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) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
