search cancel

Spectrum WebApp Admin Page "LOGIN ERROR - An unexpected error occurred."

book

Article ID: 255703

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

The customer cannot login to the WebApp admin page.
The login will appear and if he enters the default credentials he will get an error 
LOGIN ERROR - An unexpected error occurred.

Environment

Release :

Cause

the tomcat log shows a cert error for webtomcat

java.lang.Exception: Error occurred while reading webtomcat server.xml file. 

Caused by: java.lang.SecurityException: Certificate Not Valid
 at com.ca.integration.normalization.common.NIMServletContextListener$1.checkServerTrusted(NIMServletContextListener.java:562)
 at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:1256)
 at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638)
 at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:473)
 at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:369)
 at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:377)
 at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
 at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:422)
 at sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
 at sun.security.ssl.SSLTransport.decode(SSLTransport.java:152)
 at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1397)
 at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1305)
 at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
 ... 62 more
Nov 18, 2022 14:12:02.752 (https-jsse-nio-443-exec-2) - IOException while connecting to webapp, URL : https://172.22.150.40:9443/spectrum ,Msg : Certificate Not Valid
Nov 18, 2022 14:12:02.753 (https-jsse-nio-443-exec-2) - Trying with localhost
Nov 18, 2022 14:12:02.772 (https-jsse-nio-443-exec-2) - IOException while connecting to webapp, URL : https://localhost:9443/spectrum ,Msg : Certificate Not Valid
javax.net.ssl.SSLException: Certificate Not Valid

Caused by: java.lang.SecurityException: Certificate Not Valid

Resolution

After changing the admin URL from IP address back to the server name, the login works again.

Additional Information

similar problem

Unable to login Spectrum OneClick Client application - An unexpected error occurred: java.lang.NullPointerException