Thank you for the quick response.
Dream * Excel * Explore * Inspire Jon McAlexander Asst Vice President Middleware Product Engineering Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions 8080 Cobblestone Rd | Urbandale, IA 50322 MAC: F4469-010 Tel 515-988-2508 | Cell 515-988-2508 jonmcalexan...@wellsfargo.com This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -----Original Message----- From: Mark Thomas <ma...@apache.org> Sent: Wednesday, June 10, 2020 2:49 PM To: users@tomcat.apache.org Subject: Re: Tomcat 8.5.55 - Current request is not of type [org.apache.catalina.servlet4preview.http.HttpServletRequest]: On 10/06/2020 20:14, jonmcalexan...@wellsfargo.com.INVALID wrote: > I have an application team that is running into this error after upgrading to > Tomcat 8.5.55. They did not see this issue with 8.5.54 or earlier. > > Resolved [java.lang.IllegalStateException: Current request is not of > type [org.apache.catalina.servlet4preview.http.HttpServletRequest]: > org.apache.catalina.connector.RequestFacade@69fe5d1e<mailto:org.apache > .catalina.connector.RequestFacade@69fe5d1e>] > java.lang.IllegalStateException: Current request is not of type > [org.apache.catalina.servlet4preview.http.HttpServletRequest]: > org.apache.catalina.connector.RequestFacade@7feef908<mailto:org.apache > .catalina.connector.RequestFacade@7feef908> > > The class seems to be there until 8.5.54 and not later. > > catalina.jar > 301 Tue Jan 01 00:00:00 EST 1980 > org/apache/catalina/servlet4preview/http/HttpServletRequest.class > 972 Tue Jan 01 00:00:00 EST 1980 > org/apache/catalina/servlet4preview/http/HttpServletRequestWrapper.cla > ss > > And not found in 8.5.55 > > Any ideas? The Servlet 4.0 preview API was deprecated by Jan 2018 and removed over the last few releases as it added complexity that hindered back-ports. >From the changelog: 8.5.55: Remove the remainder of the deprecated Servlet 4 Preview API. Users still depending on this feature should ideally upgrade to Tomcat 9.0.x. If upgrade is not possible, application code should cast to the internal Tomcat implementation classes. (markt) 8.5.52: Remove PushBuilder from the deprecated Servlet 4 Preview API. Users still depending on this feature should ideally upgrade to Tomcat 9.0.x. If upgrade is not possible, application code should cast to the internal Tomcat implementation classes. (markt) 8.5.51: Remove part of the deprecated Servlet 4 Preview API. Users still depending on this feature should ideally upgrade to Tomcat 9.0.x. If upgrade is not possible, application code should cast to the internal Tomcat implementation classes. (markt) 8.5.25: ...as the early preview is now deprecated in favour of Tomcat 9 which provides a full Servlet 4.0 implementation. (markt) Mark > > > Dream * Excel * Explore * Inspire > Jon McAlexander > Asst Vice President > > Middleware Product Engineering > Enterprise CIO | Platform Services | Middleware | Infrastructure > Solutions > > 8080 Cobblestone Rd | Urbandale, IA 50322 > MAC: F4469-010 > Tel 515-988-2508 | Cell 515-988-2508 > > jonmcalexan...@wellsfargo.com<mailto:jonmcalexan...@wellsfargo.com> > > > This message may contain confidential and/or privileged information. If you > are not the addressee or authorized to receive this for the addressee, you > must not use, copy, disclose, or take any action based on this message or any > information herein. If you have received this message in error, please advise > the sender immediately by reply e-mail and delete this message. Thank you for > your cooperation. > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org