dropwizard 0.7.1 syslog throws java.lang.AbstractMethodError
See original GitHub issueWhen 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:
- Created 9 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
@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:treecould be helpful, for instance.Have you tried running
mvn cleanbefore packaging the project?