Anil Tata created STOMP-2:
-----------------------------
Summary: Stomp Connection failed over websocket protocol
Key: STOMP-2
URL: https://issues.apache.org/jira/browse/STOMP-2
Project: Stomp Specification
Issue Type: Test
Reporter: Anil Tata
Assignee: Dejan Bosanac
Dear Team,
I've been trying to communicate ActiveMQ over websocket protocol(ws/wss) from
Apache HTTPD webserver.
where IP 0.0.0.1 = My application hostname
My application work flow :
HTTPD ---> Reverseproxy(wss)—>ActiveMQ(Stomp)
Erros in ActiveMQ server logs :
2020-05-04 17:16:34,836 | WARN | Transport Connection to: tcp://0.0.0.1:42802
failed: org.apache.activemq.transport.InactivityIOException: Channel was
inactive (no connection attempt made) for too (>30000) long:
tcp://0.0.0.1:42802 | org.apache.activemq.broker.TransportConnection.Transport
| ActiveMQ InactivityMonitor Worker
2020-05-04 17:16:34,889 | WARN | Transport Connection to: tcp://0.0.0.1:42804
failed: org.apache.activemq.transport.InactivityIOException: Channel was
inactive (no connection attempt made) for too (>30000) long:
tcp://0.0.0.1:42804 | org.apache.activemq.broker.TransportConnection.Transport
| ActiveMQ InactivityMonitor
Errors in F12 developer Tool :
stompjs.js?eval:7 WebSocket connection to 'wss://my.domain.com/ws/stomp'
failed: Error during WebSocket handshake: Invalid status line stompjs.js?eval:7
WebSocket connection to 'wss://my.domain.com/ws/stomp' failed: Error during
WebSocket handshake: Invalid status linestompjs.js?eval:7 Whoops! Lost
connection to wss://my.domain.com/ws/stompApplicationController.js?eval:1
Inside Error..........Whoops! Lost connection to
wss://my.domain.com/ws/stompstompjs.js?eval:7 WebSocket connection to
'wss://my.domain.com/ws/stomp' failed: Error during WebSocket handshake:
Invalid status linestompjs.js?eval:7 Whoops! Lost connection to
wss://my.domain.com/ws/stomp
When i try to made a connection from Apache HTTPD, I keep on the getting the
above given errors.
My httpd.conf
ProxyPass /ws/stomp wss://ics106045164.ics-eu-1.asml.com:61613/
ProxyPassReverse /ws/stomp wss://ics106045164.ics-eu-1.asml.com:61613/
My activemq.xml
<transportConnector name="openwire"
uri="tcp://0.0.0.1:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp"
uri="amqp://0.0.0.1:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<!--<transportConnector name="stomp"
uri="tcp://0.0.0.1:61613?protocols=STOMP&trace=true&maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>-->
<transportConnector name="stomp"
uri="stomp://0.0.0.161613?wireFormat.maxInactivityDuration=5000000&maximumConnections=1000&wireFormat.maxFrameSize=104857600&trace=true"/>
<transportConnector name="mqtt"
uri="mqtt://0.0.0.1:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws"
uri="ws://0.0.0.1:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
I have tried this [https://activemq.apache.org/activemq-inactivitymonitor]
setting but no luck. Still continiously getting this same WARN in the activemq
logs.
Could you someone suggest how to fix this issue ?
Any help would be appriciate.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)