Questions tagged [webflux]
101 questions
1
vote
1 answer
Mono not executing with schedule
I have a Spring webflux app with the below method.
@Override
public Mono updateSetting(int orgId, IntegrationDto dto,
Map jsonMap) {
return retrieveServices(dto.getClientId()).flatMap(services -> {
…

user1578872
- 7,808
- 29
- 108
- 206
1
vote
1 answer
Reactor: why my code works with publishOn, but not with subscribeOn
I'm learning how the scheduler works. So I tried to set the number to 100. with publishOn it works (it sets number to 100), but with subscribeOn it doesn't set number to 100. I don't understand why?
@Test
fun reactor01_LearnSchedulers(){
var…

Patrick
- 734
- 11
- 26
1
vote
0 answers
Sleuth in Webflux Spring Security
I have a webflux app and need to have sleuth context in my authentication logs (move from DefaultWebFilterChain to SecurityWebFilterChain).
I have tried to add manually in my security chain:
public GwApiSecurityConfig(Tracer tracer,…

Quantz
- 11
- 1
1
vote
0 answers
Webflux returning cors error on Access denied
@Bean
public SecurityWebFilterChain securityWebFilterChain(
ServerHttpSecurity http,
ReactiveAuthenticationManager jwtAuthenticationManager,
ServerAuthenticationConverter jwtAuthenticationConverter
) {
…

user3454581
- 532
- 1
- 4
- 11
1
vote
1 answer
Springboot Webflux endpoint not found by test - what is causing it?
I have the following code, and am consistently receiving 404 not found errors? Any advice would be much appreciated!
I've researched conflicting dependencies which does not seem to be the problem. I've also ensured that I am returning the correct…

Aluxxen
- 63
- 6
1
vote
2 answers
Configure SSL with Webflux Webclient using Apache HttpComponents
I am trying to migrate from restTemplate to webClient.
Everything was fine until I reached restTemplate config with ClientHttpRequestFactory.
I paste here the old and the new codes.
------Old code with restTemplate-------
private…

Amir Choubani
- 829
- 2
- 14
- 28
1
vote
1 answer
No primary or default constructor found for interface org.springframework.web.server.ServerWebExchange
I have added swagger support to a microservice written in spring-boot. I am getting below error
HTTP ERROR 500 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: No…

Abu Turab Munir
- 11
- 2
1
vote
1 answer
Spring WebFlux Filepart DataBuffer cant read more than 108 lines
After downloading the file through the controller, an error occurs in the service.
There are 122 lines in the file, but it only reads 108.
Has anyone encountered such a problem?
Debug vars
109 line
Fileparser code

Wizzy Ego
- 13
- 3
1
vote
1 answer
Spring webflux, use response from api1 to call api2 and api3 and use it to build final response
I need to construct a JSON from 3 api calls.
Call webclient1.get() -> response1
Use reponse1 to call second api
like this: webclient2.getDetails(response1.getId())
Use reponse1 to call third api
like this:…

sai23
- 65
- 1
- 8
1
vote
1 answer
WebFluxConfigurer broken in Spring webflux for functional routes?
The goal is to configure my webflux servlet container such that whenever an API call is made to a predefined path will return a response regardless of whether the call is made to an upper/lower case path.
/api/users should give the same result as…

Maxiepaxie
- 53
- 6
1
vote
1 answer
Map N number of mono calls in spring boot web flux
I have a method in spring boot that makes multiple mono call that returns a type string. This method will eventually return the results of all the mono calls which are later transformed into a POJO object. Tried Mono.zip but this accepts only 8…

Akhil Korissery
- 58
- 1
- 7
1
vote
0 answers
WebClient ExchangeFilterFunction caches value from ThreadLocal
I faced with the following issue while using Spring MVC with ThreadLocal and WebClient from Webflux.
My task is to:
Intercept the user's request to my application and get all the headers from it and save it in ThreadLocal.
After that, when my…

Eugene
- 55
- 1
- 7
1
vote
0 answers
Webflux RSocket Server using RSocketRequestor sending message to Rsocket-js client .Responder not receiving
My requirement is that as and when some event happens on server, it should push updates to client. Want to use RSocket and not SSE.
Will responder configured on the rsocket-js client respond to server request?
If yes then how should the rsocket-js…

Vani Koratekere
- 11
- 2
1
vote
2 answers
Spring Webflux vs Rsocket
is have been studying rsocket and reactive programming for a while and quite often spring webflux is mentioned i wanted to ask whats the difference between the rsocket and spring webflux or are they same things.Thanks

khizar khan
- 33
- 7
1
vote
0 answers
@WebFluxTest Integration test not finding beans
My test class looks like:
@WebFluxTest(controllers = IndexContoller.class)
@Import(UserServiceImpl.class)
class IndexContollerTest {
private static final String PATH = "/";
private static final String ADD_USER = "/signup";
@MockBean
…

tarmogoyf
- 298
- 3
- 17