activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Rizzi <gabriel.ri...@gmail.com>
Subject Stomp websocket disconnect after 10 sec (first Ping)
Date Wed, 30 Apr 2014 23:08:51 GMT
Hi
I need some assistance... my stomp client disconnect after the first ping
(that happens in 10 seconds) and I can’t figure out why!

Does anyone have an idea of what could be happening?

The disconnection happens in any connection even in the Stomp websocket
example (apache-activemq-5.9.1\examples\stomp\websocket\index.html). 
No matter what, after the first ping the connection is finished.  Before the
first ping it works perfectly fine to send and receive messages.

The ativity I can see :

In the ActiveMQ admin
 - the queue or topic is created and the consumer is there for the first 10
seconds (first ping) after that the number of consumers become 0

Problem reported in the Debug Log
 – after the ping it waits more 20 seconds and present the following
message:
“did "not receive server activity for the last 20842ms
Whoops! Lost connection to ws://localhost:61614/”

Problem reported in the CMD
 – 
WARN | Transport Connection to: StompSocket_26536577 failed:
java.io.IOException
Exception in thread "ActiveMQ InactivityMonitor Worker"
java.lang.NullPointerException
        at
org.apache.activemq.transport.AbstractInactivityMonitor.onException(AbstractInactivityMonitor.java:314)
        at
org.apache.activemq.transport.AbstractInactivityMonitor$4.run(AbstractInactivityMonitor.java:215)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)



I have already tried to make “time out = 0” changing the wireFormat
(bellow). I also have tried to find something to disable InactivityMonitor, 
ping or heartbeating but I couldn’t find anything else.
            
<transportConnector name="openwire"
uri="tcp://0.0.0.0:61616?wireFormat.maxInactivityDuration=0"/>
            <transportConnector name="amqp" uri="amqp://0.0.0.0:5672"/>
            <transportConnector name="stomp" uri="stomp://0.0.0.0:61613"/>
            <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883"/>
            <transportConnector name="ws" uri="ws://0.0.0.0:61614"/>



Environment/ system: 
•	Activemq 5.9.1
•	Windows 7 32bits
•	Jdk7 up 55
•	Stomp 
•	Jquery 1.7.2.

Does anyone have an idea of what could be happening?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Stomp-websocket-disconnect-after-10-sec-first-Ping-tp4680767.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message