Agent throwing encoded errors many times making Agent disconect
search cancel

Agent throwing encoded errors many times making Agent disconect

book

Article ID: 37283

calendar_today

Updated On:

Products

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

Issue/Introduction

Symptoms:

  Agent throwing encoded errors many times making Agent disconnect.

[DEBUG] [IntroscopeAgent.OutgoingMessageDeliveryTask] Caught an exception writing to connected hub.
java.io.UTFDataFormatException: encoded string too long: 70668 bytes
    at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
    at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeKnownSerializables(IsengardObjectOutputStream.java:658)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeSerializable(IsengardObjectOutputStream.java:638)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject2(IsengardObjectOutputStream.java:470)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject(IsengardObjectOutputStream.java:380)
    at com.wily.introscope.spec.metric.StringParser.writeExternal(StringParser.java:284)
    at com.wily.introscope.spec.metric.StringParser.smartWriteExternal(StringParser.java:318)
    at com.wily.introscope.spec.metric.AgentMetricPrefixParser.smartWriteExternal(AgentMetricPrefixParser.java:147)
    at com.wily.introscope.spec.metric.AgentMetricPrefix.writeExternal(AgentMetricPrefix.java:123)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeIsengardData(IsengardObjectOutputStream.java:594)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject2(IsengardObjectOutputStream.java:466)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject(IsengardObjectOutputStream.java:380)
    at com.wily.introscope.spec.metric.AgentMetric.writeExternal(AgentMetric.java:516)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeIsengardData(IsengardObjectOutputStream.java:594)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject2(IsengardObjectOutputStream.java:466)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject(IsengardObjectOutputStream.java:380)
    at com.wily.introscope.spec.metric.CompressingAgentMetricDataSet2$ZeroTimeslice.writeExternal(CompressingAgentMetricDataSet2.java:327)
    at com.wily.introscope.spec.metric.CompressingAgentMetricDataSet2.writeExternal(CompressingAgentMetricDataSet2.java:197)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeIsengardData(IsengardObjectOutputStream.java:586)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject2(IsengardObjectOutputStream.java:466)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject(IsengardObjectOutputStream.java:380)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject2(IsengardObjectOutputStream.java:434)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject(IsengardObjectOutputStream.java:380)
    at com.wily.isengard.messageprimitives.MethodCallMessage.writeExternal(MethodCallMessage.java:98)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeIsengardData(IsengardObjectOutputStream.java:594)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject2(IsengardObjectOutputStream.java:466)
    at com.wily.isengard.postofficehub.link.v1.IsengardObjectOutputStream.writeObject(IsengardObjectOutputStream.java:380)
    at com.wily.isengard.postofficehub.link.v1.OutgoingMessageDeliveryTask.deliverNextMessageInternal(OutgoingMessageDeliveryTask.java:144)
    at com.wily.isengard.postofficehub.link.v1.OutgoingMessageDeliveryTask.deliverNextMessage(OutgoingMessageDeliveryTask.java:86)
    at com.wily.isengard.postofficehub.link.v1.OutgoingRouteConnector.sendOutgoingMessages(OutgoingRouteConnector.java:151)
    at com.wily.isengard.postofficehub.link.v1.OutgoingRouteConnector.doTask(OutgoingRouteConnector.java:73)
    at com.wily.isengard.util.thread.AThreadedExecutable.run(AThreadedExecutable.java:192)
    at java.lang.Thread.run(Thread.java:701)

 

Environment: 

  Java Agent 10.0 and 10.1

  .NET Agent 10.0 and 10.1

 

Cause:

  Actually this issue occurs due to a very long metric name mostly seen in custom PBDs.

 

Workaround:

  Review your custom PBD and try to comment the entries starting with:

       TraceOneMethodWithParametersOfClass

  Above Instrumentation creates Metric-name-based Parameters, often used to Trace a specific method in the specified class. as below:
      "TraceOneMethodWithParametersOfClass: <class-name> <method> <Tracer-name> <Resource-Metric>".

  This directive generally can generate a large amount of metrics which is why we tackle this first.

 

Additional Information:  

  This document was created to help with your customization. Any further help needed related to this Knowledge Document or others customization must be addressed by CA Professional Services.

  This Behavior is already in our road-map to be fixed in futures release. In case you are facing this error without using custom PDBs, please contact our CA Support.

 

Environment

Release: CEMUGD00200-10.1-Introscope to CA Application-Performance Management-Upgrade Mai
Component: