BrowserAgent unable to inject snippet into Java JSP

Document ID : KB000072148
Last Modified Date : 28/02/2018
Show Technical Document Details
Issue:
APM DXC installed with Browser Agent on an application server, but the snippet injection fails in the customer's webpages hosted on weblogic server.
DigitalExperienceCollector.log has exception:
[XNIO-2 task-4] ERROR c.c.a.c.p.h.e.RestResponseEntityExceptionHandler - error caught: Agent browser"is not recognized
com.ca.apm.cxc.exception.AgentNotRecognizedException: Agent browser"is not recognized
Environment:
APM 10.x
Java JSP
Cause:
Check the JSP page response content encoding.
If the content encoding is not null, e.g. "Content-Encoding: gzip", then the IntroscopeAgent.profile property introscope.agent.browseragent.contentencoding.enabled" needs to be enabled to allow snippet injections by the Browser Agent. 
By default introscope.agent.browseragent.contentencoding.enabled=false"

Resolution:
Add this line into IntroscopeAgent.profile, and restart agent/AppServer
introscope.agent.browseragent.contentencoding.enabled=true
 
Additional Information:
The property introscope.agent.browseragent.contentencoding.enabled is included in the documentation here:
https://docops.ca.com/ca-experience-collector/en/browser-agent/implement-the-browser-agent/advanced-browser-agent-configuration#AdvancedBrowserAgentConfiguration-SkipFiltersingzipCompressedResponses