Questions tagged [spring-cloud]

Spring Cloud provides tools to quickly build common patterns in distributed systems (e.g. configuration management, service discovery, circuit breaker, intelligent routing, micro-proxy, control bus, global locks, leadership election, distributed sessions). Coordination of these systems leads to boiler plate patterns, and using Spring Cloud you can quickly create applications that implement those patterns.

Filter by
Sorted by
Tagged with
1 vote
1 answer
18 views

Spring Cloud Stream Kinesis Binder 4.0 doesn't support Multi Stream with KCL 2 Enabled

KCL 2 allows multi stream support with the same consumer group in the same application. With cloud stream kinesis binder 4.0, kpl-kcl-enabled: true A single stream in the destination works. bindings: ...
siddharth 's user avatar
0 votes
0 answers
12 views

spring cloud with common trustore for kafka in configs

I have spring-config-server inside which there is main/resources/configs/app1 main/resources/configs/app2 main/resources/configs/app3 And inside each folder there are different settings like app1-...
Dred's user avatar
  • 1,066
0 votes
2 answers
8 views

Spring cloud dataflow's dashboard not found - 404

i'm trying to create a spring cloud dataflow server v2.10.3, but when i run the project i can't access the dashboard, it gives me an 404 error... here is my main class : @EnableDataFlowServer @...
Fahd's user avatar
  • 1
-1 votes
0 answers
27 views

TraceID for a request is not travelling between services( Using the Same Trace ID in Zipkin with Spring Boot 3.1.2 and Spring Cloud 2022.0.4 )

I'm working with Spring Boot 3.1.2 and Spring Cloud 2022.0.4, and I'm measuring metrics with an Eureka Server and Zipkin. However, I've noticed that requests I make to the customer service in Zipkin ...
kemalyuksel's user avatar
-1 votes
1 answer
61 views

com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException: dynamic-datasource can not find primary datasource

com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException: dynamic-datasource can not find primary datasource at com.baomidou.dynamic.datasource.DynamicRoutingDataSource....
夜初尘's user avatar
0 votes
0 answers
20 views

Invalid Config Server

bootstrap.yml:> server: port: 8888 spring: cloud: config: server: native: search-locations: classpath:/microservice profiles: active: native pom.xml:> &...
FGY's user avatar
  • 77
0 votes
0 answers
35 views

Is there a way to make spring ignore the "not compatible spring cloud version" problem

I have reached a bit of a deadend. Because of the End of Support for Spring Boot 2.7 i am upgrading to Spring Boot 3.1. My application is using Spring Cloud AWS for the SQS feature. The Problem is ...
timmmmmb's user avatar
  • 686
0 votes
1 answer
20 views

CORS error when accessing the services thorough the StackSaga Admin server

I tried to access my order-service through the StackSaga admin server. The request goes through the Spring Cloud API gateway as well. but unfortunately, all the time I am getting a CORS error at the ...
Mafei's user avatar
  • 3,151
0 votes
1 answer
17 views

The eureka Instance-Id is not valid for Stacksaga

org.stacksaga.exception.InstanceIdNotValidException: The eureka Instance-Id is not valid for Stacksaga. [instanceId : user-service:a07a498249971cfa6de45fe1cdbeb670] at org.springframework.context....
Mafei's user avatar
  • 3,151
0 votes
0 answers
14 views

Spring Cloud OpenFeign Calls Resulting in 400 Error

When deploying an application with a Docker host network mode in our online environment, we have microservices A and B. Each server hosts only one instance of microservices A and B. When there are ...
CNT Catapin's user avatar
1 vote
0 answers
26 views

The Eureka Server has become unavailable, version is 3.1.4

My application.yml is : server: port: 9700 spring: application: name: SERVER-ALPHA eureka: instance: prefer-ip-address: false hostname: SERVER-ALPHA client: register-with-...
ReTriBleT's user avatar
0 votes
0 answers
12 views

