GithubHelp home page GithubHelp logo

Comments (10)

stuart-alatus avatar stuart-alatus commented on July 22, 2024 1

I think I have solved this issue this morning. The issue was introduced in jackson-databind:jar:2.15.x. There are two solutions, to back port to jackson-databind:jar:2.14.x or explicitly import jackson-annotations with the 2.15.x libraries.

                        <dependency>
                                <groupId>com.fasterxml.jackson.core</groupId>
                                <artifactId>jackson-annotations</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>

I have tested both and receive valid results for both. I will move forward with the explicit import for now.

Let me know if you want me to try something different to confirm.

I appreciate your help with debugging this issue.

from merge-java-client.

dcb6 avatar dcb6 commented on July 22, 2024

It looks like this may be a dependency issue around your Jackson libraries

Could you share the following to help me look into this further?

  1. output of mvn dependency:tree
  2. any parts of your pom.xml where Jackson dependencies are defined

from merge-java-client.

stuart-alatus avatar stuart-alatus commented on July 22, 2024

Yes, here are my Jackson versions

                        <dependency>
                                <groupId>com.fasterxml.jackson.core</groupId>
                                <artifactId>jackson-core</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>
                        <dependency>
                                <groupId>com.fasterxml.jackson.core</groupId>
                                <artifactId>jackson-databind</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>
                        <dependency>
                                <groupId>com.fasterxml.jackson.dataformat</groupId> 
                                <artifactId>jackson-dataformat-yaml</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>

<dep.jackson.version>2.15.4</dep.jackson.version>

from merge-java-client.

dcb6 avatar dcb6 commented on July 22, 2024

Thanks! Could I get the mvn dependency:tree output as well?

from merge-java-client.

stuart-alatus avatar stuart-alatus commented on July 22, 2024

I'm having trouble running that command.

from merge-java-client.

dcb6 avatar dcb6 commented on July 22, 2024

Could you share what the issue with the command is? We'll need this output to continue troubleshooting

from merge-java-client.

stuart-alatus avatar stuart-alatus commented on July 22, 2024

I had an old version of maven-dependency-plugin. Problem fixed.

Here is part of the dependency tree. Prefer not to post the whole dependency tree here.

 +- dev.merge:merge-java-client:jar:1.0.8:compile
[INFO] |  +- com.squareup.okhttp3:okhttp:jar:4.12.0:compile
[INFO] |  |  +- com.squareup.okio:okio:jar:3.6.0:compile
[INFO] |  |  |  \- com.squareup.okio:okio-jvm:jar:3.6.0:compile
[INFO] |  |  |     \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.9.10:compile
[INFO] |  |  \- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.8.21:compile
[INFO] |  |     +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.8.21:compile
[INFO] |  |     \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.8.21:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.15.4:compile
[INFO] |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.12.3:compile
[INFO] |  \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.12.3:compile

from merge-java-client.

stuart-alatus avatar stuart-alatus commented on July 22, 2024

Based on the dependency tree, I updated my POM to the following:

<dep.jackson.version>2.15.4</dep.jackson.version>
                        <dependency>
                                <groupId>com.fasterxml.jackson.core</groupId>
                                <artifactId>jackson-core</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>
                        <dependency>
                                <groupId>com.fasterxml.jackson.core</groupId>
                                <artifactId>jackson-databind</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>
                        <dependency>
                                <groupId>com.fasterxml.jackson.dataformat</groupId>
                                <artifactId>jackson-dataformat-yaml</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>
                        <dependency>
                                <groupId>com.fasterxml.jackson.datatype</groupId>
                                <artifactId>jackson-datatype-jdk8</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>
                        <dependency>
                                <groupId>com.fasterxml.jackson.datatype</groupId>
                                <artifactId>jackson-datatype-jsr310</artifactId>
                                <version>${dep.jackson.version}</version>
                        </dependency>

Which created the following dependency tree:
``
[INFO] +- dev.merge:merge-java-client:jar:1.0.8:compile
[INFO] | +- com.squareup.okhttp3:okhttp:jar:4.12.0:compile
[INFO] | | +- com.squareup.okio:okio:jar:3.6.0:compile
[INFO] | | | - com.squareup.okio:okio-jvm:jar:3.6.0:compile
[INFO] | | | - org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.9.10:compile
[INFO] | | - org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.8.21:compile
[INFO] | | +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.8.21:compile
[INFO] | | - org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.8.21:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.15.4:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.15.4:compile
[INFO] | - com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.15.4:compile

But I still get the same error. 
`java.lang.NoSuchFieldError: READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE`

from merge-java-client.

dcb6 avatar dcb6 commented on July 22, 2024

Where are you running this, locally? If you haven't already, could you run mvn clean, rebuild the project, and try again?

from merge-java-client.

dcb6 avatar dcb6 commented on July 22, 2024

This looks like a good fix, glad you were able to figure out it!

from merge-java-client.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.