Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5803

NullPointerException thrown during snapshot when Expression Filter is enabled at source database

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.9.6.Final
    • oracle-connector
    • None
    • False
    • None
    • False

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      Debezium oracle connector 1.9.6.Final

      What is the connector configuration?

      "name": "_DebeziumSource_375""config": {    "connector.class": "io.debezium.connector.oracle.OracleConnector",    "database.user": "*******",    "database.dbname": "*****",    "tasks.max": "1",    "database.history.kafka.topic": "history_375",    "database.history.kafka.bootstrap.servers": "******",    "database.server.name": "_server_375",    "event.processing.failure.handling.mode": "fail",    "column.include.list": "******",    "log.mining.strategy": "online_catalog",    "database.port": "*****",    "decimal.handling.mode": "string",    "database.hostname": "*******",    "database.password": "6QAwUcVS43",    "name": "_DebeziumSource_375",    "table.include.list": "*********",    "snapshot.mode": "initial"  },  "tasks": [{ "connector": "_DebeziumSource_375", "task": 0 }],  "type": "source"}
       

      What is the captured database version and mode of depoyment?

      (E.g. on-premises, with a specific cloud provider, etc.)

      oracle 11g logminer

      What behaviour do you expect?

      Snapshot should be done successfully

      What behaviour do you see?

      NullpointException was thrown.

      Do you see the same behaviour using the latest relesead Debezium version?

      (Ideally, also verify with latest Alpha/Beta/CR version)

      have not tested yet

      Do you have the connector logs, ideally from start till finish?

      (You might be asked later to provide DEBUG/TRACE level log)

      2022-10-14 11:09:53,332] INFO Snapshot - Final stage (io.debezium.pipeline.source.AbstractSnapshotChangeEventSource:88)
      [2022-10-14 11:09:53,332] ERROR Producer failure (io.debezium.pipeline.ErrorHandler:35)io.debezium.DebeziumException: java.lang.NullPointerException         at io.debezium.pipeline.source.AbstractSnapshotChangeEventSource.execute(AbstractSnapshotChangeEventSource.java:85)         at io.debezium.pipeline.ChangeEventSourceCoordinator.doSnapshot(ChangeEventSourceCoordinator.java:155)         at io.debezium.pipeline.ChangeEventSourceCoordinator.executeChangeEventSources(ChangeEventSourceCoordinator.java:137)         at io.debezium.pipeline.ChangeEventSourceCoordinator.lambda$start$0(ChangeEventSourceCoordinator.java:109)         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)         at java.util.concurrent.FutureTask.run(FutureTask.java:266)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)         at java.lang.Thread.run(Thread.java:748)Caused by: java.lang.NullPointerException         at io.debezium.connector.oracle.OracleSnapshotChangeEventSource.createSchemaChangeEventsForTables(OracleSnapshotChangeEventSource.java:230)         at io.debezium.relational.RelationalSnapshotChangeEventSource.doExecute(RelationalSnapshotChangeEventSource.java:121)         at io.debezium.pipeline.source.AbstractSnapshotChangeEventSource.execute(AbstractSnapshotChangeEventSource.java:76)         ... 8 more

      How to reproduce the issue using our tutorial deployment?

      set up source database with Rule Manager and Expression Filter

      when the following table in the database, NPE will be thrown when executing snapshot

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      <Your answer>

      Implementation ideas (optional)

      <Your answer>

              ccranfor@redhat.com Chris Cranford
              ayanerumoe Adams Tim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: