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

NoSuchMethodError #62

Open
snowbldr opened this issue Jun 16, 2022 · 2 comments
Open

NoSuchMethodError #62

snowbldr opened this issue Jun 16, 2022 · 2 comments

Comments

@snowbldr
Copy link

snowbldr commented Jun 16, 2022

I'm using the logback extension for newrelic and java agent version 6.4.2.

When I try to start up my spring boot application it fails to start with the following stack trace:

Exception in thread "main" java.lang.NoSuchMethodError: 'java.util.Map com.newrelic.api.agent.Agent.getLinkingMetadata()'
    at com.newrelic.logging.logback.NewRelicAsyncAppender.preprocess(NewRelicAsyncAppender.java:39)
    at com.newrelic.logging.logback.NewRelicAsyncAppender.preprocess(NewRelicAsyncAppender.java:36)
    at ch.qos.logback.core.AsyncAppenderBase.append(AsyncAppenderBase.java:160)
    at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:84)
    at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:51)
    at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:270)
    at ch.qos.logback.classic.Logger.callAppenders(Logger.java:257)
    at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421)
    at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
    at ch.qos.logback.classic.Logger.log(Logger.java:765)
    at org.apache.commons.logging.LogAdapter$Slf4jLocationAwareLog.error(LogAdapter.java:433)
    at org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:835)
    at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:799)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:317)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)

https://github.com/newrelic/java-log-extensions/blob/main/logback/src/main/java/com/newrelic/logging/logback/NewRelicAsyncAppender.java#L39

I've had to disable newrelic logging for now.

(Migrate to JIra)

@kford-newrelic
Copy link
Contributor

@snowbldr thanks for letting us know about this issue

Does the issue occur in multiple environments (eg: dev, qa & prod)?

Are you able to try this with the latest version of our agent (maybe in a non-prod env) and let us know what happens?

@workato-integration
Copy link

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

2 participants