Adobe AEM instrumented with JavaAgent keeps disconnecting from the Introscope EM
search cancel

Adobe AEM instrumented with JavaAgent keeps disconnecting from the Introscope EM

book

Article ID: 142904

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

Adobe AEM instrumented with JavaAgent keeps disconnecting from the Introscope EM 

Symptoms:

From Webview, agent keeps connecting and disconnecting.


The Agent log shows Agent is connecting/disconnecting every 30s, the connection always broke shortly after connection due to below Exception:

11/22/19 04:20:32 PM CET [DEBUG] [IntroscopeAgent.IncomingMessageDeliveryTask] Unrecoverable exception while reading from Socket Transport connected with Socket[addr=/172.24.241.118,port=5001,localport=41559]
java.lang.UnsupportedOperationException: Deserialization not allowed for class com.wily.introscope.spec.agent.beans.autotracing.AgentMetricThresholdTrigger (on Fri Nov 22 16:20:31 CET 2019)
    at org.kantega.notsoserial.DefaultNotSoSerial.preventDeserialization(DefaultNotSoSerial.java:256)
    at org.kantega.notsoserial.DefaultNotSoSerial.onBeforeResolveClass(DefaultNotSoSerial.java:248)
    at org.kantega.notsoserial.ObjectInputStreamClassVisitor.onBeforeResolveClass(ObjectInputStreamClassVisitor.java:48)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1868)
...

Environment

APM Java Agent

Cause

The problem is is related to a Deserialization Firewall from Adobe AEM.  Firewall is blocking the deserialization of wily agent classes. 


https://helpx.adobe.com/experience-manager/kb/deserialization-not-allowed-error.html

Resolution

Add our classes (com.wily.) to the so called white-list section on AEM

 

Here are some reference discussing the issue and solution:


https://helpx.adobe.com/experience-manager/kb/deserialization-not-allowed-error.html
https://stackoverflow.com/questions/53328686/fop-aem-deserialization-not-allowed-for-class-org-apache-fop-fonts-fontcache

Attachments