Closed intumba closed 8 months ago
Can you describe your setup more? Where does org.apache.catalina.connector.ResponseFacade
come from?
@spencergibb the org.apache.catalina.connector.ResponseFacade is coming from Active MQ 5.16.0 and I tried even using a simple java websocket server custom app, the outcome is the same.
I am using Active MQ 5.16.0 standalone server for my web socket [ws://localhost:61614/stomp/queue/test]. I used the sample provided by Active MQ stomp example.
I use spring-cloud-gateway to proxy the unsecured Active MQ standalone behind the secured gateway. I then route the wss:// to ws:// using spring cloud.
I have a simple HTTPS client running on https://localhost:8443/index.html which try to connect to Active MQ ws://localhost:61614/stomp/queue/test through the proxy at wss://localhost:8443/
I have created a repo of this sample code: https://github.com/intumba/spring-cloud-gateway and I got this sample code from the github repos.
Hope this describes my use case.
I am facing the exact same issue.
Sorry for the late reply. If this still happens with Spring Boot 3.2 and Cloud 2023.0 we can reopen and assess.
500 Server Error for HTTP GET "/stomp" I have an instance of Unsecured ActiveMQ-5.16.0 and I want to route secured websocket to ActiveMQ using Spring Cloud Gateway. I have tried the solution using the documentation from Spring Cloud and I get the following issue:
500 Server Error for HTTP GET "/stomp".
Any idea why I am getting java.lang.ClassCastException
Route builder config code snippet
Stacktrace: