Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-4375

NullPointerException in SavedRequest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 10.0.0-M2
    • 10.0.0-M3
    • None
    • None

    Description

       

      https://github.com/apache/tomee/pull/1328
       
      Stack trace fetching "Content-Type" header:
      java.lang.NullPointerException: Cannot invoke "java.util.List.get(int)" because the return value of "java.util.Map.get(Object)" is null
      org.apache.tomee.security.http.SavedRequest$1.getHeader(SavedRequest.java:110)
      jakarta.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:83)
      com.sun.faces.context.RequestHeaderMap.get(RequestHeaderMap.java:48)
      com.sun.faces.context.RequestHeaderMap.get(RequestHeaderMap.java:32)
      java.base/java.util.Collections$UnmodifiableMap.get(Collections.java:1656)
      jakarta.faces.application.ViewHandler.calculateCharacterEncoding(ViewHandler.java:363)
      jakarta.faces.application.ViewHandler.initView(ViewHandler.java:236)
      com.sun.faces.application.view.MultiViewHandler.initView(MultiViewHandler.java:110)
      jakarta.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:81)
      com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:95)
      com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:131)
      jakarta.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:691)
      jakarta.faces.webapp.FacesServlet.service(FacesServlet.java:449)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:67)
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rzo1 Richard Zowalla
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m