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

**URL:** <https://community.dynatrace.com/t/web-application-is-throwing-500-server-error-code-due-to-one-agent-installed-on-web-server/50325>\
**Category:** Open Q&A\
**Tags:** application-security, oneagent, logs\
**Created:** [February 18, 2025, 5:34pm UTC](https://community.dynatrace.com/t/web-application-is-throwing-500-server-error-code-due-to-one-agent-installed-on-web-server/50325 "2025-02-18T17:34:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [February 18, 2025, 5:34pm UTC](https://community.dynatrace.com/t/web-application-is-throwing-500-server-error-code-due-to-one-agent-installed-on-web-server/50325/1 "2025-02-18T17:34:45Z")

</div>

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:

 ![Adi_10_0-1739899982614.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/2/d28784a18e609d722e5a1032ec87f0333d7a4b84.png)

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 ?

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [February 18, 2025, 11:23pm UTC](https://community.dynatrace.com/t/web-application-is-throwing-500-server-error-code-due-to-one-agent-installed-on-web-server/50325/2 "2025-02-18T23:23:00Z")

</div>

[@Adi\_10](https://community.dynatrace.com/user/81707)

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.
