AMQ Streams Operator KafkaMirrorMaker2 NullPointerException

Solution Verified - Updated -

Issue

  • AMQ Stream KafkaMirrorMaker2 instance status NotReady with reason NullPointerException.

    status:
      conditions:
        - lastTransitionTime: '2023-02-09T01:16:46.440400Z'
          reason: NullPointerException
          status: 'True'
          type: NotReady
      labelSelector: >-
        strimzi.io/cluster=npe-cluster-mirror-maker-2,strimzi.io/name=npe-cluster-mirror-maker-2-mirrormaker2,strimzi.io/kind=KafkaMirrorMaker2
    
  • Checking KafkaMirrorMaker2 pod logs and found error logs

    2023-02-09 00:56:46 ERROR AbstractOperator:247 - Reconciliation #41(watch) KafkaMirrorMaker2(kafka/npe-cluster-mirror-maker-2): createOrUpdate failed
    java.lang.NullPointerException: null
      at io.strimzi.operator.common.Util.lambda$authTlsHash$6(Util.java:547) ~[io.strimzi.operator-common-0.28.0.redhat-00003.jar:0.28.0.redhat-00003]
    ...omitted...
    2023-02-09 00:56:47 INFO  OperatorWatcher:38 - Reconciliation #42(watch) KafkaMirrorMaker2(kafka/npe-cluster-mirror-maker-2): KafkaMirrorMaker2 npe-cluster-mirror-maker-2 in namespace kafka was MODIFIED
    2023-02-09 00:56:47 INFO  CrdOperator:113 - Reconciliation #41(watch) KafkaMirrorMaker2(kafka/npe-cluster-mirror-maker-2): Status of KafkaMirrorMaker2 npe-cluster-mirror-maker-2 in namespace kafka has been updated
    2023-02-09 00:56:47 WARN  AbstractOperator:532 - Reconciliation #41(watch) KafkaMirrorMaker2(kafka/npe-cluster-mirror-maker-2): Failed to reconcile
    java.lang.NullPointerException: null
      at io.strimzi.operator.common.Util.lambda$authTlsHash$6(Util.java:547) ~[io.strimzi.operator-common-0.28.0.redhat-00003.jar:0.28.0.redhat-00003]
    ...omitted...
    

Environment

  • Red Hat AMQ Streams
    • 2.3
  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift on AWS (ROSA)
    • 4
  • Red Hat OpenShift Dedicated (OSD)
    • 4
  • Azure Red Hat OpenShift (ARO)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content