Zuul still trying to access service nodes that are not active anymore

I am trying to use spring boot cloud architecture and set up Zuul + Ribbon load balancer, and Eureka Service Registry with multiple service nodes. I almost did it, but I have one issue. When I shut ...
gogagubi's user avatar
  • 965
0 votes
2 answers
74 views

How do I find a service registered with Eureka knowing its name – without tinkering with DiscoveryService?

How do I find a service registered with Eureka knowing its name? I was under the impression that once you include the @LoadBalanced annotation, the mapping is done behind the scenes for you, and all ...
JoreJoh's user avatar
  • 153
0 votes
1 answer
90 views

Spring Boot 3.x Spring Cloud 2022.0.4 Kubernetes Config Map Not Working

For about 6 months now I've periodically tried to move to the latest version fo spring cloud GCP, spring cloud, and spring boot. When attempting to move to the latest version of these libraries, the ...
Raymond King's user avatar
0 votes
1 answer
74 views

Spring boot 3 does not load configMap

I have a minimalist app with spring boot 3.1.1 and spring cloud 2022.0.4, on EKS with kubernetes 1.27, but unfortunately the config is never loaded from the ConfigMap ... The app is made of a single ...
Geoffrey's user avatar
  • 124
-1 votes
0 answers
61 views

Correct classpath of your application so that it contains compatible versions of classes BootstrapApplicationListener and SpringApplicationBuilder

I am trying to upgrade my application from java 8 to java 11. I am facing some dependency mismatch issues. Error APPLICATION FAILED TO START Description: An attempt was made to call a method that ...
Rajarathinam's user avatar
0 votes
0 answers
41 views

How to implement a single source for auhtentication/Authrization in Spring API gateway?

lets suppose I am creating implementing a Microservice architecture for Ecommerce project and have created a multiple micro service such as Inventory, admin, seller ,customer, notification, ApiGateway ...
KISHAN's user avatar
  • 17
0 votes
0 answers
17 views

Are Spring Cloud starter dependencies curated?

In a test project I need to include spring-cloud-starter-netflix-eureka-client as a dependency, and the dependencyConvergence enforcer rule failed as shown below: [ERROR] Failed to execute goal org....
Gabriel Belingueres's user avatar
0 votes
0 answers
18 views

Config Server shows 'spring.profiles' is invalid and should be replaced with 'spring.config.activate.on-profile'

I'm upgrading our config server to Spring Boot 2.7 and Spring Cloud 2021.0.7. In the bootstrap.yml I have this setting set to true: spring.config.use-legacy-processing This setting seems to clear up ...
CoffeeCupDeveloper's user avatar
0 votes
0 answers
34 views

How do I use property-based urls in OpenFeign in Native/AOT mode without LoadBalancers?

I'm trying to use Spring Cloud OpenFeign (v4.0.2) to create a @FeignClient that uses an url set by a property given in runtime or through Spring Cloud Config. @FeignClient(name = "my-client")...
Diego Pedraza's user avatar
0 votes
1 answer
25 views

Spring and com.fasterxml.jackson.dataformat:jackson-dataformat-xml object mapping errors

I have built a simple microservice using Spring Boot 3.0.9 and Spring Cloud 2022.0.4. A REST controller that accepts JSON payload POSTed to it works until I add the com.fasterxml.jackson.dataformat:...
Keith Bennett's user avatar
0 votes
0 answers
25 views

Spring Cloud Zipkin

when I try to integrate Spring cloud Sleuth and Zipkin in my existing Spring Boot application, I get the below error. I have spring-boot-starter-parent version 2.7.6 and Spring cloud version as ...
astar's user avatar
  • 167
0 votes
0 answers
85 views

Correct implementation of circuit breaker in spring boot

I'm really struggling to implement circuit breaker pattern correctly in my application. Here is the code I am stuck at: ReservationController @PostMapping @ResponseStatus(HttpStatus.CREATED) ...
StuckyBoy's user avatar
0 votes
1 answer
94 views

