Questions tagged [spring-cloud-gcp]

Ask questions about the Spring Cloud GCP project.

Integrations between Google Cloud Platform APIs and Spring.

The Spring Cloud GCP project makes the Spring Framework a first-class citizen of Google Cloud Platform (GCP).

Spring Cloud GCP lets you leverage the power and simplicity of the Spring Framework to:

  • Publish and subscribe to Google Cloud Pub/Sub topics

  • Configure Spring JDBC with a few properties to use Google Cloud SQL

  • Map objects, relationships, and collections with Spring Data Cloud Spanner and Spring Data Cloud Datastore

  • Write and read from Spring Resources backed up by Google Cloud Storage

  • Exchange messages with Spring Integration using Google Cloud Pub/Sub on the background

  • Trace the execution of your app with Spring Cloud Sleuth and Google Stackdriver Trace

  • Configure your app with Spring Cloud Config, backed up by the Google Runtime Configuration API

  • Consume and produce Google Cloud Storage data via Spring Integration GCS Channel Adapters

  • Use Spring Security via Google Cloud IAP

  • Analyze your images for text, objects, and other content with Google Cloud Vision

147 questions
1
vote
1 answer

Spring Cloud Stream + Google Pub/Sup: functional binding not woring

I'm trying to consume multiple Messages from different PubSub Topics in the same Application. One of them is polled the others should be functional bindings. My functional consumers dont work. @Bean public Consumer messageAMessageHandler()…
Laures
  • 5,389
  • 11
  • 50
  • 76
1
vote
0 answers

Spring Cloud GCP is not receiving messages from subscription

I have a trained Chatbot in DialogFlow. I enabled logging for the chatbot and it logs to Google StackDriver. From Google StackDriver, using a log router, I have routed the logs to a Google Cloud Pub-Sub topic. Then, with a subscription, I have…
1
vote
2 answers

io.grpc.StatusRuntimeException: PERMISSION_DENIED: User not authorized to perform this action

I try to implement simple example of spring cloud config + spring cloud bus. So I've implemented Client server application Config server application and in the separated repository I've put application.properties file. Looks like everything is…
1
vote
2 answers

Spring + google cloud: No qualifying bean of type 'com.google.cloud.storage.Storage' available

I am trying to use spring library for google cloud API: spring-cloud-gcp-starter-vision But Spring Application Context fails to load with an error: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean…
1
vote
0 answers

No further traces reported after timeout exception

I integrated spring-cloud-sleuth with GCP support into an application. Under load the app suddenly stops reporting any spans until it is restarted. The only tracing relevant log i can see is the following exception: Unexpected error flushing spans…
Laures
  • 5,389
  • 11
  • 50
  • 76
1
vote
1 answer

IntegrationMBeanExporter.stopActiveComponents() together with gcp pub/sub producer is throwing loads of InterruptedExceptions

We have the following (simplified) flow: -> inbound FILE API reading files from remote server, with fixed poller -> splitter, connected via direct channel -> GCP pub/sub producer, reading messages one by one from splitter and publishing them to GCP…
1
vote
2 answers

Spring boot: push message to specific topic for each request

I am using pub sub integration with spring boot, for which my configuration class look like this: @Configuration public class PubSubConfiguration { @Value("${spring.pubsub.topic.name}") private String topicName; @Bean …
1
vote
1 answer

PubSubInboundChannelAdapter stops to receive messages after 4th message

I've created simplified example which reproduces my real problem. My example accepts from google pub/sub, logs it and send ack back to the Pub/Sub Config: @Slf4j @Configuration public class MyConfig implements FlowSupport { private final…
1
vote
2 answers

Enhance DataSourceProperties configuration bean with KMS provided secret

I want to set the password for the datasource programatically and still use auto configuration of Spring GCP and Spring Data. Background I want to obtain my password as encrypted blob and decrypt it via Google KMS. I read that spring gcp auto…
user3834607
  • 37
  • 1
  • 6
1
vote
0 answers

Google App Engine Mysql Driver not accepting the JDBC url spring cloud gcp

I am trying to deploy spring boot application on Google App Engine using spring cloud gcp. When running locally Mysql JDBL Url formed make a successful connection to Cloud Mysql database in Google Cloud Platform. When the application is deployed…
1
vote
2 answers

How to use Spring Cloud GCP for multiple google projects

For those who knows GCP well, it has some "limitations" about user and permissions control. The Datastore, for example, doesn't have any way to manage user roles of the database itself and it has only the IAM of the plataform. Because of that,…
Lucas Soares
  • 343
  • 1
  • 11
1
vote
1 answer

Connect Java spring project with cloud database

I have created a spring boot project in Java, it works perfectly fine with my local database but I am not able to connect it to my GCP postgres cloud SQL instance. I have followed the below steps:…
Swathi Rai
  • 95
  • 8
1
vote
1 answer

Acknowledge message in Spring Cloud Stream

I decided to go with SCS to avoid having getting stuck with a specific message broker. Having said that, I haven't found a way to acknowledge messages whether automatically or manually, and all I've found is stuff under Spring Cloud GCP like the…
CCC
  • 2,642
  • 7
  • 40
  • 62
1
vote
0 answers

Spring GCP - OneToMany, ManyToOne, ManyToMany in Google Datastore

I'm trying to find a way how to implement OneToMany, ManyToOne, ManyToMany relationships in Spring GCP. According to the reference, there are three ways to represent relationships between entities: embedded, @Descendant and @Reference. And there is…
1
vote
1 answer

AbstractGoogleClient - Application name is not set. Call Builder#setApplicationName

How can i set GCP Application name? 2018-Nov-22 11:18:18.283 WARN [http-nio-8080-exec-9] c.g.a.c.g.s.AbstractGoogleClient - Application name is not set. Call Builder#setApplicationName. I have following constructor in my class. private final…
bhagya perera
  • 73
  • 2
  • 7