[
https://issues.apache.org/jira/browse/AMQ-7346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17050434#comment-17050434
]
Jean-Baptiste Onofré commented on AMQ-7346:
-------------------------------------------
Generally speaking, if there's an exception, it makes sense to display the
stack trace (it's the only way to investigate an issue).
However, if your issue is related to logstash/filebeat, I now changed to use
{{EnhancedPatternLayout}} in {{conf/log4j.properties}}. Thanks to that, you can
now use {{ConversionPattern}} like:
{code:java}
log4j.appender.logfile.layour.ConversionPattern=%d | %-5p | %m | %c |
%t%n%replace(%throwable){\n}{ } {code}
> Unnecessary stack trace in DemandForwardingBridgeSupport
> --------------------------------------------------------
>
> Key: AMQ-7346
> URL: https://issues.apache.org/jira/browse/AMQ-7346
> Project: ActiveMQ
> Issue Type: Bug
> Components: Network of Brokers
> Reporter: Lionel Cons
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Fix For: 5.16.0, 5.15.12
>
>
> In case the broker at the remote end of a bridge is restarted, ActiveMQ logs:
> {code}
> 2019-11-19 07:20:07,403 [ActiveMQ Transport:
> ssl://amq148.acme.com/192.161.2.43:6166] WARN DemandForwardingBridgeSupport -
> Network connection between vm://amq115.acme.com#4 and
> ssl://amq148.acme.com/192.161.2.43:6166 shutdown due to a remote error: {}
> java.io.EOFException
> at java.io.DataInputStream.readInt(DataInputStream.java:392)
> at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:268)
> at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:240)
> at
> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:232)
> at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:215)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> This should rather be:
> {code}
> 2019-11-19 07:20:07,403 [ActiveMQ Transport:
> ssl://amq148.acme.com/192.161.2.43:6166] WARN DemandForwardingBridgeSupport -
> Network connection between vm://amq115.acme.com#4 and
> ssl://amq148.acme.com/192.161.2.43:6166 shutdown due to a remote error:
> java.io.EOFException
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)