question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dropwizard 0.7.1 syslog throws java.lang.AbstractMethodError

See original GitHub issue

When enable logging appenders syslog in yaml, like - type: syslog host: localhost port: 514 facility: local0 threshold: ALL version 0.7.1 exit with following exception when start the server,

Exception in thread "main" java.lang.AbstractMethodError: ch.qos.logback.core.net.SyslogAppenderBase.createOutputStream()Lch/qos/logback/core/net/SyslogOutputStream;
    at ch.qos.logback.core.net.SyslogAppenderBase.start(SyslogAppenderBase.java:54)
    at ch.qos.logback.classic.net.SyslogAppender.start(SyslogAppender.java:48)
    at io.dropwizard.logging.SyslogAppenderFactory.build(SyslogAppenderFactory.java:214)
    at io.dropwizard.logging.LoggingFactory.configure(LoggingFactory.java:110)
    at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:72)
    at io.dropwizard.cli.Cli.run(Cli.java:70)
    at io.dropwizard.Application.run(Application.java:72)
    at com.cisco.cws.siem.SiemConfigurationService.main(SiemConfigurationService.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

But it works just downgrade dropwizard to version 0.7.0

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
V0L0DYMYRcommented, Aug 15, 2016

Solved! I find out that I have two different versions of Logback in my dependency tree. When I exclude one of them, it start working.

0reactions
evnmcommented, Aug 13, 2016

@V0L0DYMYR, can you provide more information on the situation in which you see that error? As @joschi asked in response to the initial issue, can you check what version of Logback you’re pulling in, please? Providing the output of mvn dependency:tree could be helpful, for instance.

Have you tried running mvn clean before packaging the project?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DropWizard 0.7.1 logging file appender issues - Stack Overflow
I figured out what the issue was. my ApiConfiguration (extension of io.dropwizard.Configuration) had attempted to bind to 'logging' value, ...
Read more >
Dropwizard Configuration Reference
Jetty will throw java.lang.IllegalStateException: Insufficient threads: in case of too aggressive limit on the thread count. minThreads.
Read more >
Release Notes — Dropwizard
Added support for Joda Time DateTime arguments and results when using JDBI. Added configuration option to include Exception stack-traces when logging to syslog....
Read more >
Release 0.7.0 Coda Hale - Dropwizard Documentation
Dropwizard pulls together stable, mature libraries from the Java ecosystem ... public static void main(String[] args) throws Exception {.
Read more >
Dropwizard Core
Metrics, an excellent library for application metrics. Logback, the successor to Log4j, Java's most widely-used logging framework. Hibernate Validator, the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found