Layer7 API Management

 View Only
  • 1.  issues with an old policy manager?

    Posted Feb 09, 2022 06:12 AM
    Hello all,

    as CA/Broadcom is strict around support around old versions I was hoping someone here can help us. 

    If we install an old version of the policy manager, version 8.4.0 we get the following error. Has someone ever experienced this before and does have a solution for it?

    Thanks in advance



    Date/Time:
    2022/02/08 at 20:45:36 CAT

    Build Info:
    CA API Gateway 8.4.00 build 4874, built 20150702205731 by root at build64-rhel6

    System Properties:
    java.version: 1.8.0_40
    java.specification.version: 1.8
    os.name: Windows 8.1
    os.arch: amd64

    Memory Usage:
    145,811,424 bytes: the amount of free memory in the Java Virtual Machine.
    163,053,568 bytes: the total amount of memory in the Java virtual machine.

    Stack Trace:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpRequestExecutor' defined in class path resource [com/l7tech/console/resources/beans-application.xml]: Cannot resolve reference to bean 'httpComponentsClient' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpComponentsClient' defined in class path resource [com/l7tech/console/resources/beans-application.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient]: Constructor threw exception; nested exception is java.lang.RuntimeException: Missing standard PKIX trust manager
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1002)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:906)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
    at com.l7tech.console.Main.d(Unknown Source)
    at com.l7tech.console.Main.run(Unknown Source)
    at com.l7tech.console.Main.main(Unknown Source)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpComponentsClient' defined in class path resource [com/l7tech/console/resources/beans-application.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient]: Constructor threw exception; nested exception is java.lang.RuntimeException: Missing standard PKIX trust manager
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    ... 19 more
    Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient]: Constructor threw exception; nested exception is java.lang.RuntimeException: Missing standard PKIX trust manager
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
    ... 27 more
    Caused by: java.lang.RuntimeException: Missing standard PKIX trust manager
    at com.l7tech.console.security.b.a(Unknown Source)
    at com.l7tech.console.security.b.<init>(Unknown Source)
    at com.l7tech.console.security.b.<init>(Unknown Source)
    at com.l7tech.console.security.ManagerTrustManagerFactorySpi.engineGetTrustManagers(Unknown Source)
    at javax.net.ssl.TrustManagerFactory.getTrustManagers(TrustManagerFactory.java:285)
    at com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient.e(Unknown Source)
    at com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient.b(Unknown Source)
    at com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient.a(Unknown Source)
    at com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient.<init>(Unknown Source)
    at com.l7tech.gateway.common.spring.remoting.http.SecureHttpComponentsClient.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
    ... 29 more
    Caused by: java.security.KeyStoreException: problem accessing trust storejava.io.IOException: **** keystore format
    at sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:74)
    at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:250)
    ... 44 more

    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:
    support@layer7.com

    General Email:
    info@layer7.com

    Web Site:
    http://www.layer7tech.com

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

    Fax:
    604-681-9387


  • 2.  RE: issues with an old policy manager?

    Broadcom Employee
    Posted Feb 10, 2022 08:21 AM

    Hi :

    8.2 and 8.4 version are EOS since several years ago.

    https://support.broadcom.com/web/ecx/support-content-notification/-/external/content/release-announcements/CA-API-Gateway-Release-and-Support-Lifecycle-Dates/3023

    Similar problem you describe has been resolved by re-installing java 8, uninstalling Policy Manager and ensuring that the local user l7tech folder was removed too, then re-install PM. Also have been resolved by having a user with a working version copying over the local user l7tech folder to the other machine and then restarting the computer. By the way, the local user l7tech folder is located here on a Windows PC C:\Users\<windows user="">\.l7tech\</windows>

    Suggestion is to upgrade latest version (10.1) to leverage new features and support 

    thanks