Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15325

Groovy script with Google pubsub cannot consume messages

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.0, 3.4.1, 3.4.2
    • Fix Version/s: None
    • Component/s: camel-google-pubsub
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      This issue seems to be scoped to Groovy, at-least per my initial testing. The same code runs correctly in Java. When running this script without the GOOGLE_APPLICATION_CREDENTIALS environment variable set, Camel comes up, but when the same code is run in Java, it correctly fails with the error that GOOGLE_APPLICATION_CREDENTIALS needs to be set.

      Also, messages from pubsub are not being consumed as well, even if the GOOGLE_APPLICATION_CREDENTIALS environment variable set. I have tried it with Camel 3.4.0, 3.4.1 and 3.4.2 and this issue occurs on all three versions.

      Attached is the test script. The project name has been anonymized. Groovy, Java and OS versions are below

      $ groovy --version
      Groovy Version: 3.0.4 JVM: 11.0.6 Vendor: Azul Systems, Inc. OS: Mac OS X

        Attachments

        1. gcp.groovy
          1 kB
          Ramesh Venkitaswaran

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rvenk Ramesh Venkitaswaran
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: