search cancel

Unable to access Portal CMS , error Get Key failed: null

book

Article ID: 201700

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

We are creating a new portal (This portal was configured from scratch) . But the portal is not starting, cannot access  and catalina.out is showing the error : 

10/13 18:39:28.811 DEBUG (main:) - [LifecycleStatus general] -- main: state change from 1 to 2

10/13 18:39:29.046 ERROR (main:) - [LRSWrapper general] -- java.security.UnrecoverableKeyException: Get Key failed: null         at java.base/sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:454)         at java.base/sun.security.util.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:90)         at java.base/java.security.KeyStore.getKey(KeyStore.java:1050)         at java.base/sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:145)         at java.base/sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)         at java.base/javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:271)         at com.thelevel.lrs.gateway.LRSWrapper.configureTLSContext(LRSWrapper.java:638)         at com.thelevel.lrs.gateway.LRSWrapper.processRequest(LRSWrapper.java:511)         at com.thelevel.lrs.gateway.LRSWrapper.checkOTK(LRSWrapper.java:202)         at com.thelevel.lrs.gateway.LRSGatewayPlugin.checkOTK(LRSGatewayPlugin.java:520)         at com.thelevel.lrs.gateway.LRSGatewayPlugin.start(LRSGatewayPlugin.java:172)         at com.thelevel.cms.plugins.PluginManager.startPlugins(PluginManager.java:391)         at com.thelevel.cms.plugins.PluginManager.init(PluginManager.java:89)         at com.thelevel.cms.CMSBootstrapper.composeApplication(CMSBootstrapper.java:454)         at com.thelevel.cms.CMSBootstrapper.contextInitialized(CMSBootstrapper.java:281)         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4690)         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5151)         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)         at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)         at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)         at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)         at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)         at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)         at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)         at org.apache.catalina.startup.Catalina.start(Catalina.java:633)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.base/java.lang.reflect.Method.invoke(Method.java:567)         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474) Caused by: java.lang.NullPointerException         at java.base/sun.security.pkcs12.PKCS12KeyStore$RetryWithZero.run(PKCS12KeyStore.java:289)         at java.base/sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:392)         ... 44 more  

 
 

Cause

1) When trying to login CMS , log file shows:

INFO Request URL not resolved: https://srv-apiuat01.domain.com:8443/

2) Firewall blocking 80 port

Environment

Release : 3.5

Component : API PORTAL

Resolution

1) used a curl command and review the output

curl –kv http://srv-apiuat01/admin

* About to connect() to srv-apiuat01 port 80 (#0)

* Trying 192.168.240.13     … Connected

* GET /admin HTTP/1.1

* User-Agent: curl/7.19.7

* Host: srv-apiuat01

* Location:/login.html

 

2) Open port 80 on firewall resolved