<div dir="ltr">I've just ran into this or something similar with <font face="monospace, monospace">throwable.getSuppressed()[0].getCause() == throwable</font>.<div>Sure, such a cycle is a bug itself, but how am I supposed to fix it, when all I get is</div><div><br></div><div><div><font face="monospace, monospace">java.lang.StackOverflowError: null</font></div></div><div><font face="monospace, monospace"> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br></font></div><div><div><font face="monospace, monospace"> at java.lang.reflect.Method.invoke(Method.java:498)</font></div><div><font face="monospace, monospace"> at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:66)</font></div><div><font face="monospace, monospace"> at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:60)</font></div><div><font face="monospace, monospace"> at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:60)</font></div></div><div><div><font face="monospace, monospace"> at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:60)</font></div><div><font face="monospace, monospace"> at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:72)</font><br></div></div><div><br></div><div>with the last two lines repeated again and again?</div><div><br></div><div>To be constructive: It'd be nice if logback would not only detect such a situation, but also print some information like</div><div><font face="monospace, monospace">throwable.getSuppressed()[0].getSuppressed()[0] == throwable</font></div><div>for the originally reported case or</div><div><font face="monospace, monospace">throwable.getSuppressed()[0].getCause() == throwable</font><br></div><div>for my case. It may be helpful sometimes.</div><div><br></div><div>While I know the cycle and can reproduce the problem, I still have no idea how it actually happens.</div><div><br></div><div>Regards, Martin.<br></div><div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 20, 2018 at 7:35 AM, <a href="http://QOS.CH">QOS.CH</a> (JIRA) <span dir="ltr"><<a href="mailto:noreply-jira@qos.ch" target="_blank">noreply-jira@qos.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div class="m_-9094160320041535007jira" style="color:#333333;font-family:Arial,sans-serif;font-size:14px;line-height:1.429">
<table id="m_-9094160320041535007background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;background-color:#f5f5f5;border-collapse:collapse" bgcolor="#f5f5f5">
<tbody>
<tr>
<td id="m_-9094160320041535007header-pattern-container" style="padding:0px;border-collapse:collapse;padding:10px 20px">
<table id="m_-9094160320041535007header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse">
<tbody>
<tr>
<td id="m_-9094160320041535007header-avatar-image-container" valign="top" style="padding:0px;border-collapse:collapse;vertical-align:top;width:32px;padding-right:8px" width="32"> <img id="m_-9094160320041535007header-avatar-image" class="m_-9094160320041535007image_fix" src="cid:jira-generated-image-avatar-06ffd8b5-0ea5-4ff5-b651-336f48b33a04" height="32" width="32" border="0" style="border-radius:3px;vertical-align:top"> </td>
<td id="m_-9094160320041535007header-text-container" valign="middle" style="padding:0px;border-collapse:collapse;vertical-align:middle;font-family:Arial,sans-serif;font-size:14px;line-height:20px"> <a class="m_-9094160320041535007user-hover" rel="ceki" id="m_-9094160320041535007email_ceki" href="https://jira.qos.ch/secure/ViewProfile.jspa?name=ceki" style="color:#3b73af;color:#3b73af;text-decoration:none" target="_blank">Ceki Gülcü</a> <strong>commented</strong> on <a href="https://jira.qos.ch/browse/LOGBACK-1027" style="color:#3b73af;text-decoration:none" target="_blank"><img src="cid:jira-generated-image-avatar-a9fafc5f-0e60-42e3-8ef4-fcadb1c1ed4c" height="16" width="16" border="0" align="absmiddle" alt="Bug"> LOGBACK-1027</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="m_-9094160320041535007email-content-container" style="padding:0px;border-collapse:collapse;padding:0 20px">
<table id="m_-9094160320041535007email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse:collapse;border-spacing:0;border-collapse:separate">
<tbody>
<tr>
<td class="m_-9094160320041535007email-content-rounded-top m_-9094160320041535007mobile-expand" style="padding:0px;border-collapse:collapse;color:#ffffff;padding:0 15px 0 16px;height:15px;background-color:#ffffff;border-left:1px solid #cccccc;border-top:1px solid #cccccc;border-right:1px solid #cccccc;border-bottom:0;border-top-right-radius:5px;border-top-left-radius:5px;height:10px;line-height:10px;padding:0 15px 0 16px" height="10" bgcolor="#ffffff"> </td>
</tr>
<tr>
<td class="m_-9094160320041535007email-content-main m_-9094160320041535007mobile-expand" style="padding:0px;border-collapse:collapse;border-left:1px solid #cccccc;border-right:1px solid #cccccc;border-top:0;border-bottom:0;padding:0 15px 0 16px;background-color:#ffffff" bgcolor="#ffffff">
<table class="m_-9094160320041535007page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse:collapse">
<tbody>
<tr>
<td style="vertical-align:top;padding:0px;border-collapse:collapse;padding-right:5px;font-size:20px;line-height:30px" class="m_-9094160320041535007page-title-pattern-header-container"> <span class="m_-9094160320041535007page-title-pattern-header" style="font-family:Arial,sans-serif;padding:0;font-size:20px;line-height:30px;vertical-align:middle"> <a href="https://jira.qos.ch/browse/LOGBACK-1027" style="color:#3b73af;text-decoration:none" target="_blank">Re: Circular Referenced Suppressed Exception Throws StackOverflowError</a> </span> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="m_-9094160320041535007text-paragraph-pattern-top" class="m_-9094160320041535007email-content-main m_-9094160320041535007mobile-expand m_-9094160320041535007comment-top-pattern" style="padding:0px;border-collapse:collapse;border-left:1px solid #cccccc;border-right:1px solid #cccccc;border-top:0;border-bottom:0;padding:0 15px 0 16px;background-color:#ffffff;border-bottom:none;padding-bottom:0" bgcolor="#ffffff">
<table class="m_-9094160320041535007text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse:collapse;font-family:Arial,sans-serif;font-size:14px;line-height:20px">
<tbody>
<tr>
<td class="m_-9094160320041535007text-paragraph-pattern-container m_-9094160320041535007mobile-resize-text" style="padding:0px;border-collapse:collapse;padding:0 0 10px 0"> <p style="margin:10px 0 0 0;margin-top:0">My apologies, your CLA was already in file.</p> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="m_-9094160320041535007email-content-main m_-9094160320041535007mobile-expand" style="padding:0px;border-collapse:collapse;border-left:1px solid #cccccc;border-right:1px solid #cccccc;border-top:0;border-bottom:0;padding:0 15px 0 16px;background-color:#ffffff" bgcolor="#ffffff">
<table id="m_-9094160320041535007actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse:collapse;font-family:Arial,sans-serif;font-size:14px;line-height:20px">
<tbody>
<tr>
<td id="m_-9094160320041535007actions-pattern-container" valign="middle" style="padding:0px;border-collapse:collapse;padding:10px 0 10px 24px;vertical-align:middle;padding-left:0">
<table align="left" style="border-collapse:collapse">
<tbody>
<tr>
<td class="m_-9094160320041535007actions-pattern-action-icon-container" style="padding:0px;border-collapse:collapse;font-family:Arial,sans-serif;font-size:14px;line-height:20px;vertical-align:middle"> <a href="https://jira.qos.ch/browse/LOGBACK-1027#add-comment" title="Add Comment" style="color:#3b73af;text-decoration:none" target="_blank"> <img class="m_-9094160320041535007actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-a9c5171b-c641-4802-a2e0-e9a045a9a033" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align:middle"> </a> </td>
<td class="m_-9094160320041535007actions-pattern-action-text-container" style="padding:0px;border-collapse:collapse;font-family:Arial,sans-serif;font-size:14px;line-height:20px;padding-left:5px"> <a href="https://jira.qos.ch/browse/LOGBACK-1027#add-comment" title="Add Comment" style="color:#3b73af;text-decoration:none" target="_blank">Add Comment</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="m_-9094160320041535007email-content-rounded-bottom m_-9094160320041535007mobile-expand" style="padding:0px;border-collapse:collapse;color:#ffffff;padding:0 15px 0 16px;height:5px;line-height:5px;background-color:#ffffff;border-top:0;border-left:1px solid #cccccc;border-bottom:1px solid #cccccc;border-right:1px solid #cccccc;border-bottom-right-radius:5px;border-bottom-left-radius:5px" height="5" bgcolor="#ffffff"> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="m_-9094160320041535007footer-pattern" style="padding:0px;border-collapse:collapse;padding:12px 20px">
<table id="m_-9094160320041535007footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse">
<tbody>
<tr>
<td id="m_-9094160320041535007footer-pattern-text" class="m_-9094160320041535007mobile-resize-text" width="100%" style="padding:0px;border-collapse:collapse;color:#999999;font-size:12px;line-height:18px;font-family:Arial,sans-serif"> This message was sent by Atlassian JIRA <span id="m_-9094160320041535007footer-build-information">(v7.3.1#73012-<span title="68837e38d8ed1b069612405186dcdceed665bb39">sha1:68837e3</span>)</span> </td>
<td id="m_-9094160320041535007footer-pattern-logo-desktop-container" valign="top" style="padding:0px;border-collapse:collapse;padding-left:20px;vertical-align:top">
<table style="border-collapse:collapse">
<tbody>
<tr>
<td id="m_-9094160320041535007footer-pattern-logo-desktop-padding" style="padding:0px;border-collapse:collapse;padding-top:3px"> <img id="m_-9094160320041535007footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-5f152ef5-f489-4740-807b-8701883a3eba" alt="Atlassian logo" title="Atlassian logo" width="169" height="36" class="m_-9094160320041535007image_fix"> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
</div>
<br>______________________________<wbr>_________________<br>
logback-dev mailing list<br>
<a href="mailto:logback-dev@qos.ch">logback-dev@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-dev" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/logback-dev</a><br></blockquote></div><br></div>