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

Oracle connector may throw NullPointerException when stopped after an unsuccessful startup

XMLWordPrintable

      When the connector starts and reports an error during start-up such as "Unable to register MBean" then during the OracleConnectorTask#doStop method, an unexpected NullPointerException can be thrown and shouldn't:

      [2565-04-09 18:59:42,578] WARN Could not stop task (org.apache.kafka.connect.runtime.WorkerSourceTask:171)
      java.lang.NullPointerException
          at io.debezium.connector.oracle.OracleConnectorTask.doStop(OracleConnectorTask.java:140)
          at io.debezium.connector.common.BaseSourceTask.stop(BaseSourceTask.java:252)
          at io.debezium.connector.common.BaseSourceTask.stop(BaseSourceTask.java:222)
          at org.apache.kafka.connect.runtime.WorkerSourceTask.close(WorkerSourceTask.java:169)
          at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:161)
          at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:187)
          at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:231)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:834)
      

            ccranfor@redhat.com Chris Cranford
            ccranfor@redhat.com Chris Cranford
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: