-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
@Controller
public class ServerController {
@MessageMapping(value = "market")
public MarketResponse getMarket(Market market) {
return new MarketResponse(market.getName());
}
}
@RestController
public class ConsumerController {
private final RSocketRequester rSocketRequester;
public ConsumerController(RSocketRequester rSocketRequester) {
this.rSocketRequester = rSocketRequester;
}
@GetMapping(path = "/market/{name}")
public Publisher<MarketResponse> getMarket(@PathVariable String name) {
return rSocketRequester.route("market").data(new Market(name)).retrieveMono(MarketResponse.class);
}
}
java.lang.IllegalArgumentException: No decoder for com.example.rsocketclient.MarketResponse
at org.springframework.messaging.rsocket.RSocketStrategies.decoder(RSocketStrategies.java:92) ~[spring-messaging-5.2.0.RELEASE.jar:5.2.0.RELEASE]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ HTTP GET "/market/test" [ExceptionHandlingWebHandler]
Metadata
Metadata
Assignees
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid