CorID HTTP request header missing from Rest Service calls

book

Article ID: 144931

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

The CorID HTTP request header is missing from Rest Service calls. The CorID header is present in SOAP service calls.

As a result, the Cross-Process transaction correlation is missing for the REST service.

Agent profile includes the following properties:

  com.wily.introscope.agent.soapheaderread.enabled=true

  com.wily.introscope.agent.httpheaderread.enabled=true

  com.wily.introscope.agent.soapheaderinsertion.enabled=false

  com.wily.introscope.agent.httpheaderinsertion.enabled=true

 

 

Environment

Release : Agent Version 10.7 (Service Pack 3)

Resolution

The logs captured the exceptions and debug messages similar to the ones below repeatedly:

[DEBUG] [IntroscopeAgent.Agent] CorrelationTrace: NameNotFoundException occurs when calling getValidEjbCrossProcessHelper() in ITracer_startTrace.
[DEBUG] [IntroscopeAgent.Agent] clazz is org.springframework.web.servlet.DispatcherServlet
[DEBUG] [IntroscopeAgent.EJBPROBLEM] com.wily.introscope.agent.trace.CrossProcessCorrelationEjbTracer$PbdCreator: Preparing cross process space for class org.springframework.web.servlet.DispatcherServlet(org.springframework.web.servlet.DispatcherServlet)
[DEBUG] [IntroscopeAgent.EJBPROBLEM] Extends: org.springframework.web.servlet.FrameworkServlet
[INFO] [IntroscopeAgent.Agent] Skip jndi error pbd location not set in agent profile. Will not create jndierrorskip.pbd.
[WARN] [IntroscopeAgent.Agent] Unable to create jndierrorskip.pbd, turn on DEBUG for more details
[DEBUG] [IntroscopeAgent.Agent] 

java.lang.Exception: Unable to create jndierrorskip.pbd, turn on DEBUG for more details
    at com.wily.introscope.agent.trace.CrossProcessCorrelationEjbTracer$PbdCreator.execute(CrossProcessCorrelationEjbTracer.java:443)
    at com.wily.introscope.agent.trace.CrossProcessCorrelationEjbTracer$PbdCreator.dumpClassInfo(CrossProcessCorrelationEjbTracer.java:430)
    at com.wily.introscope.agent.trace.CrossProcessCorrelationEjbTracer.ITracer_startTrace(CrossProcessCorrelationEjbTracer.java:156)
    at com.wily.introscope.agent.trace.InvocationData.IMethodTracer_startTrace(InvocationData.java:1374)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)

    . . . 
 

To mitigate their impact on CrossProcessCorrelationEjbTracer, explicitly specify the agent property introscope.agent.skipjndierror.location for creating jndierrorskip.pbd to see if it would help to address the problem.