Skip to content

NoSuchMethodError: 'com.fasterxml.jackson.annotation.OptBoolean com.fasterxml.jackson.annotation.JsonProperty.isRequired()' #5157

@2Ruk

Description

@2Ruk

Search before asking

  • I searched in the issues and found nothing similar.

Describe the bug

hello.

I got an error while using jackson.

“java.lang.NoSuchMethodError: 'com.fasterxml.jackson.annotation.OptBoolean com.fasterxml.jackson.annotation.JsonProperty.isRequired()”

  • I've looked at other issues, and it's usually version compatibility of dependency modules.
        implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
        implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")
        implementation("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
        implementation("com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:$jacksonVersion")
        implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion")
        implementation("ch.qos.logback.contrib:logback-jackson:0.1.5")
        implementation("ch.qos.logback.contrib:logback-json-classic:0.1.5")
        implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")

This is how I'm using it, and I'm using version 2.19.0.
If you use 2.18.2, the error does not occur based on the same code.

I tried to look at the built code to find the problem, but I didn't find it.

  1. how to solve the problem
  2. where is it located in the source code
    I would like to get some help on this.

Translated with DeepL.com

Version Information

2.19.0

Reproduction

<-- Any of the following

  1. Brief code sample/snippet: include here in preformatted/code section
  2. Longer example stored somewhere else (diff repo, snippet), add a link
  3. Textual explanation: include here
    -->
// Your code here

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    to-evaluateIssue that has been received but not yet evaluated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions