Giter VIP home page Giter VIP logo

Comments (9)

jagc93 avatar jagc93 commented on May 26, 2024 2

@OlgaMaciaszek I am providing a project below with the reproducible error, taking into account the versions of the issue: https://github.com/jagc93/eureka-discovery-client-failed

I also tried upgrading the Spring Boot version to 3.2.2, and the same issue occurs.

from spring-cloud-netflix.

OlgaMaciaszek avatar OlgaMaciaszek commented on May 26, 2024 1

Hello @jagc93, @manishatGit, this is not a regression. If the provided sample is run with either Boot 3.2.1, 3.2.0, or 3.2.2, it fails, and it also fails with Cloud 2022.0.4 and Boot 3.1.5. This is because no HTTP client that the Eureka client could use under the hood is on the classpath. You need to provide one. You could use RestTemplate by adding spring-boot-starter-web or WebClient by adding spring-boot-starter-webflux or Jersey Client, by adding appropriate Jersey dependencies. I realise that this is not very well documented, so that's what we'll fix within this issue.

from spring-cloud-netflix.

OlgaMaciaszek avatar OlgaMaciaszek commented on May 26, 2024 1

@jagc93 , I was not able to reproduce this issue when a asupported HTTP client implementation was present in the classpath, which is typically the situation when you have controllers in your app, but there might be exceptions during a custom setup. I'd need to see a sample that reproduces the issue to be able to verify this.

from spring-cloud-netflix.

jagc93 avatar jagc93 commented on May 26, 2024

I conducted some tests by modifying the versions of Spring Boot and Spring Cloud, and the latest version of Spring Cloud 2023.0.0 is compatible with Spring Boot version 3.2.0.

I'm not sure if there is a compatibility table or not, but Spring Boot version 3.2.1 still has conflicts with Spring Cloud version 2023.0.0.

from spring-cloud-netflix.

OlgaMaciaszek avatar OlgaMaciaszek commented on May 26, 2024

Hello @jagc93. Thanks for reporting the issue. This repo is maintained in English. Since I can understand your entries, I'm not going to request you to rewrite everything, but I'm going to respond in English and request you to do so as well, so that everyone can understand the discussion.
To summarise, @jagc93 is reporting a regression illustrated by the enclosed stacktrace that appears with Spring Cloud 2023.0.0 and Boot 3.2.1, while was not there with Spring Cloud 2023.0.0 and Spring Boot 3.2.0.

from spring-cloud-netflix.

OlgaMaciaszek avatar OlgaMaciaszek commented on May 26, 2024

@jagc93 I was not able to reproduce the issue. Here is a working sample with a similar setup. The README contains run instructions. If your issue still persists, verify if it also happens with Spring Boot 3.2.2. If yes, please provide a minimal, complete, verifiable example that reproduces the issue, as a link to a GitHub repo with an executable app.

from spring-cloud-netflix.

manishatGit avatar manishatGit commented on May 26, 2024

I am also facing the same problem. Here is the simple way to reproduce. I was using https://start.spring.io/ and I downloaded

  1. Eureka Server (Started running ok)
  2. Eureka Client A sample application with the following minimal dependency of eureka discovery client) See the attached image. When I import in the IntelliJ or create a bootJar, I get the same exception both ways.
    Screenshot 2024-01-22 at 2 32 44 PM
    I am using Azul zulu Java 17 on Macbook M1.

from spring-cloud-netflix.

OlgaMaciaszek avatar OlgaMaciaszek commented on May 26, 2024

@manishatGit please provide a minimal, complete, verifiable example that reproduces the issue, as a link to a GitHub repo with an executable app.

from spring-cloud-netflix.

jagc93 avatar jagc93 commented on May 26, 2024

@OlgaMaciaszek
It's curious because when I presented the issue, I already had several controllers implemented. From there, I thought there might be an issue in my code, and ultimately, I decided to create a micro from Spring Initializr and replicated the failure, even though I didn't implement any controllers in it.

I just tested by implementing the spring-boot-starter-web dependency, and it worked with any version. Thank you very much for the help, and well, at least it's now considered for future implementations.

from spring-cloud-netflix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.