Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-406

Warning NullPointerException on command succeeded event to listener

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 1.15.0
    • Affects Version/s: None
    • Component/s: CDC, Source
    • None
    • Java Drivers

      MongoDB Version: 4.2.6 Community

      Connector Version: 1.11.2

       

      [WARN] 2024-03-18 13:15:14,423 [task-thread-DEV-mongodb-usersv2-connector-0] org.mongodb.driver.protocol.event warn - Exception thrown raising command succeeded event to listener com.mongodb.kafka.connect.source.MongoSourceTask$1@7476d570
      java.lang.NullPointerException
              at com.mongodb.kafka.connect.util.ResumeTokenUtils.lambda$getResponseOffsetSecs$2(ResumeTokenUtils.java:107)
              at java.base/java.util.Optional.map(Optional.java:265)
              at com.mongodb.kafka.connect.util.ResumeTokenUtils.getResponseOffsetSecs(ResumeTokenUtils.java:105)
              at com.mongodb.kafka.connect.source.MongoSourceTask.mongoCommandSucceeded(MongoSourceTask.java:250)
              at com.mongodb.kafka.connect.source.MongoSourceTask$1.commandSucceeded(MongoSourceTask.java:122)
              at com.mongodb.internal.connection.ProtocolHelper.sendCommandSucceededEvent(ProtocolHelper.java:306)
              at com.mongodb.internal.connection.LoggingCommandEventSender.sendSucceededEvent(LoggingCommandEventSender.java:150)
              at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:418)
              at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:337)
              at com.mongodb.internal.connection.UsageTrackingInternalConnection.sendAndReceive(UsageTrackingInternalConnection.java:116)
              at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.sendAndReceive(DefaultConnectionPool.java:643)
              at com.mongodb.internal.connection.CommandProtocolImpl.execute(CommandProtocolImpl.java:71)
              at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:240)
              at com.mongodb.internal.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:226)
              at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:126)
              at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:116)
              at com.mongodb.internal.connection.DefaultServer$OperationCountTrackingConnection.command(DefaultServer.java:345)
              at com.mongodb.internal.operation.QueryBatchCursor.lambda$getMore$1(QueryBatchCursor.java:290)
              at com.mongodb.internal.operation.QueryBatchCursor$ResourceManager.executeWithConnection(QueryBatchCursor.java:532)
              at com.mongodb.internal.operation.QueryBatchCursor.getMore(QueryBatchCursor.java:286)
              at com.mongodb.internal.operation.QueryBatchCursor.tryHasNext(QueryBatchCursor.java:239)
              at com.mongodb.internal.operation.QueryBatchCursor.lambda$tryNext$0(QueryBatchCursor.java:222)
              at com.mongodb.internal.operation.QueryBatchCursor$ResourceManager.execute(QueryBatchCursor.java:417)
              at com.mongodb.internal.operation.QueryBatchCursor.tryNext(QueryBatchCursor.java:221)
              at com.mongodb.internal.operation.ChangeStreamBatchCursor$3.apply(ChangeStreamBatchCursor.java:107)
              at com.mongodb.internal.operation.ChangeStreamBatchCursor$3.apply(ChangeStreamBatchCursor.java:103)
              at com.mongodb.internal.operation.ChangeStreamBatchCursor.resumeableOperation(ChangeStreamBatchCursor.java:200)
              at com.mongodb.internal.operation.ChangeStreamBatchCursor.tryNext(ChangeStreamBatchCursor.java:103)
              at com.mongodb.client.internal.MongoChangeStreamCursorImpl.tryNext(MongoChangeStreamCursorImpl.java:87)
              at com.mongodb.kafka.connect.source.StartedMongoSourceTask.getNextBatch(StartedMongoSourceTask.java:594)
              at com.mongodb.kafka.connect.source.StartedMongoSourceTask.pollInternal(StartedMongoSourceTask.java:213)
              at com.mongodb.kafka.connect.source.StartedMongoSourceTask.poll(StartedMongoSourceTask.java:190)
              at com.mongodb.kafka.connect.source.MongoSourceTask.poll(MongoSourceTask.java:172)
              at org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.poll(AbstractWorkerSourceTask.java:488)
              at org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.execute(AbstractWorkerSourceTask.java:360)
              at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:229)
              at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:284)
              at org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.run(AbstractWorkerSourceTask.java:80)
              at org.apache.kafka.connect.runtime.isolation.Plugins.lambda$withClassLoader$1(Plugins.java:237)
              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:829)
       

            Assignee:
            vijendra.purohit@mongodb.com Vijendra Purohit
            Reporter:
            matteo.gazzetta@bitrock.it Matteo Gazzetta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: