Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:39
    bclozel transferred #31543
  • 20:09
    spring-projects-issues unlabeled #31390
  • 20:09
    spring-projects-issues unlabeled #31390
  • 20:09
    spring-projects-issues unlabeled #31390
  • 20:09
    spring-projects-issues closed #31390
  • 20:09
    spring-projects-issues commented #31390
  • 19:39
    spring-projects-issues labeled #31543
  • 19:36
    vootelerotov opened #31543
  • 18:22
    bclozel closed #31541
  • 18:22
    bclozel unlabeled #31541
  • 18:22
    bclozel unlabeled #31541
  • 18:22
    bclozel labeled #31541
  • 18:22
    bclozel commented #31541
  • 18:06
    membersound commented #31541
  • 17:44
    spring-projects-issues unlabeled #31541
  • 17:44
    spring-projects-issues labeled #31541
  • 17:42
    membersound commented #31541
  • 17:40
    membersound commented #31541
  • 17:14
    spring-projects-issues labeled #31542
  • 17:10
    Trinition opened #31542
Andrew Jackson
@sonAndrew
Yes and I thank you kind Sir. ありがとごさいます
Asgar Javadov
@asgarj
Hi I'm upgrading spring-boot from 2.1.X to 2.2.4.Release and I had a custom Endpoint which is removed from exposure.exclude and added into exposure.include in a BeanPostProcessor. Now that I'm moving away from @ConditionalOnEnabledEndpoint to @ConditionalOnAvailableEndpoint it's returning 404 and is not actually exposed. I guess available endpoint is the combination of enabled and exposed. With @ConditionalOnEnabledEndpoint it works fine, so I assume it's enabled. It's also exposed in the BeanPostProcessor. My guess of the problem is that by the time of Condition is evaluated, the bean processor has not exposed it. But how to solve this problem? FYI, this is in an internal spring-boot library.
Alessandro Vermeulen
@spockz
Does anyone know how to get a bean defined in a dependency (autoconfigure) loaded when using GraalVM with https://github.com/making/graalvm-springmvc-blank ? I've started with the demo app and added our autoconfigure which contains many bean definitions. When I try to import them they are not available and the injection fails.
Andy Wilkinson
@wilkinsona
@asgarj Can you expand a bit on what exactly your BPP is doing please?
Sivamaniyan
@Sivamani180915
image.png
While configring Tomcat 9 I am getting this issue pls help me out
Tomcat 9.0.26
Alex Harrison
@alexharrison-js
anyone have a simple quick solution to this error with spring security auth redirects?
.UserRedirectRequiredException: A redirect is required to get the users approval'
Jesper Bränn
@Yopi
Hello! I'm trying to upgrade spring boot to 2.2.2, but I've run into a strange CORS issue. It seems like when the preflight request contains the "Access-Control-Request-Method: POST" header I get an HttpMessageNotReadableException, as if Spring was trying to run the actual RestController instead. Not sure what I am doing wrong
Brian Clozel
@bclozel
@Yopi it was a bug in Spring Framework, it's been fixed already in Spring Boot 2.2.3
Jesper Bränn
@Yopi
@bclozel oh is it? I couldn't see anything about it when googling at all. Was it too small for it to end up in the release notes?
koyaja
@koyaja
Hi please help org.eclipse.jetty.server.HttpChannel - handleException /api/... java.io.IOException: Too many open files
Asgar Javadov
@asgarj
@wilkinsona The BPPs are exposing those @Endpoints. When I expose it in the properties file in tests, it works fine as those properties are resolved and evaluated before AutoConfiguration decides with @ConditionalOnAvailableEndpoint, however, I want to avoid forcing everyone to manually put some configs, and rather I expose it programmatically
Andy Wilkinson
@wilkinsona
@asgarj Sorry, I don't understand what you mean by exposing. Is you BPP setting some properties? Calling methods on the endpoints? Something else?
Asgar Javadov
@asgarj
Yes it's removing it from WebEndpointProperties exposure exclude and add into include. Btw, the main problem happens with prometheus metrics as it's declared as ConditionalOnAvailableEndpoint in its AutoConfig
Since prometheus is not exposed by default. I want to programmatically expose it at the start up in our shared library
To prevent asking every micro-service to expose in their application.yml
Mikael Elm
@mickeelm
@koyaja Rule of thumb: If you want help, explain what you are trying to do and preferrably what you have already tried yourself to resolve the problem.
Asgar Javadov
@asgarj
@wilkinsona I'm talking about this when I say exposure
My BPP is exposing prometheus metrics on /metrics endpoint. Bydefault, it's /actuator/prometheus
@wilkinsona Is the problem clear now?
koyaja
@koyaja
@mickeelm ok
Asgar Javadov
@asgarj
@wilkinsona here's the discussion in github about how it's evolved spring-projects/spring-boot#16169 @bclozel @snicoll
koyaja
@koyaja
Good morning all,
I built an API which sends sms or three instances is deployed, at the beginning it was running on tomcat for a moment we start by receiving the error Too many open files I tried several solutions until migrating spring boot 2.2.2 then jetty but after a while I still receive org.eclipse.jetty.server.HttpChannel - handleException /api/sender java.io.IOException: Too many open filesWhat can be the problem ? Thank you
James Howe
@OrangeDog
You have too many open files/sockets.
Probably because you're leaking them somewhere, but perhaps you've just tuned your deployment wrong for your traffic.
(or not tuned it)
koyaja
@koyaja
How to manage traffic with spring boot ?
Andy Wilkinson
@wilkinsona
@asgarj Yes, it's clear now thank you. I'd avoid altering WebEndpointProperties in a bean post-processor if you can. I think an EnvironmentPostProcessor registered via spring.factories that adds a PropertySource with the appropriate settings would be a better approach.
Asgar Javadov
@asgarj
@wilkinsona beautiful!! Is that EnvironmentPostProcessor gets evaluated before those @Conditional...s are evaluated? 2. If I add it there, then if clients want to say exclude it in their application.yml, then what's the behaviour? what takes the precedence? My guess is that it can be handled in the EnvironmentPostProcessor :)
udayKumar Bommala
@udaykumar1995
Any one did a POC on Distributed tracing using spring cloud slueth and zipkin with latest springboot version?
unfortunately I could not find it in spring.io guides too
Can some guide me with a reference how to implement distributed tracing with spring slueth & zipkin with latest springboot version?
Amar
@amar.t_gitlab
Hi,
Andy Wilkinson
@wilkinsona
@asgarj You can decide what has precedence by the position of the property source within the environment. The first source with a particular property wins.
praveenambati1233
@praveenambati1233
S
Gg
Asgar Javadov
@asgarj
@wilkinsona There's one nuance with management.endpoints.web.exposure.include is that it takes a comma-separated list. So in this case, if you add a new property source for each endpoint (in my case they are in different modules and each has its own EnvPostProcessor), then the one which is first in the order, is the one that's exposed, and the rest is not exposed. In this case, is it fair to solution to scan through environment.propertySources and find the first instance where management.endpoints.web.exposure.include is defined and alter (append new endpoint) it there? Or is there a better way?
Dave Jensen
@djensen47
Is there a Slack or is this the main chat for Spring Boot?
Mikael Elm
@mickeelm
I believe this is the official place
Shyam Sreenivasan
@vegeta03
Hi All,
Can anyone please tell steps on how to deploy SpringWebflux with ReactorNetty in production.
Stéphane Nicoll
@snicoll
@djensen47 this is the community channel for Spring Boot related questions. We don’t have slack.
Mikael Elm
@mickeelm
@vegeta03 your question is so broad, that it is impossible for anyone here to understand exactly what you want us to help you with. Have you built an application that you want to deploy, if so, with what kind of setup/infrastructure? Or, do you want to learn how to build an application with the named technologies?
Andy Wilkinson
@wilkinsona
@asgarj Given the complexity of your arrangement, it's starting to sound like you would be better off implementing your own condition.
Asgar Javadov
@asgarj
@wilkinsona The Endpoints that I'm adding are fine. I may choose not to put any condition on them. However, the problem is with PrometheusMetrics that has been changed to @ConditionalOnAvailableEndpoint which forces me to expose it in runtime at the beginning.
Andy Wilkinson
@wilkinsona
@asgarj I don't think I understand your problem then. Earlier you talked about a property source per endpoint, but now you're saying the problem is a single endpoint.
Tomas Hanus
@hanusto
@ravikancherla_gitlab / @wilkinsona I found the same issue (2.2.4) related to registration custom data types for Hibernate. I think that probably there is library now only with provided of jaxb module. But which ...
Vyacheslav N. Boyko
@bvn13
hi all. I need a help.
My issue is about springboot test does not import MessageSourceAutoConfiguration.
@ImportAutoConfiguration(classes = {
        MessageSourceAutoConfiguration.class
})
public class I18nConfig {
/* some beans */
}

@RunWith(SpringRunner.class)
@ContextConfiguration(classes = I18nTest.TestConfig.class)
@ActiveProfiles("test")
public class I18nTest {

/* tests are here */

    @TestConfiguration
    @Import({
            I18nConfig.class
    })
    public static class TestConfig {

    }
}
and my test says me that MessageSource is instance of DelegatingMessageSource, messageSource=Empty MessageSource - but MessageSourceAutoConfiguration instantiates ResourceBundleMessageSource bean