You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ramesh Venkitaswaran (Jira)" <ji...@apache.org> on 2020/07/22 11:40:00 UTC

[jira] [Created] (CAMEL-15325) Groovy script with Google pubsub cannot consume messages

Ramesh Venkitaswaran created CAMEL-15325:
--------------------------------------------

             Summary: Groovy script with Google pubsub cannot consume messages 
                 Key: CAMEL-15325
                 URL: https://issues.apache.org/jira/browse/CAMEL-15325
             Project: Camel
          Issue Type: Bug
          Components: camel-google-pubsub
    Affects Versions: 3.4.2, 3.4.1, 3.4.0
            Reporter: Ramesh Venkitaswaran
         Attachments: gcp.groovy

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

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






--
This message was sent by Atlassian Jira
(v8.3.4#803005)