Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:34
    snicoll labeled #32045
  • 17:34
    snicoll closed #32045
  • 17:34
    snicoll commented #32045
  • 17:33
    oguzhannkayaa opened #32045
  • 17:29
    vpavic commented #10827
  • 17:08
    wilkinsona closed #32044
  • 17:08
    wilkinsona closed #32043
  • 17:08
    wilkinsona closed #29171
  • 17:08

    wilkinsona on main

    Fix external links in descripti… Merge branch '2.6.x' into 2.7.x… Merge branch '2.7.x' Closes gh… (compare)

  • 17:08

    wilkinsona on 2.6.x

    Fix external links in descripti… (compare)

  • 17:08

    wilkinsona on 2.7.x

    Fix external links in descripti… Merge branch '2.6.x' into 2.7.x… (compare)

  • 17:07
    wilkinsona milestoned #32044
  • 17:07
    wilkinsona labeled #32044
  • 17:07
    wilkinsona opened #32044
  • 17:07
    wilkinsona labeled #32044
  • 17:07
    wilkinsona milestoned #32043
  • 17:07
    wilkinsona labeled #32043
  • 17:07
    wilkinsona labeled #32043
  • 17:07
    wilkinsona opened #32043
  • 17:06
    wilkinsona milestoned #29171
Sivamaniyan
@Sivamani180915
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
why MessageSourceAutoConfiguration does not work this way?
molexx
@molexx

I want to run the same junit5 tests class 3 times, each time with a context property set to a different value. Is there a nice way to do that?

@ParameterizedTest is only method not class level, and whilst I could use @DirtiesContext(AFTER_EACH_TEST_METHOD)to recreate the context that is quite expensive to do per test and I can't see how to set the context property before the context is initialized.

Shyam Sreenivasan
@vegeta03
@mickeelm I have created an application with Spring Webflux MongoDB, I want to know that, do we deploy using tomcat like normal Spring MVC apps or is there a difference because of the NIO aspect of Webflux.
Thanks.
Mikael Elm
@mickeelm
Ah, sorry, lose the question mark on the end. Can't edit the post now