HealthServlet gives an error Servlet.init() for servlet [HealthServlet] threw exception
search cancel

HealthServlet gives an error Servlet.init() for servlet [HealthServlet] threw exception

book

Article ID: 185474

calendar_today

Updated On:

Products

CA IT Asset Manager CA IT Asset Manager Asset Portfolio Management CA Service Management - Asset Portfolio Management ASSET PORTFOLIO MGMT- SERVER CA Service Desk Manager CA Service Management - Service Desk Manager CA Service Catalog Process Automation Manager CA Process Automation Base

Issue/Introduction

Service Desk Manager (SDM) users may encounter a ServletException when the HealthServlet fails to initialize. This typically occurs when multiple instances of the monitor are running on the same node, causing a conflict in the slump connection.

The following error appears in the JHealth.log, located in CATALINA_HOME\logs will contain:

Type: Exception Report
Message: Servlet.init() for servlet [HealthServlet] threw exception
Exception: javax.servlet.ServletException: Servlet.init() for servlet [HealthServlet] threw exception
Root Cause: java.lang.NullPointerException at com.ca.ServicePlus.slump.SLUMP.logobj(SLUMP.java:377)


Additionally, the same JHealth.log located in CATALINA_HOME\logs will contain:

ERROR SLUMP 519 Killing slump connection for existing HEALTH_MONITOR-SDMHostName due to loginUnconditional()

Environment

  • CA Service Desk Manager 17.2 and higher
  • Apache Tomcat
  • Windows/Linux Application Servers

Cause

Slump allows only one HealthServlet instance per SDM node. If another instance is already running on the same application server, the new connection attempt kills the existing one, leading to an initialization failure.

Resolution

  1. Identify all Tomcat or Java Web App Server engines running on the impacted node.

  2. Verify if more than one instance of HealthServlet is deployed across these engines.

  3. Stop the Tomcat service for the engine containing the redundant instance.

  4. Delete the redundant HealthServlet deployment.

  5. Restart the Tomcat service.

  6. To ensure correct deployment, follow the steps in Deploy the Health Servlet on the Application Server.

Additional Information

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/business-management/ca-service-management/17-2/administering/configure-ca-service-desk-manager/configure-the-ca-sdm-environment/deploy-the-health-servlet-on-the-application-server.html  contains the steps to deploy HealthServlet.