SAP Knowledge Base Article - Preview

2715849 - 500 Internal Server Error is returned when opening "TrustedCAs" keystore view in NWA - KeyStoreException: Unable to recover a certificate chain

Symptom

After trying to renew a new certificate in TrustedCAs, 500 Internal Server Error is returned when opening "TrustedCAs" keystore view in NWA of AS Java. 

 500internalservererror.png

500 Internal Server Error SAP NetWeaver Application Server/Java AS

Failed to process request. Please contact your system administrator.

In related defaultTrace file the following can be found:

Error#com.sap.engine.services.servlets_jsp.ISE500#
com.sap.ASJ.web.000500###C0000A40988501500000000100001FC4#295476552000000004#sap.com/tc~lm~itsam~ui~mainframe~wd#com.sap.engine.services.servlets_jsp.ISE500#Administrator
#3##FF00B0A6B94011E8CF460000119C9D48#3557f503b94111e892500000119c9d48##0#Thread[HTTP Worker [@352401987],5,Dedicated_Application_Thread]#Plain##
500 Internal Server Error is returned for HTTP request [http://<hostname>:5XX00/webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd/FloorPlanApp]:
component [dispatcher],
web module [webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd],
application [sap.com/tc~lm~itsam~ui~mainframe~wd],
DC name [],
CSN component[],
problem categorization [],
internal categorization [500537821].
[EXCEPTION]
java.lang.NullPointerException: while trying to invoke the method com.sap.engine.services.keystore.jmx.data._gen.ExtendedEntryInfo.getEntryType() of a null object loaded from local variable 'entryInfo'
at com.sap.security.wd.keystore.KeystoreComponent.supplyKeystoreEntries(KeystoreComponent.java:1171)
[...]

and

#2.0#2018 09 16 03:06:01:903#+0200#Error#com.sap.engine.services.keystore#
com.sap.ASJ.key.sv0079#BC-JAS-SEC#keystore#C0000A409885057D0000000000002B94#295476550000000004#sap.com/tc~lm~itsam~ui~mainframe~wd#com.sap.engine.services.keystore#
Administrator#24##9B87E2A9B94B11E8AC360000119C9D46#2098947ab94c11e883f70000119c9d46##0#Thread[HTTP Worker [@733725909],5,Dedicated_Application_Thread]#Plain##
Can not get extended entry info for entry <private key name>
[EXCEPTION]
java.security.KeyStoreException: Unable to recover a certificate chain:
java.lang.ClassCastException: Cannot cast class iaik.asn1.UNKNOWN to class iaik.asn1.SEQUENCE
at com.sap.engine.services.keystore.impl.KeyStoreEntry.getCertificateChain(KeyStoreEntry.java:297)
at com.sap.engine.services.keystore.impl.util.EntryUtility.getStringRepresentation(EntryUtility.java:236)
at com.sap.engine.services.keystore.impl.util.EntryUtility.getExtendedEntryInfo(EntryUtility.java:186)
at com.sap.engine.services.keystore.jmx.bean.ViewManager.getExtendedEntryInfo(ViewManager.java:165)
at sun.reflect.GeneratedMethodAccessor464.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
at com.sap.security.wd.keystore.wdp.InternalKeystoreConfiguration.getExtendedEntryInfo(InternalKeystoreConfiguration.java:152)
at com.sap.security.wd.keystore.KeystoreComponent.supplyKeystoreEntries(KeystoreComponent.java:1170)
at com.sap.security.wd.keystore.wdp.InternalKeystoreComponent.supplyKeystoreEntries(InternalKeystoreComponent.java:445)
at com.sap.security.wd.keystore.wdp.IPublicKeystoreComponent$IKeystoreEntriesNode.doSupplyElements(IPublicKeystoreComponent.java:1111)
at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:110)
...

Read more...

Environment

SAP NetWeaever AS Java NWA

Product

SAP NetWeaver Application Server for Java all versions ; SAP NetWeaver all versions

Keywords

500 Internal Server Error, Trusted CAs, keystore view, KeyStoreException, Unable to recover a certificate chain, DELETE TrustedCAs , add keystore, Certificates and Keys, ClassCastException, supplyKeystoreEntries, keystore.jmx.data._gen.ExtendedEntryInfo.getEntryType() , KBA , BC-JAS-SEC , Security, User Management , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.