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
0 answers

403 Access denied, forbidden, when accessing google storage from google kubernetes engine with spring-cloud-gcp

I am using the spring-cloud-gcp library running in the google kubernetes engine for the access of google cloud storage buckets. It should be using the default credentials of the kubernetes engine service account. The access of creation of buckets or…
1
vote
0 answers

Unable to Retry Immediately in GCP for pub/sub Service Accounts

I am new to GCP pub/sub and am trying to get everything setup. I am facing a permission error when creating a subscription topic. Does anyone know what I am missing in my steps, or how to resolve? Here is what I have done so far. Add roles, Service…
1
vote
0 answers

Spring Stream with GCP Consumer Only keep project running without web app | Only consumer app shutdown

Want to keep Spring boot pubsub stream application running without Web server (tomcat). Application works great with Tomcat(spring-boot-starter-web) but If I remove web support it is not keep listing to but…
Ravi Parekh
  • 5,253
  • 9
  • 46
  • 58
1
vote
1 answer

Spring Cloud Function GCP exclude for Spring Cloud Stream for PubSub

I combine both Spring Cloud Function for GCP and Spring Cloud Stream for PubSub in the same project. I have one function which is an entrypoint for GCP CF defined in my properties spring.cloud.function.definition=gcpFunction I bridge the result of…
1
vote
1 answer

Problem with GCP Secret Manager and Spring Boot app

Spring Boot (2.5.9) has problem to access password from the GCP Secret Manager using spring-cloud-gcp-starter-secretmanager ver 2.0.8 throwing error AnnotationConfigApplicationContext : Exception encountered during context initialization -…
JackTheKnife
  • 3,795
  • 8
  • 57
  • 117
1
vote
2 answers

NoSuchMethodError with Guava , GCP Cloud Storage & Datastax

java.lang.NoSuchMethodError: com.google.common.io.ByteStreams.exhaust(Ljava/io/InputStream;)J Getting above error msg , when using Guava - 18.0v with Cloud Storage - 2.2.2v: com.google.cloud
1
vote
2 answers

Error with Spring Boot app in Google Cloud Build - Creates working version but reports failed build

I have a Java Spring Boot app that was previously building well, and we are now having issues. We are using GCP, and the cloud build feature to trigger builds automatically when we push to certain branches in GCP. The goal is for the app to build…
1
vote
2 answers

ALPN unsupported - error while consuming Google pub-sub messages in Spring Boot application

We are developing a Spring Boot application which subscribed to a Google pub-sub topic. Below is my code - pom.xml which has GCP-Spring Boot related dependencies org.springframework.boot
1
vote
0 answers

com.google.datastore.v1.client.DatastoreException: no matching index found

I am using Spring cloud to connect and read data from filestore (using Cloud Firestore in Native mode). Pom.xml org.springframework.cloud
1
vote
1 answer

Accessing GCP secret key with /actuator/refresh endpoint in spring boot

I am accessing GCP secret key in Spring boot config Server / Client with 'sm://' and it's working perfectly when application started. Now I am invoking '/actuator/refresh' endpoint.. here application failed to bind the property specified for secret…
1
vote
1 answer

Optimizing connection to GCP mysql from cloud run service?

I have a spring boot application running on cloud run, so far I only had to add the spring cloud gcp mysql org.springframework.cloud spring-cloud-gcp-starter-sql-mysql
1
vote
0 answers

EntityManager Bean creation exception only with ShadowJar, java.lang.IllegalArgumentException: Not a parameterized type. With Apache Beam libraries

I am getting the following error on entityManager bean creation, only when I am running a shadowJar. bootJar or bootRun doesn't give any exception; it works fine. I need to create a shadow…
1
vote
1 answer

Spring Cloud GCP PubSub DLQ (dead letter queue) using Spring Integration

I'm currently integrating PubSub using the following approach https://docs.spring.io/spring-cloud-gcp/docs/1.2.4.BUILD-SNAPSHOT/reference/html/#spring-integration Basically I'm subscribed to a topic, I receive the message and do something with it. I…
1
vote
0 answers

inheritance for spring-cloud-gcp-data-firestore

I am trying to implement a save and read operation to google firestore using spring-cloud-gcp-data-firestore, but the POJO has a property that uses inheritance and of course can be several type. When i try to read the document, the library throws…
1
vote
1 answer

Unable to attach subscriber to BroadCastingDispatcher in Spring Integration

Following this example at Bootiful GCP: Integration with Google Cloud Pub/Sub (4/8), I was trying to build a flow where I read from Google Pubsub subscription and write to another topic. After starting my application on DEBUG mode, I can see that…
1 2
3
9 10