Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-8361

Kubernetes Discovery Add-on throwing ArrayIndexOutOfBoundsException without an apparent reason

    XMLWordPrintable

Details

    • False
    • None
    • False
    • ---
    • ---

    Description

      When working on a regular SW application, we can sometimes see this ERROR in the log:

      2022-12-14 09:43:07,719 ERROR [org.kie.kog.add.qua.k8s.par.KubeURI] (main) the provided URI kubernetes is not valid
      2022-12-14 09:43:07,719 ERROR [org.kie.kog.add.qua.k8s.KubeDiscoveryConfigSourceInterceptor] (main) Service Discovery has failed: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
              at org.kie.kogito.addons.quarkus.k8s.parser.KubeURI.<init>(KubeURI.java:50)
      

      The ERROR scares users since there's no indication of what is failing. Which provided URI kubernetes is not valid?

      I couldn't find in my project a single valid kubernetes URI in my application properties, which is simple and has only one property defined:

      quarkus.devservices.enabled=false
      

      You can see a reproducer in this PR (see the integration-tests module): https://github.com/kiegroup/kogito-runtimes/pull/2689

      Attachments

        Issue Links

          Activity

            People

              hbelmiro@redhat.com Helber Belmiro
              rhn-support-zanini Ricardo Zanini Fernandes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: