Agent disconnection when sending null data to API
search cancel

Agent disconnection when sending null data to API

book

Article ID: 144196

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

Advice when developing a custom service for the agent to give an example of where it can cause the agent to disconnect from the Enterprise Manager

No disconnection was recorded during the first hour of running the agent

- with debug log we had this log message:
[DEBUG] [IntroscopeAgent.ConnectionThread] ConnectionThread caught throwable while sending data java.lang.NullPointerException

With more debug operation we finally found that :

- agent.IAgent_getDataAccumulatorFactory().safeGetStringEveryEventDataAccumulator(metricname).IStringEveryEventDataAccumulator_addString(sanitizedValue);


with a null value
leads to an exception while sending data

The exception tries to close connection to server

 

Environment

Release : 10.7.0

Component : APM Agents

Resolution

The custom service code was verified to protect against a null value.