Activemq,Http Client:套接字读取超时

时间:2018-03-30 01:10:21

标签: apache-camel activemq apache-httpclient-4.x apache-servicemix

我们有一个Broker1网络连接Broker2有一个客户端。

几个小时后,消费者不会消费消息。要从测试客户端使用,我们使用了一个简单的客户在代理方面,我们没有收到任何错误[这可能是因为我们没有启用正确的日志。我们启用了所有这些堆栈跟踪日志]

服务MIX: apache-servicemix-5.6.0 {AMQ 5.12.3 org.apache.httpcomponents HttpClient - 4.5.1 org.apache.httpcomponents HttpCore - 4.4.4 Camel - 2.16 Spring - 3.2.14} 在低于错误

之后我们能够消耗的消息很少
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)`enter code here`
    ... 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)

可在此处找到完整日志:https://pastebin.com/xjNc46y9

0 个答案:

没有答案