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.

WARNING: An illegal reflective access operation has occurred

See original GitHub issue

Describe the bug

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.ibm.fhir.model.util.XMLSupport (file:/Users/rubberduck/.gradle/caches/modules-2/files-2.1/com.ibm.fhir/fhir-model/4.7.0/706afb6278d6bf5e56dec035ea17a0f326f41bba/fhir-model-4.7.0.jar) to constructor com.sun.xml.internal.stream.XMLInputFactoryImpl()

Environment Which version of IBM FHIR Server?

4.7.0

To Reproduce Steps to reproduce the behavior:

I’m not entirely sure. Would be happy to help reproduce it given some guidance.

I’m running OpenJDK 11 and it seems that this behavior was introduced in JDK 9. If you’re using an older JDK, you might not see this.

Expected behavior A clear and concise description of what you expected to happen.

No warnings.

Additional context Add any other context about the problem here.

This StackOverflow Q&A may help someone who understands the problem better than I. https://stackoverflow.com/questions/50251798/what-is-an-illegal-reflective-access

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rubberduck203commented, Apr 22, 2021

Cool. Thanks @prb112. I didn’t see an issue anywhere, so wanted to make sure you were aware.

1reaction
prb112commented, Apr 22, 2021

Thanks @rubberduck203 we’re aware of the warning. It’s related to the XML library which we is dependent upon uses Reflection to access the xml model in memory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is an illegal reflective access? - java - Stack Overflow
Run it with --illegal-access=deny to get to know about and avoid opening packages from one module to another without a module declaration ...
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 >
An illegal reflective access operation has occurred when ...
You will see An illegal reflective access operation has occurred warning when installing and using AM (including Amster and ssoadm tools), Java ...
Read more >
How to fix “an illegal reflective access operation has occurred”
The "an illegal reflective access operation has occurred" warning message is related to the unauthorized access to parts of the JDK made by ......
Read more >
How can I solve "WARNING:An illegal reflective access ...
WARNING: An illegal reflective access operation has occurred ... WARNING: All illegal access operations will be denied in a future release.
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