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.

Java 11: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added

See original GitHub issue

Might be OK to ignore for now but seeing this warning when running with a jlink’d minimal Java 11 image:

Sep 07, 2019 12:25:42 AM com.fasterxml.jackson.databind.ext.Java7Support <clinit>
WARNING: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added

On closer inspection it looks like com.fasterxml.jackson.databind.ext.Java7SupportImpl tries to load the annotation java.beans.Transient to detect Java 7 but this doesn’t work on Java 11+ without the full java.desktop module dependency.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cowtowncodercommented, Sep 10, 2019

Ok, so, for 2.10 I split Java7Support/-Impl into 4 classes; 2 new ones being Java7Handlers/-Impl. J7Support now loads annotation part, and J7Handlers serializer/deserializer for Path type, and only latter will log anything in case of failure. So I think this should work better for J2SE at least. I’ll see if I should change 3.0 a bit as well, to revert merge of annotation access into main part and leave it as extension.

0reactions
cowtowncodercommented, Jun 3, 2020

For anyone following, there is: #2744 for Android part – question of Java 11 is little bit different.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jackson unable to load JDK7 types on Android - Stack Overflow
In Jackson 2.8.x this support for Java 7 class java.nio.file.Path is all loading from the same JAR file and is built-in.
Read more >
Solved - "Unable to load JDK7 types" | SpigotMC
I just started getting the following message at startup: [WARN] Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 ...
Read more >
ERROR: Unable to load JDK7 types : r/admincraft - Reddit
Uninstall old versions of java, make sure your launch script is referencing the new java installation. You may have to ensure java is...
Read more >
Java SE 7 Features and Enhancements - Oracle
Java Platform, Standard Edition 7 is a major feature release. This document includes information on features and enhancements in Java SE 7 and...
Read more >
openzipkin/zipkin - Gitter
... Java7Support: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added 19/10/16 05:07:11 WARN Resource: Detected type name in ...
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