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

customFields in Logstash throws NullPointerException in Spring Boot #354

Closed
clteich opened this issue Aug 7, 2019 · 2 comments
Closed

Comments

@clteich
Copy link

clteich commented Aug 7, 2019

I'm encountering a problem with the logstashencoder in my spring boot project. If I'm using the logback configuration posted below, the application fails immediately with the following stacktrace. If I delete the customFields in the logstashEncoder, the application starts as intended.

C:\Program Files\Java\jdk-11.0.1\bin\java.ex" -XX:TieredStopAtLevel=1 -noverify -Dspring.profiles.active=prelive -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.4\lib\idea_rt.jar=50255:C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.4\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\Clemens\workspace\belief\target\classes;C:\Users\Clemens\.m2\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;C:\Users\Clemens\.m2\repository\org\codehaus\plexus\plexus-utils\3.2.0\plexus-utils-3.2.0.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.1.6.RELEASE\spring-boot-starter-web-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-starter\2.1.6.RELEASE\spring-boot-starter-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.6.RELEASE\spring-boot-autoconfigure-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.1.6.RELEASE\spring-boot-starter-logging-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.12.0\log4j-to-slf4j-2.12.0.jar;C:\Users\Clemens\.m2\repository\org\apache\logging\log4j\log4j-api\2.12.0\log4j-api-2.12.0.jar;C:\Users\Clemens\.m2\repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;C:\Users\Clemens\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\Clemens\.m2\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.1.6.RELEASE\spring-boot-starter-json-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.9\jackson-datatype-jdk8-2.9.9.jar;C:\Users\Clemens\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.9\jackson-module-parameter-names-2.9.9.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.6.RELEASE\spring-boot-starter-tomcat-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.21\tomcat-embed-core-9.0.21.jar;C:\Users\Clemens\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.21\tomcat-embed-el-9.0.21.jar;C:\Users\Clemens\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.21\tomcat-embed-websocket-9.0.21.jar;C:\Users\Clemens\.m2\repository\org\hibernate\validator\hibernate-validator\6.0.17.Final\hibernate-validator-6.0.17.Final.jar;C:\Users\Clemens\.m2\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;C:\Users\Clemens\.m2\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;C:\Users\Clemens\.m2\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-web\5.1.8.RELEASE\spring-web-5.1.8.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-beans\5.1.8.RELEASE\spring-beans-5.1.8.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-webmvc\5.1.8.RELEASE\spring-webmvc-5.1.8.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-context\5.1.8.RELEASE\spring-context-5.1.8.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-expression\5.1.8.RELEASE\spring-expression-5.1.8.RELEASE.jar;C:\Users\Clemens\.m2\repository\io\micrometer\micrometer-registry-prometheus\1.1.3\micrometer-registry-prometheus-1.1.3.jar;C:\Users\Clemens\.m2\repository\io\micrometer\micrometer-core\1.1.3\micrometer-core-1.1.3.jar;C:\Users\Clemens\.m2\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;C:\Users\Clemens\.m2\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;C:\Users\Clemens\.m2\repository\io\prometheus\simpleclient_common\0.5.0\simpleclient_common-0.5.0.jar;C:\Users\Clemens\.m2\repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.6.RELEASE\spring-boot-starter-actuator-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.6.RELEASE\spring-boot-actuator-autoconfigure-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-actuator\2.1.6.RELEASE\spring-boot-actuator-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9.2\jackson-databind-2.9.9.2.jar;C:\Users\Clemens\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Users\Clemens\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;C:\Users\Clemens\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.9\jackson-datatype-jsr310-2.9.9.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot-starter-security\2.1.6.RELEASE\spring-boot-starter-security-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-aop\5.1.8.RELEASE\spring-aop-5.1.8.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\security\spring-security-config\5.1.5.RELEASE\spring-security-config-5.1.5.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\security\spring-security-core\5.1.5.RELEASE\spring-security-core-5.1.5.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\security\spring-security-web\5.1.5.RELEASE\spring-security-web-5.1.5.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;C:\Users\Clemens\.m2\repository\org\apache\kafka\kafka-streams\2.2.0\kafka-streams-2.2.0.jar;C:\Users\Clemens\.m2\repository\org\apache\kafka\connect-json\2.2.0\connect-json-2.2.0.jar;C:\Users\Clemens\.m2\repository\org\apache\kafka\connect-api\2.2.0\connect-api-2.2.0.jar;C:\Users\Clemens\.m2\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;C:\Users\Clemens\.m2\repository\org\rocksdb\rocksdbjni\5.15.10\rocksdbjni-5.15.10.jar;C:\Users\Clemens\.m2\repository\org\apache\kafka\kafka-clients\2.2.0\kafka-clients-2.2.0.jar;C:\Users\Clemens\.m2\repository\com\github\luben\zstd-jni\1.3.8-1\zstd-jni-1.3.8-1.jar;C:\Users\Clemens\.m2\repository\org\lz4\lz4-java\1.5.0\lz4-java-1.5.0.jar;C:\Users\Clemens\.m2\repository\org\xerial\snappy\snappy-java\1.1.7.2\snappy-java-1.1.7.2.jar;C:\Users\Clemens\.m2\repository\org\apache\avro\avro\1.8.2\avro-1.8.2.jar;C:\Users\Clemens\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;C:\Users\Clemens\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;C:\Users\Clemens\.m2\repository\com\thoughtworks\paranamer\paranamer\2.7\paranamer-2.7.jar;C:\Users\Clemens\.m2\repository\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;C:\Users\Clemens\.m2\repository\org\tukaani\xz\1.5\xz-1.5.jar;C:\Users\Clemens\.m2\repository\io\confluent\kafka-streams-avro-serde\5.2.1\kafka-streams-avro-serde-5.2.1.jar;C:\Users\Clemens\.m2\repository\io\confluent\kafka-avro-serializer\5.2.1\kafka-avro-serializer-5.2.1.jar;C:\Users\Clemens\.m2\repository\io\confluent\common-config\5.2.1\common-config-5.2.1.jar;C:\Users\Clemens\.m2\repository\io\confluent\kafka-schema-registry-client\5.2.1\kafka-schema-registry-client-5.2.1.jar;C:\Users\Clemens\.m2\repository\io\confluent\common-utils\5.2.1\common-utils-5.2.1.jar;C:\Users\Clemens\.m2\repository\org\apache\zookeeper\zookeeper\3.4.13\zookeeper-3.4.13.jar;C:\Users\Clemens\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Users\Clemens\.m2\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;C:\Users\Clemens\.m2\repository\io\netty\netty\3.10.6.Final\netty-3.10.6.Final.jar;C:\Users\Clemens\.m2\repository\org\apache\avro\avro-maven-plugin\1.8.2\avro-maven-plugin-1.8.2.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-plugin-api\2.0.10\maven-plugin-api-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-project\2.0.10\maven-project-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-settings\2.0.10\maven-settings-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-profile\2.0.10\maven-profile-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-model\2.0.10\maven-model-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-artifact-manager\2.0.10\maven-artifact-manager-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-repository-metadata\2.0.10\maven-repository-metadata-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-beta-2\wagon-provider-api-1.0-beta-2.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-plugin-registry\2.0.10\maven-plugin-registry-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\codehaus\plexus\plexus-interpolation\1.1\plexus-interpolation-1.1.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\maven-artifact\2.0.10\maven-artifact-2.0.10.jar;C:\Users\Clemens\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar;C:\Users\Clemens\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\Clemens\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Clemens\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\shared\file-management\1.2.1\file-management-1.2.1.jar;C:\Users\Clemens\.m2\repository\org\apache\maven\shared\maven-shared-io\1.1\maven-shared-io-1.1.jar;C:\Users\Clemens\.m2\repository\org\apache\avro\avro-compiler\1.8.2\avro-compiler-1.8.2.jar;C:\Users\Clemens\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\Clemens\.m2\repository\org\apache\velocity\velocity\1.7\velocity-1.7.jar;C:\Users\Clemens\.m2\repository\joda-time\joda-time\2.10.2\joda-time-2.10.2.jar;C:\Users\Clemens\.m2\repository\de\qudosoft\watergate\7.2.1-SNAPSHOT\watergate-7.2.1-SNAPSHOT.jar;C:\Users\Clemens\.m2\repository\de\qudosoft\datalakeUtils\7.2.0\datalakeUtils-7.2.0.jar;C:\Users\Clemens\.m2\repository\com\github\fge\json-schema-avro\0.1.4\json-schema-avro-0.1.4.jar;C:\Users\Clemens\.m2\repository\com\github\fge\json-schema-validator\2.2.0\json-schema-validator-2.2.0.jar;C:\Users\Clemens\.m2\repository\com\googlecode\libphonenumber\libphonenumber\6.0\libphonenumber-6.0.jar;C:\Users\Clemens\.m2\repository\javax\mail\mailapi\1.4.3\mailapi-1.4.3.jar;C:\Users\Clemens\.m2\repository\com\google\code\findbugs\jsr305\2.0.1\jsr305-2.0.1.jar;C:\Users\Clemens\.m2\repository\net\sf\jopt-simple\jopt-simple\4.6\jopt-simple-4.6.jar;C:\Users\Clemens\.m2\repository\com\github\fge\json-schema-core\1.2.0\json-schema-core-1.2.0.jar;C:\Users\Clemens\.m2\repository\com\github\fge\uri-template\0.9\uri-template-0.9.jar;C:\Users\Clemens\.m2\repository\com\github\fge\msg-simple\1.1\msg-simple-1.1.jar;C:\Users\Clemens\.m2\repository\com\github\fge\btf\1.2\btf-1.2.jar;C:\Users\Clemens\.m2\repository\com\google\guava\guava\16.0.1\guava-16.0.1.jar;C:\Users\Clemens\.m2\repository\com\github\fge\jackson-coreutils\1.6\jackson-coreutils-1.6.jar;C:\Users\Clemens\.m2\repository\org\mozilla\rhino\1.7R4\rhino-1.7R4.jar;C:\Users\Clemens\.m2\repository\commons-io\commons-io\2.5\commons-io-2.5.jar;C:\Users\Clemens\.m2\repository\com\101tec\zkclient\0.9\zkclient-0.9.jar;C:\Users\Clemens\.m2\repository\log4j\log4j\1.2.15\log4j-1.2.15.jar;C:\Users\Clemens\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar;C:\Users\Clemens\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;C:\Users\Clemens\.m2\repository\org\projectlombok\lombok\1.18.0\lombok-1.18.0.jar;C:\Users\Clemens\.m2\repository\net\logstash\logback\logstash-logback-encoder\6.1\logstash-logback-encoder-6.1.jar;C:\Users\Clemens\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\Clemens\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\Clemens\.m2\repository\org\springframework\boot\spring-boot\2.1.6.RELEASE\spring-boot-2.1.6.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-core\5.1.8.RELEASE\spring-core-5.1.8.RELEASE.jar;C:\Users\Clemens\.m2\repository\org\springframework\spring-jcl\5.1.8.RELEASE\spring-jcl-5.1.8.RELEASE.jar de.qudosoft.belief.Application
07-08-2019 11:57:59.563 [main] ERROR o.s.boot.SpringApplication.reportFailure - Application run failed
java.lang.IllegalStateException: Logback configuration error detected: 
ERROR in ch.qos.logback.core.joran.spi.Interpreter@17:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException
ERROR in ch.qos.logback.core.ConsoleAppender[JSONONCONSOLE] - No encoder set for the appender named "JSONONCONSOLE".
	at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:166)
	at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:79)
	at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:59)
	at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:117)
	at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:279)
	at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:254)
	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:219)
	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:196)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
	at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75)
	at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)
	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:340)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:304)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202)
	at de.qudosoft.belief.Application.main(Application.java:9)
