[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-users
Subject:    Socket read timeout
From:       Suresh <rajesh.mshl () gmail ! com>
Date:       2018-03-30 0:18:23
Message-ID: 1522369103575-0.post () n4 ! nabble ! com
[Download RAW message or body]

Hello All

We have AMQ Broker in one linux machine. We are trying to consume message
using simple client.

I have opened one AMQ connection and using the same connection by giving
inactivity timeout as 2 hours in while loop consuming messages. Few messages
are coming after that giving below error

Starting SimpleJMS example now...

on the broker side not seeing any errors [ this might be we are not enabling
related logs also]
so can anybody suggest which logs to enable on broker & what might be reason
for this.
 
 
receiving
javax.jms.JMSException: Failed to perform GET on: https://URL Reason: Read
timed out
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72)
	at
org.apache.activemq.ActiveMQMessageConsumer.dequeue(ActiveMQMessageConsumer.java:476)
	at
org.apache.activemq.ActiveMQMessageConsumer.receive(ActiveMQMessageConsumer.java:557)
	at org.apache.activemq.recipes.SimpleJMS.run(SimpleJMS.java:108)
	at org.apache.activemq.recipes.SimpleJMS.main(SimpleJMS.java:128)
Caused by: java.io.IOException: Failed to perform GET on: https://URL
Reason: Read timed out
	at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
	at
org.apache.activemq.transport.http.HttpClientTransport.run(HttpClientTransport.java:205)
  at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
	at java.net.SocketInputStream.read(SocketInputStream.java:170)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:961)
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:918)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
	at
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
  at
org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
	at
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273)
  at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:92)
  at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:62)
  at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
	at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
  at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
  at
org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
  at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
  at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
	at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712)
  at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
  at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
	at
org.apache.activemq.transport.http.HttpClientTransport.run(HttpClientTransport.java:178)
                
	... 1 more
javax.jms.IllegalStateException: The Session is closed
	at
org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:775)
	at
org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1292)
	at
org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1251)
	at
org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1163)
	at
org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1135)
	at org.apache.activemq.recipes.SimpleJMS.run(SimpleJMS.java:103)
	at org.apache.activemq.recipes.SimpleJMS.main(SimpleJMS.java:128)
Caught an exception during the example: The Session is closed
Finished running the SimpleJMS example.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic