Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:09
    wilkinsona edited #32580
  • 17:02
    wilkinsona commented #32571
  • 17:00
    wilkinsona assigned #32571
  • 17:00
    wilkinsona milestoned #32571
  • 17:00
    wilkinsona labeled #32571
  • 17:00
    wilkinsona unlabeled #32571
  • 17:00
    wilkinsona unlabeled #32571
  • 17:00
    wilkinsona commented #32571
  • 16:58
    wilkinsona edited #32571
  • 16:38
    wilkinsona closed #31680
  • 16:38

    wilkinsona on main

    Allow thread dump endpoint to c… (compare)

  • 16:37
    wilkinsona demilestoned #31680
  • 16:37
    wilkinsona milestoned #31680
  • 16:30
    spring-projects-issues labeled #32580
  • 16:26
    garyrussell edited #32580
  • 16:26
    garyrussell opened #32580
  • 16:00
    wilkinsona edited #31680
  • 16:00
    wilkinsona edited #31680
  • 16:00
    wilkinsona assigned #31680
  • 15:57
    wilkinsona commented #31680
Himanshu Shukla
@himanshushukla254
and because of this, application logs are getting messed up.
@bvn13 if i am configuring the property other files, the main logger is also getting changed to the new property i added.
Michael Vandendriessche
@miva2
Hello everyone, I have a question about using Microsoft Azure Storage with Spring-boot.
Can anyone point out the difference between following 2 dependencies?
azure-storage-spring-boot-starter (as used in this example https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-starters/azure-storage-spring-boot-starter)
azure-storage-spring-boot-starter (https://docs.microsoft.com/en-us/azure/java/spring-framework/spring-boot-starters-for-azure)
I want to save .pdf and .properties files and then read them.
I've seen both being used but don't know which one is better for me to use.
Thanks in advance!
Ahmed Rebai
@Rebaiahmed
Hello everyone , I have a question : Spring data Mongodb how to find the last element inserted !
Stéphane Nicoll
@snicoll
@Rebaiahmed there is a #spring-data channel for questions like that. I believe this SO answer should help you: https://stackoverflow.com/questions/4421207/how-to-get-the-last-n-records-in-mongodb
Konstantin Bläsi
@konstantinblaesi
transaction propagation REQUIRES_NEW requires a new/separate connection from the db connection pool is that right?
Konstantin Bläsi
@konstantinblaesi
I think we were running into some deadlock situation with the hikari connection pool because we were using REQUIRES_NEW in places we should not have and too many such transactions were somehow nested for an API call?
Michael Vandendriessche
@miva2
Oops, sorry, I mentioned the same dependency twice in my earlier question.
I would like to know the differences between the spring-azure-starter-storage and azure-storage-spring-boot-starter dependencies. After some more research, and some rubberducking, I think I need the spring-azure-starter-storage as mentioned in this article https://docs.microsoft.com/en-us/azure/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-storage.
Andrew Jackson
@sonAndrew
Hey @everyone I truly need help with this simple code sample that I cannot see a problem with.
Screen Shot 2020-01-21 at 10.30.58 AM.png
I got this error
Screen Shot 2020-01-21 at 10.30.44 AM.png
boda2004
@boda2004
@sonAndrew can you try replacing conversion d with f and probably change howMany type from int to float/double?
also i suppose it's about java in general and not spring-boot specific :)
Andrew Jackson
@sonAndrew
Hey @boda2004 the variable howMany is supposed to only hold an integer
boda2004
@boda2004
but why you try to format integer with two digits after dot?
Andrew Jackson
@sonAndrew
LMFAO!!! THANK YOU SO MUCH!!!
That was the problem I didn't realize it was their.
Michael Vandendriessche
@miva2
A second pair of eyes can help a lot.
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 :)