Exception in thread "main" java.lang.IllegalStateException: Logback configuration error detected: 
ERROR in ch.qos.logback.core.joran.spi.Interpreter@17:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException
ERROR in ch.qos.logback.core.ConsoleAppender[JSONONCONSOLE] - No encoder set for the appender named "JSONONCONSOLE".
	at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:166)
	at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:79)
	at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:59)
	at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:117)
	at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:279)
	at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:254)
	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:219)
	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:196)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
	at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75)
	at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)
	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:340)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:304)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202)
	at de.qudosoft.belief.Application.main(Application.java:9)

Process finished with exit code 1

Dependencies

<dependency>
            <groupId>net.logstash.logback</groupId>
            <artifactId>logstash-logback-encoder</artifactId>
            <version>6.1</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>1.2.3</version>
        </dependency>

logback-spring.xml

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>
                %d{dd-MM-yyyy HH:mm:ss.SSS} %magenta([%thread]) %highlight(%-5level) %logger{36}.%M - %msg%n
            </pattern>
        </encoder>
    </appender>

    <appender name="JSONONCONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="net.logstash.logback.encoder.LogstashEncoder">
            <fieldNames class="net.logstash.logback.fieldnames.LogstashFieldNames">
                <timestamp>ts</timestamp>
            </fieldNames>
            <customFields>{"service":"liefertermin-service-gold"}</customFields>
        </encoder>
    </appender>

    <springProfile name="!fitnesse,!prelive,!live">
        <root level="DEBUG">
            <appender-ref ref="CONSOLE"/>
        </root>
        <logger name="io.confluent.kafka" level="WARN" additivity="false">
            <appender-ref ref="CONSOLE"/>
        </logger>
        <logger name="org.apache.kafka" level="WARN" additivity="false">
            <appender-ref ref="CONSOLE"/>
        </logger>
    </springProfile>
@clteich
Copy link
Author

clteich commented Aug 7, 2019

The problem seems to originate from an update of the jackson-databind-dependency. We had an alarm from our dependency check, that the version 2.9.9 of this library has jackson-databind-2.9.9.jar: CVE-2019-14379, CVE-2019-14439.

Upgrading to 2.9.9.2 causes the application to crash with aforementioned error.

@philsttr
Copy link
Collaborator

This was caused by FasterXML/jackson-databind#2395

Use jackson 2.9.9.3 or above to fix 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

2 participants