java.lang.ClassCastException: io.undertow.servlet.spec.HttpServletRequestImpl cannot be cast to com.example.api.rest.security.api.DemoServletRequestWrapper

Stack Overflow | Navi | 7 days ago
  1. 0

    Spring Boot 1.4.3 / servlet api 3.1 Request cannot be cast to custom CustomServletRequestWrapper which extends standard HttpServletRequestWrapper

    Stack Overflow | 7 days ago | Navi
    java.lang.ClassCastException: io.undertow.servlet.spec.HttpServletRequestImpl cannot be cast to com.example.api.rest.security.api.DemoServletRequestWrapper
  2. 0

    spring boot websocket+rabbitmq stomp with undertow ClassCastException

    Stack Overflow | 9 months ago | Dreampie
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS request, uri=http://localhost:8080/messages/019/1gso25hy/websocket; nested exception is org.springframework.web.socket.sockjs.SockJsTransportFailureException: WebSocket handshake failure; nested exception is java.lang.ClassCastException: io.undertow.websockets.jsr.ServerWebSocketContainer cannot be cast to org.apache.tomcat.websocket.server.WsServerContainer
  3. 0

    Error in springboot using undertow server UT005023

    Stack Overflow | 11 months ago | vijay chaudhary
    javax.servlet.ServletException: org.apache.thrift.transport.TTransportException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 9481#165070499

    GitHub | 1 year ago | satshil
    javax.servlet.ServletException: Could not resolve view with name '/index' in servlet with name 'grailsDispatcherServlet'
  6. 0

    Still problem with logfile of the registered-application

    GitHub | 9 months ago | harestupramadharma
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.setFilterProvider(Lcom/fasterxml/jackson/databind/ser/FilterProvider;)Lcom/fasterxml/jackson/databind/ObjectMapper;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      io.undertow.servlet.spec.HttpServletRequestImpl cannot be cast to com.example.api.rest.security.api.DemoServletRequestWrapper

      at com.example.api.filters.XSSFilter.doFilter()
    2. com.example.api
      XSSFilter.doFilter
      1. com.example.api.filters.XSSFilter.doFilter(XSSFilter.java:30)[classes!/:na]
      1 frame
    3. Undertow Servlet
      FilterHandler$FilterChainImpl.doFilter
      1. io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2 frames
    4. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    5. Undertow Servlet
      FilterHandler$FilterChainImpl.doFilter
      1. io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2 frames
    6. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:89)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    7. Undertow Servlet
      FilterHandler$FilterChainImpl.doFilter
      1. io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2 frames
    8. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    9. Undertow Servlet
      FilterHandler$FilterChainImpl.doFilter
      1. io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2 frames
    10. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    11. Undertow Servlet
      ServletAuthenticationCallHandler.handleRequest
      1. io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      3. io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      4. io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      5. io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      6. io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      7. io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      7 frames
    12. Undertow Core
      AbstractConfidentialityHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      2 frames
    13. Undertow Servlet
      ServletConfidentialityConstraintHandler.handleRequest
      1. io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      1 frame
    14. Undertow Core
      AuthenticationMechanismsHandler.handleRequest
      1. io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      1 frame
    15. Undertow Servlet
      CachedAuthenticatedSessionHandler.handleRequest
      1. io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      1 frame
    16. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      3. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      3 frames
    17. Undertow Servlet
      ServletInitialHandler$1.handleRequest
      1. io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      3. io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      4. io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)[undertow-servlet-1.3.25.Final.jar!/:1.3.25.Final]
      4 frames
    18. Undertow Core
      HttpServerExchange$1.run
      1. io.undertow.server.Connectors.executeRootHandler(Connectors.java:207)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      2. io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:802)[undertow-core-1.3.25.Final.jar!/:1.3.25.Final]
      2 frames
    19. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.8.0_112]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.8.0_112]
      3. java.lang.Thread.run(Unknown Source)[na:1.8.0_112]
      3 frames