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 9 warning for Afterburner

See original GitHub issue

When compiling a Dropwizard project with Java 9, Jackson compilation throws the following error,

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.fasterxml.jackson.module.afterburner.util.MyClassLoader (file:/Users/user/Code/application.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) WARNING: Please consider reporting this to the maintainers of com.fasterxml.jackson.module.afterburner.util.MyClassLoader WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:57
  • Comments:54 (25 by maintainers)

github_iconTop GitHub Comments

8reactions
re-thccommented, Jun 1, 2018

11 is out in September and 3.x might not be out until then? i.e. might be worth considering.

4reactions
jsjohnstcommented, May 16, 2018

Adding this gets me past the warning…

--add-opens java.base/java.lang=ALL-UNNAMED

Still needs a better solution though, but its a start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Java 9 warning for Afterburner - - Bountysource
When compiling a Dropwizard project with Java 9, Jackson compilation throws the following error,. WARNING: An illegal reflective access ...
Read more >
Java 9 Illegal Reflective Access Warning - Baeldung
Before Java 9, the Java Reflection API has a superpower: It could gain access to the non-public class members without limitation.
Read more >
JDK 11 migration issue from JDK8, Illegal reflective access by ...
Please advise on this. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.fasterxml.jackson.
Read more >
Release notes - Dropwizard-guicey - GitHub Pages
... instead of afterburner. On java 8 you'll see the following warning on application startup: ... BlackbirdModule: Unable to find Java 9+ MethodHandles....
Read more >
java - Oracle Help Center
For performance reasons, JDK 9 does not issue warnings for illegal static-access operations. --limit-modules module[,module...] Specifies the limit of the ...
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