Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack Overflow in ThrowableProxy #830

Open
jms72 opened this issue Jul 5, 2024 · 0 comments
Open

Stack Overflow in ThrowableProxy #830

jms72 opened this issue Jul 5, 2024 · 0 comments

Comments

@jms72
Copy link

jms72 commented Jul 5, 2024

            logger.warn(
                "Some text: ${proposalResponse.statusCode}",
                proposalResponse.exception,
            )

causes stack overflow:

     at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:78)
      …
      at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:78)
     at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:51)
     at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:145)
     at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:424)
     at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:386)
     at ch.qos.logback.classic.Logger.warn(Logger.java:697)

It seems to be somehow due to Kotlin to Java Throwable/Exception conversion, there's an infinite list of causes.

There seems to be a fix proposal already sitting around since 2016, why not merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant