Smarts NCM: Loading error when loading Email Integration Adapter
search cancel

Smarts NCM: Loading error when loading Email Integration Adapter

book

Article ID: 331242

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


Smarts NCM Email integration adapter module does not start.

After JBOSS restart, the installed "Email integration adapter module" for Smarts NCM has not loaded.

The following errors are seen in the JBoss and server.log for Smarts NCM:

1, 2014-01-27 11:27:10,063 ERROR [com.voyence.configmgr.integration.modules.mail.jmx.MailStartup] (main) Cannot start e-mail Integration Module

2, 2014-01-27 11:27:10,066 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=vc:service=XXX Mail Integration Module state=Create mode=Manual requiredState=Installed
java.lang.NullPointerException

3, 2014-01-27 11:27:42,047 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
  Deployment "vc:service=XXX Mail Integration Module" is in error due to the following reason(s): java.lang.NullPointerException

The installed "Email-Integration Adapter" module name does not display on the list of the JMX-Console view of "vc"

Environment

VMware Smart Assurance - NCM

Cause

There is a race condition when loading the module into the JBoss server.

Resolution

To address this issue, you can add dependencies in the module jboss-service.xml as follows:
  1. Open the jboss-service.xml file found here:
$Voyence_Home/ /jboss/server/vc-server/deploy/30VCApi-9.1.0.sar/107-Email-mail-integration-module.sar/META-INF
  1. Append the following two dependencies to adapter module xml and save the file.
  <depends>vc:service=VoyenceControlStartup</depends>
  <depends>vc:service=Hibernate</depends>
  1. Restart the jobs and verify in JMX-Console if it is retaining the Email-adapter
  2. After update, confirm that the mbean element is as follows:
<mbean code="com.voyence.configmgr.integration.modules.mail.jmx.MailStartup"
         name="vc:service=Email Mail Integration Module">
                <attribute name="ConfigFilename">Email-integration-module.xml</attribute>
        <depends>jboss.j2ee:service=EJB,jndiName=91ApiService</depends>
        <depends>jboss.j2ee:service=EJB,jndiName=91IntegrationService</depends>
         <depends>vc:service=VoyenceControlStartup</depends>
        <depends>vc:service=Hibernate</depends>

  </mbean>