Getting logback error when starting springboot

We have upgraded spring boot and spring cloud to latest version and we now see error when starting one of the services regarding logback configuration Getting this error when starting application. ...
WickedWax's user avatar
0 votes
0 answers
27 views

How to speed up registration of microservices in spring cloud eureka?

I have a spring-cloud-eureka application, respectively, I have one eureka-server service, the second gateway, the third client service. After starting all the services, the connection between them ...
Арчи's user avatar
0 votes
0 answers
29 views

Spring Cloud Data Flow deploy batch application to multiple cluster

I have two clusters in Openshift that share the same database: Cluster A: https://10.0.0.1:443 Cluster B: https://10.0.0.2:443 The SCDF is installed on cluster A where I can deploy batch ...
Kane's user avatar
  • 9
1 vote
0 answers
28 views

spring cloud secret management point to localstack

We're using spring cloud secret management to fetch secrets in AWS and use it our spring application (from property). For our development set up, we don't want to fetch the value of those properties ...
len's user avatar
  • 426
0 votes
1 answer
28 views

Is it possible to have a logoutUrl and a route with the same url in spring cloud gateway?

currently I'm writing an spring boot cloud gateway application to act as a proxy to my microservices. Also I'm using spring security with oauth2 schema in my microservices and my gateway.(some thing ...
Mohammad's user avatar
0 votes
1 answer
20 views

Spring Cloud Contract wrong stub for empty body

I am migrating an old project that uses Spring-Cloud-Contract v3.0.2. Among others we have a contract with empty body: request { method 'POST' url '/x' body([:]) headers { ...
Marcin Gil's user avatar
  • 68.1k
0 votes
0 answers
53 views

RoutingFunction bean creation in latest spring boot and spring cloud version

I was spring cloud function in my project. We were using spring boot version 2.6.6 and spring-cloud-function-context version 3.2.3 along with other required dependency.In that I was using ...
Mohit Sardiwal's user avatar
0 votes
0 answers
21 views

Usage of Spring Cloud Zookeeper instead of Spring Cloud Config Server for Actuator refresh context

Spring Boot applications context needs to be refreshed after changing properties (in GIT repository) without a need of application redeployment. Can I consider using zookeeper to fetch application ...
user18363564's user avatar
1 vote
2 answers
67 views

404 Not Found while making HTTP GET request

I m making basic microservice project . I have two services one of them user other one is reservation service. I ve registered them to eureka server which is currently visible on eureka and added ...
MatildaEliz's user avatar
0 votes
0 answers
113 views

Getting $$SpringCGLIB$$0 cannot be cast to class org.springframework.cglib.proxy.Factory running Spring Boot App in eclipse-tenurin Docker Container

I am running a Spring Boot / Spring Cloud application. Here is a snippet of my POM file: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-...
Craig Mahy's user avatar
0 votes
2 answers
146 views

Spring Cloud Gateway -> Keycloak -> Microservice

I wrote two services: api gateway (spring cloud gateway) catalog service Next, I used keycloak. As far as I understand, according to OAuth2, the gateway is a resource, not a client. I did so. ...
ok buddy's user avatar
0 votes
1 answer
37 views

How to make spring cloud connect to an existing RabbitMQ Exchange and queue

So I have a spring boot appplication and I am using spring cloud to connect to my RabbitMQ server.I read the documentation but some things are still vague to me .For now my application creates the ...
meryam 's user avatar
0 votes
0 answers
80 views

Spring Cloud gateway custom routing not working

I'm trying to build a spring cloud gateway server to provide custom routes to the 2 microservices that I have built. Gateway server pom <?xml version="1.0" encoding="UTF-8"?> ...
Shady98's user avatar
  • 21
0 votes
0 answers
35 views

Multiple Eureka servers configuration doesn't work

I'm using spring cloud Hoxton.SR10 and spring boot 2.3.8.RELEASE Problem: Comma-separated eureka client bootstrap configuration doesn't work properly. When client starts it checks only first eureka ...
troy's user avatar
  • 704
1 vote
0 answers
20 views

Using two separate binders for RabbitMQ spring cloud function

We are trying to use a single spring consumer function to connect to 2 different queues in 2 different rabbitmq instances. This doesn't seem to work. The consumer function is bound to the first binder ...
user7510999's user avatar
0 votes
1 answer
15 views

how to track Spring Cloud Task execution results

I am looking at using Spring Cloud Task for offloading some some asynchronous jobs that need to be executed. I want to be able to track the results of these so the originating application can report ...
Adam Skwersky's user avatar
-1 votes
1 answer
37 views

Spring Cloud API GATEWAY routing does not working

I developing new project using Spring Cloud Gateway and microservices. When I run the method with the microservice's own port, the method works. But when I call it with the port of the gateway, the ...
MatildaEliz's user avatar
0 votes
0 answers
29 views

Spring Cloud Config Server and Client with multiple profiles

I have a Spring Cloud Config Server with multiple profiles and a client. I keep getting the test variable printed for the regular yaml and not the "real" profile. Why is that? Config Server ...
Dlcdoee's user avatar
0 votes
0 answers
67 views

AWS Parameter Store Values Not Recognized in Spring Boot Application with @ConfigurationProperties

I have a following class in one of the spring boot application. @ConfigurationProperties(prefix = "authorizepartner") @Component @Data public class EnabledClientNameForAuthorize { private ...
Viral Kondhia's user avatar
0 votes
0 answers
218 views

Zuul compatability with Spring boot 3

I migrated from spring boot 2.7 to 3.1.1, before I have redirection with Zuul and it can't find bean for RouteLocator and ZuulController: import org.springframework.beans.BeansException; import org....
Yauheni Vozny's user avatar
0 votes
0 answers
13 views

Spring actuator/busrefresh works fine, but trying to use the underlying beans doesn't

I've been quite through a lot of hurdles using spring-cloud-bus in this past month, mainly following the docs here. I finally managed to make it work, but I would like to be able to trigger the bus ...
bur's user avatar
  • 1
0 votes
1 answer
96 views

Exclude a path in spring cloud gateway

I have been writing an spring cloud gateway service to act as a proxy for other microservices. the application.yml file is something like this: spring: security: oauth2: client: ...
Mohammad's user avatar
0 votes
0 answers
64 views

Eureka Server doesn't discover multiple instances of the same client

I have very basic EurekaServer @SpringBootApplication @EnableEurekaServer public class DiscoveryServerApplication { public static void main(String[] args) { SpringApplication.run(...
Martin Čuka's user avatar
  • 16.3k
0 votes
1 answer
28 views

Error while using spring-cloud-bus with aws kinesis stream binder

I want to use the actuator/bus-refresh for signaling my config change across my containers and for that I use: spring.cloud.bus.enabled=true management.endpoints.web.exposure.include=bus-refresh and ...
JITHIN_PATHROSE's user avatar
0 votes
1 answer
60 views

Springboot WebClientRequestException Error

I wanna build microservices with Springboot. I wanna communication between order service and inventory service. But when I try to connect inventory service from order service with webclient get method,...
Hakan's user avatar
  • 21
0 votes
1 answer
268 views

java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-nio-3

I use Spring Gateway 2021.0.8. I want to make this Post request using RestTemplate: import org.springframework.web.client.RestTemplate; public ResponseEntity<Response> ...
Peter Penzov's user avatar
  • 1,198
0 votes
1 answer
55 views

How can I make a connection to Postgresql?

I am trying to connect to a service from a remote repo which has configuration to my application with Spring Cloud, for some reason I can't make it work. The error I get: Description: Failed to ...
dev0023's user avatar

1
2 3 4 5
101