08 May 2019 03:14 PM - last edited on 13 Dec 2021 03:11 PM by MaciejNeumann
Did anyone encounter this error on any of your WAS monitored applications?
This application is running on a WAS 7.6 (which is not supported, I know) but all other monitored applications work fine. I even searched for other uses of the "ebanking.framework.filters.EncryptionFilter.doFilter" method that generates this issue and all others work. Except this one.
I have to mention that this WAS process was formerly monitored with AppMon and had no issues. Yesterday we deactivated the AppMon agent and installed OneAgent on the host.
Do you guys have any ideea on how could I resolve this?
Root causes for requests that failed with HTTP 500 - Internal Server Error
100 % were caused by javax.servlet.http.HttpServletResponse.setStatus
Exception messages of javax.servlet.http.HttpServletResponse.setStatus
HTTP ***** setStatus called
Stacktraces of exceptions
java.lang.Thread.getStackTrace (Thread.java:1070)
com.compuware.apm.agent.introspection.servlet.ServletIntrospection.updateResponseStatusOnTraceTag (ServletIntrospection.java:968)[+]
com.ibm.ws.webcontainer.srt.SRTServletResponse.setStatus (SRTServletResponse.java)[+]
javax.servlet.http.HttpServlet.service (HttpServlet.java:738)[+]
com.ibm.ws.webcontainer.servlet.ServletWrapper.service (ServletWrapper.java:1661)[+]
ebanking.framework.filters.EncryptionFilter.doFilter (EncryptionFilter.java:104)
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter (FilterInstanceWrapper.java:190)[+]
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest (CacheServletWrapper.java:91)[+]
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest (WebApp.java:3954)[+]
Solved! Go to Solution.
08 May 2019 06:57 PM
My take on this is that the presence of our agent in a stacktrace is not usually indicative of us causing the problem, but simply a side effect of our code being hit while intercepting the the information we gather in the code. Are you suspecting us of causing the exception and not just reporting it?
09 May 2019 07:49 AM
Indeed, the last execution that is faulty is the "java.lang.Thread.getStackTrace". My logic was that doFilter triggered the IBM wrapper which called setStatus which is monitored and called updateResponseStatusOnTraceTag and that called the getStackTrace, but I now realize that getStackTrace could just be the actual cal from setStatus.
I was suspecting DT could be the culprit but I wasn't sure.
08 May 2019 07:48 PM
I agree with Dave, just because we're in the stack trace does not automatically implicate our agent.
In this situation the stack trace tells us the thread was processing a web request, specifically setting the response status code. Dynatrace instruments this code to fiddle with this response and immediately a stack trace is involved, which makes me suspicious that in this situation we are the root cause of the exception.
I would open a support case, but since WAS 7.6 is not supported, this makes it challenging and likely they won't work your case.
Sigh.
09 May 2019 07:56 AM
Actually, there was an issue yesterday on the application that uses that particular service (application which is not yet monitored with Dynatrace) and it turned out that the problem is not caused by this service.
I reanalyzed the stacktrace and it makes sense what you're saying.
I thought of opening a support ticket but firstly WAS7.6 is not in the supported matrix and secondly the issue is not affecting anything (as far as we know). I am going to do some digging inside the application logs to see if these issues occurred before OneAgent was there thus clearing our (Dynatrace's) name :).
24 May 2023 10:01 AM
Hello there,
Years later and we're encoutring the same issue with the same exception.
Do you by any chance remeber what was the issue and how did you actually resolve it ?
Thanks
09 Jun 2023 04:25 PM
Me too. No one complained, but its kinda weird.
Exception:
javax.servlet.http.HttpServletResponse.setStatus
Message:
HTTP 500 setStatus called
Stacktrace:
java.lang.Thread.getStackTrace(Thread.java:1137)
com.dynatrace.agent.introspection.servlet.ServletIntrospection.updateResponseStatusOnTraceTag(ServletIntrospection.java:754)
com.dynatrace.agent.introspection.servlet.ServletIntrospection.HttpServletResponseSetStatus(ServletIntrospection.java:699)
com.dynatrace.agent.introspection.servlet.ServletIntrospectionWrapper.HttpServletResponseSetStatus(ServletIntrospectionWrapper.java:543)
com.ibm.ws.webcontainer.srt.SRTServletResponse.setStatus(SRTServletResponse.java)
com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:1727)