AnsweredAssumed Answered

No validation of key management service policy during preparation of the gateway for API Portal

Question asked by karpa08 Employee on Apr 12, 2017
Latest reply on Apr 18, 2017 by karpa08

Hello everyone,

I am trying to set up the API Portal. I use 2 VMs at my host machine, in one lies the only gateway (single node) and the other will be used for the Portal.

I follow the steps mentioned here for the Policy Manager "", but while the "API Portal Integration Service" policy gets validated without problem, the same doesn't happen when I try to publish the "API Key Management Service".

It takes a lot of time and eventually I get the message that the programme couldn't retrieve the necessary policies. I attach below the log file that is being created.


2017/04/12 at 13:54:31 CEST

Build Info:
CA API Gateway 9.1.00 build 6342, built 20160414204206 by root at build64-rhel6

System Properties:
java.version: 1.8.0_73
java.specification.version: 1.8 Windows 7
os.arch: x86

Memory Usage:
190,371,160 bytes: the amount of free memory in the Java Virtual Machine.
259,522,560 bytes: the total amount of memory in the Java virtual machine.

Stack Trace:
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space

at com.l7tech.util.ExceptionUtils.wrap(Unknown Source)

at com.l7tech.console.poleditor.PolicyEditorPanel.validateAndDisplay(Unknown Source)

at com.l7tech.console.poleditor.PolicyEditorPanel.validatePolicy(Unknown Source)

at com.l7tech.console.poleditor.PolicyEditorPanel.validatePolicy(Unknown Source)

at com.l7tech.console.action.EditPolicyAction.performAction(Unknown Source)

at com.l7tech.console.action.BaseAction.performAction(Unknown Source)

at com.l7tech.console.action.BaseAction.actionPerformed(Unknown Source)

at com.l7tech.console.action.SecureAction.actionPerformed(Unknown Source)

at com.l7tech.console.action.BaseAction.invoke(Unknown Source)

at Source)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$500(Unknown Source)

at java.awt.EventQueue$ Source)

at java.awt.EventQueue$ Source)

at Method)

at$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at Source)

Caused by: java.lang.OutOfMemoryError: Java heap space

at java.util.Arrays.copyOf(Unknown Source)

at java.util.Arrays.copyOf(Unknown Source)

at java.util.ArrayList.grow(Unknown Source)

at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)

at java.util.ArrayList.ensureCapacityInternal(Unknown Source)

at java.util.ArrayList.add(Unknown Source)

at com.l7tech.policy.PolicyValidatorResult.addWarning(Unknown Source)

at com.l7tech.policy.validator.DefaultPolicyValidator.doValidatePath(Unknown Source)

at Source)

at Source)

at com.l7tech.policy.assertion.CurrentInterfaceDescription.doWithInterfaceDescription(Unknown Source)

at com.l7tech.policy.validator.DefaultPolicyValidator.validatePath(Unknown Source)

at com.l7tech.policy.validator.AbstractPolicyValidator.doValidation(Unknown Source)

at com.l7tech.policy.validator.AbstractPolicyValidator.validateWithCurrentAssertionTranslator(Unknown Source)

at Source)

at Source)

at com.l7tech.policy.assertion.CurrentAssertionTranslator.doWithAssertionTranslator(Unknown Source)

at com.l7tech.policy.validator.AbstractPolicyValidator.validate(Unknown Source)

at com.l7tech.policy.validator.DefaultPolicyValidator.validate(Unknown Source)

at Source)

at Source)

at Source)

at Source)

at Source)

CA Technologies Help Centre:
Before requesting Policy Manager support,
please gather the following information:
- Company name
- Contact person information (email, phone number and location)
- Details of problem

Support Email:

General Email:

Web Site:

604-681-9377 (local)
1-800-681-9377 (toll free)



The error message indicates issues with the memory but I can't see how this can be related.

Thanks a lot for the assistance!


Best regards,