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.

Jackson jar issues

See original GitHub issue

Please see the following AWS SDK Java v1 issue comment for complete bug report, context and example code: https://github.com/aws/aws-sdk-java/issues/1120#issuecomment-635132880 (opening this issue over here since I’m observing this issue while using AWS SDK for Java v2):

In a nutshell:

Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.JsonFactory
	at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[?:?]
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]

And when trying to bump the jackson xml version separatedly (instead of relying on the AWS SDK jar dependency):

java.lang.module.FindException: Two versions of module com.fasterxml.jackson.core found in ./build/IGV-MacApp-dist/IGV_user.app/Contents/MacOS/../Java/lib (jackson-core-2.11.0.jar and jackson-core-2.10.4.jar)

None of this happened before with SDK version 2.8.5.

/cc @reisingerf

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
brainstormcommented, Jun 6, 2020

Thanks for the pointers, @davideby, made me think a bit about it and found the issue on https://github.com/igvteam/igv/pull/811/commits/90edd1e8ec9eb123eed45f8e1daf7e12227315af#diff-b2e60e6dba0d888da1bf8248dbbc287dR43 … although it shouldn’t be needed to put that AWS transitive dependency on modules-info.java, it looks like it solved the NoClassDefFoundError issue.

@debora-ito Any idea why that fastxml require is required in module-info.java now? It definitely wasn’t needed before and IGV does not use it anywhere, so it only comes from the AWS SDK 😒

/cc @reisingerf

1reaction
debora-itocommented, Jun 4, 2020

Thank you for the scans, I don’t see any version conflicts of jackson-core and I don’t know what else could it be. Have you tried cleaning up the dependency cache and forcing gradle to download them again?

Update: I edited your comment with the dependency tree, made it collapsible, makes it easier to scroll down the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FasterXML/jackson-core - GitHub
Overview. This project contains core low-level incremental ("streaming") parser and generator abstractions used by Jackson Data Processor.
Read more >
How to get JAR files of Jackson Libary for JSON Processing
In short, you just to copy paste following dependency in your pom.xml file and run the mvn install command to download required JAR...
Read more >
Download com.fasterxml.jackson.core JAR files with all ...
Download com.fasterxml.jackson.core JAR files ✓ With dependencies ✓ Documentation ✓ Source code.
Read more >
Jackson Dependency Issue in Spring Boot with Maven Build
This error occurs due to Jackson dependency conflict. We are working on a Spring Boot project and it's inheriting from the Spring Boot...
Read more >
Download jackson-core-2.2.3.jar - Java2s.com
Related examples in the same category ; 4. Download jackson-core-2.0.0-rc1.jar ; 5. Download jackson-core-2.0.0-rc2-sources.jar ; 6. Download jackson-core-2.0.0- ...
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