search cancel

Illegal Reflective Access Operation

book

Article ID: 255431

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Attempting to obtain the gateway status with the ConfigWizard.jar file generates 'illegal reflective access operation' warning messages.

 /opt/SecureSpan/JDK/bin/java -jar ConfigWizard.jar show status
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/opt/SecureSpan/Gateway/runtime/lib/jaxb-impl-2.1.13.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1
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

----------------------------------------------------------------------
Layer7 API Gateway Status
----------------------------------------------------------------------

Configuration:
    Node Status = RUNNING

Environment

CA API Gateway 10.1

Resolution

This will be addressed in a future gateway release.  For the time being you can execute the following command which will suppress the illegal reflective access warning message from getting generated:

/opt/SecureSpan/JDK/bin/java -jar --add-opens=java.base/java.lang=ALL-UNNAMED ConfigWizard.jar show status