Launching Policy Manager using Manager.jar file fails with - Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make sun.security.ec.ECPublicKeyImpl(byte[])
search cancel

Launching Policy Manager using Manager.jar file fails with - Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make sun.security.ec.ECPublicKeyImpl(byte[])

book

Article ID: 391780

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

When trying to launch Policy Manager from the Layer7_API_Gateway_Policy_Manager_11.1.00\Manager-11.1.00.17707.tar\Manager-11.1.00.17707 , and using Manager.jar 

Caused by: java.lang.reflect.InaccessibleObjectException:
Unable to make sun.security.ec.ECPublicKeyImpl(byte[]) 
throws java.security.InvalidKeyException accessible: 
module jdk.crypto.ec does not "opens sun.security.ec" to unnamed module @7d9d0818

Environment

CA API Gateway 11.1

Policy Manager 11.1 

Windows 11

Cause

The user was attempting to launch policy manager with a different JRE version from which is provided in the Policy Manager install directory which was causing the problem.

Resolution

1. Navigate to the folder where is installed the Policy Manager or folder where do you have the Manager.jar file

2. execute the command from the batch file to launches PM using the JRE that installed with in jre folder.

example :

C:\Program Files (x86)\CA Technologies - A Broadcom Company\Layer7 API Gateway Policy Manager 11.1.1.18484> @jre\bin\java -Xms128M -Xmx1024M -Xss256k -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Dsun.net.inetaddr.ttl=10 -Dnetworkaddress.cache.ttl=10 --add-opens=java.base/sun.security.jca=ALL-UNNAMED --add-opens=jdk.crypto.ec/sun.security.ec=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=java.security.jgss/sun.security.krb5.internal.ktab=ALL-UNNAMED --add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED --add-exports=java.base/sun.security.internal.spec=ALL-UNNAMED -jar Manager.jar