Web Application is throwing 500 server error code due to One Agent installed on web server

Hi Team,

Need help my web server, where my url is hosted throwing this error - 500 issue, after tracing logs i came to know that:

7-Feb-2025 20:36:32.552 SEVERE [main] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/*] only the HTTP methods [TRACE HEAD DELETE CONNECT OPTIONS PUT] are covered. All other methods are uncovered.
07-Feb-2025 20:36:54.681 SEVERE [PH_AJP31] org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet [jsp] threw exception
  java.lang.StackOverflowError
    at com.dynatrace.agent.introspection.uem.impl.AgentInjectingWriter.initDestination(AgentInjectingWriter.java:69)
    at com.dynatrace.agent.introspection.uem.impl.AgentInjectingWriter.getDestination(AgentInjectingWriter.java:64)
    at com.dynatrace.agent.introspection.uem.impl.AutoHtmlInjectorWriter.write(AutoHtmlInjectorWriter.java:69)

However I have stopped one Agent service then my url is up again,

Can you help how do i sort this out ?

@Adi_10

This is really a support case, however, I have previously seen this occurring where there is a double injection of RUM occurring between the App Services and Web Services.

The solution we had was to disable the RUM injection on the service / process and let the Web Server do the RUM injection.

Hope this helps.