Invoking getAlertSnapshot operation returns java.lang.reflect.InvocationTargetException

Document ID : KB000045231
Last Modified Date : 14/02/2018
Show Technical Document Details


Invoking Webservices getAlertSnapshot operation using SOAP UI returns :

<faultstring>com.wily.introscope.server.webservicesapi.IntroscopeWebServicesException: java.lang.reflect.InvocationTargetException</faultstring>


The getAlertSnapshot operation is invoked to get the current alert status(0,1,2,3), previous alert status, threshold definition for a specific alert mapped to a specific agent in a specified Management Module.

Alert States:
0- no data
1- Normal
2- Caution
3- Danger

With this understanding
-agentIdentifier -> maps to the name of agent for which alert is defined (Hostname|Process|AgentName)
-alertDefName -> Name of the alert as defined in the Management Module

A simpler way to visualize this information would be like this:

1. Stop the MOM or standalone EM:
Add the below lines at the end of the EM_HOME\config\

log4j.logger.Manager.Authentication=ERROR, console, logfile

2. Start the EM

3. Go to http://<EM Host>:<EM Port>/introscope-web-services/dashboards/alerts/IScopeView.jsp
this will give you all Management Modules that are currently being monitored and their current status(active/inactive)

4. Click on individual Management Module name to get list of all Agents that are mapped to alerts defined in particular management module (maps to agentIdentifier)

5. Click on the Agent further to get name of the Alert to which it's mapped to (alertDefName)

NOTE: When using SOAP UI, java.lang.reflect.InvocationTargetException might occurs also because the Management Module do not have any active alert so there is no alert status to retrieve.