[ https://issues.apache.org/jira/browse/AMQ-9683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved AMQ-9683. --------------------------------------- Resolution: Fixed > java.io.IOException on idle HTTP/XA connection > ---------------------------------------------- > > Key: AMQ-9683 > URL: https://issues.apache.org/jira/browse/AMQ-9683 > Project: ActiveMQ Classic > Issue Type: Bug > Components: JMS client > Affects Versions: 6.1.5 > Reporter: Colin Werner > Assignee: Jean-Baptiste Onofré > Priority: Major > Fix For: 6.2.0, 6.1.7 > > Time Spent: 1h 50m > Remaining Estimate: 0h > > Similar config to https://issues.apache.org/jira/browse/AMQ-9682, but with > -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=* and > --add-opens=java.base/java.util=ALL-UNNAMED set we able to run. > > However, after a few minutes of idle we see the following stack trace: > {code:java} > 09:14:21,811 [tp://localhost:61618] WARN .a.t.f.FailoverTransport - > Transport (http://localhost:61618) failed, attempting to automatically > reconnect > java.io.IOException: Failed to perform GET on: http://localhost:61618 > Reason: null > at > org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:36) > ~[activemq-client-6.1.5.jar:6.1.5] > at > org.apache.activemq.transport.http.HttpClientTransport.run(HttpClientTransport.java:209) > [activemq-http-6.1.5.jar:6.1.5] > at java.base/java.lang.Thread.run(Thread.java:840) [?:?] > Caused by: java.io.EOFException > at java.base/java.io.DataInputStream.readInt(DataInputStream.java:386) > ~[?:?] > at > org.apache.activemq.transport.util.TextWireFormat.unmarshal(TextWireFormat.java:52) > ~[activemq-http-6.1.5.jar:6.1.5] > at > org.apache.activemq.transport.http.HttpClientTransport.run(HttpClientTransport.java:200) > ~[activemq-http-6.1.5.jar:6.1.5] > ... 1 more {code} > I am not sure if this is the idle connection being dropped? I see nothing > strange in a wireshark pcap. > > I tried to reproduce this in a unit test, but don't think I was able to set > up the exact same configuration, largely due to my lack of knowledge of the > code base. But I modified > https://github.com/apache/activemq/blob/main/activemq-http/src/test/java/org/apache/activemq/bugs/AMQ2764Test.java > to wait and eventually saw: > {code:java} > 2025-03-11 16:39:16,175 [localhost:61616] - DEBUG HttpClientTransport > - Received null command from url: http://localhost:61616 > 2025-03-11 16:39:16,886 [localhost:61616] - DEBUG HttpClientTransport > - Received null command from url: http://localhost:61616 {code} > Which seems similar, but without a nasty stack trace. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@activemq.apache.org For additional commands, e-mail: issues-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact