From d6707b5af6c6d808e09631a9755e4b0f917f34fd Mon Sep 17 00:00:00 2001 From: MadelineMurray <43356962+MadelineMurray@users.noreply.github.com> Date: Tue, 28 May 2019 12:09:03 -0700 Subject: [PATCH] Added troubleshooting point (#1495) Signed-off-by: Adrian Sutton --- docs/Troubleshooting/Troubleshooting.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/Troubleshooting/Troubleshooting.md b/docs/Troubleshooting/Troubleshooting.md index 1545b7f4af..3607bcc520 100644 --- a/docs/Troubleshooting/Troubleshooting.md +++ b/docs/Troubleshooting/Troubleshooting.md @@ -65,6 +65,28 @@ When running Pantheon from the Docker image a number of [command line options ar Not including a sufficient milestone in the genesis file can lead to unexpected and inconsistent behaviour without specific errors. Ensure a sufficient milestone is included in the genesis file (for example, `constantinoplefixblock`). +## Illegal Reflective Access Error on Startup + +When using Java 9 or later, the following error message may be displayed on startup and does not affect the operation of Pantheon: + +``` +WARNING: An illegal reflective access operation has occurred +WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/Users/madelinemurray/pantheon/build/distributions/pantheon-1.1.2-SNAPSHOT/lib/bcprov-jdk15on-1.61.jar) to constructor sun.security.provider.Sun() +WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG +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 +``` + +To stop the message being displayed, add the following to the environment: + +```bash tab="Linux / Mac OS" +export PANTHEON_OPTS="--add-opens java.base/sun.security.provider=ALL-UNNAMED" +``` + +```bash tab="Windows" +set PANTHEON_OPTS="--add-opens java.base/sun.security.provider=ALL-UNNAMED" +``` + ## Command Line Options Characters such as smart quotes and long (em) hyphens won't work in Pantheon command line options. Ensure quotes have