Launching policy manager 11.1.1 from a Windows 11 Enterprise Server which is connecting to a kubernetes gateway also at 11.1.1 and we are unable to use policy manager.
The following error is constantly generated whenever we click within policy manager or try to search for an assertion or policy:
"The policy manager encountered an internal error or misconfiguration and was unable to complete the operation"
When generating a report we could see the following stack trace generated:
java.lang.IllegalAccessError: class com.mercury.ftjadin.utils.WinsunUtils12 (in unnamed module @0x45bc501e) cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x45bc501e
CA API Gateway 11.x
We added the following setting to the 'PolicyManagerInstallDirectory/Layer7 API Gateway Policy Manager.ini' file:
--add-exports=java.desktop/sun.awt=ALL-UNNAMED
We then relaunched the 'Layer7 API Gateway Policy Manager.exe' and policy manager now works as expected and we no longer see any errors getting generated.