java.lang.IllegalArgumentException: UT010008: Header Wed, 09 Apr 2014 09:57:44 GMT; length=5571 cannot be converted to a date

Spring JIRA | Jan Grek | 3 years ago
  1. 0

    If-Modified-Since header is parsed as HTTP-date; but IE 10 sends additional length attribute in the header, e.g.: If-Modified-Since Wed, 09 Apr 2014 09:57:42 GMT; length=13774 This hapens when pressed F5 The same can be happening in Firefox. Could not complete request: java.lang.IllegalArgumentException: UT010008: Header Wed, 09 Apr 2014 09:57:44 GMT; length=5571 cannot be converted to a date at io.undertow.servlet.spec.HttpServletRequestImpl.getDateHeader(HttpServletRequestImpl.java:173) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at org.springframework.web.context.request.ServletWebRequest.checkNotModified(ServletWebRequest.java:173) [spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.resource.ResourceHttpRequestHandler.handleRequest(ResourceHttpRequestHandler.java:144) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:51) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:807) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

    Spring JIRA | 3 years ago | Jan Grek
    java.lang.IllegalArgumentException: UT010008: Header Wed, 09 Apr 2014 09:57:44 GMT; length=5571 cannot be converted to a date
  2. 0

    If-Modified-Since header is parsed as HTTP-date; but IE 10 sends additional length attribute in the header, e.g.: If-Modified-Since Wed, 09 Apr 2014 09:57:42 GMT; length=13774 This hapens when pressed F5 The same can be happening in Firefox. Could not complete request: java.lang.IllegalArgumentException: UT010008: Header Wed, 09 Apr 2014 09:57:44 GMT; length=5571 cannot be converted to a date at io.undertow.servlet.spec.HttpServletRequestImpl.getDateHeader(HttpServletRequestImpl.java:173) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at org.springframework.web.context.request.ServletWebRequest.checkNotModified(ServletWebRequest.java:173) [spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.resource.ResourceHttpRequestHandler.handleRequest(ResourceHttpRequestHandler.java:144) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:51) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:807) [spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

    Spring JIRA | 3 years ago | Jan Grek
    java.lang.IllegalArgumentException: UT010008: Header Wed, 09 Apr 2014 09:57:44 GMT; length=5571 cannot be converted to a date
  3. 0

    IllegalArgumentException: Bad Date Header in WL... | Oracle Community

    oracle.com | 1 year ago
    java.lang.IllegalArgumentException: Bad date header: 'Tue, 09 Sep 2008 01:47:21 GMT'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If-Modified-Since: Wrong format?

    Oracle Community | 1 decade ago | 666705
    java.lang.IllegalArgumentException: bad date header: 'Di, 11 Jul 2006 09:36:46 GMT'</b> <b>
  6. 0

    IllegalArgumentException: Bad Date Header in WL 10.3 on Russian Locale

    Oracle Community | 8 years ago | nick_belaevski
    java.lang.IllegalArgumentException: Bad date header: 'Tue, 09 Sep 2008 01:47:21 GMT'

    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.IllegalArgumentException

      UT010008: Header Wed, 09 Apr 2014 09:57:44 GMT; length=5571 cannot be converted to a date

      at io.undertow.servlet.spec.HttpServletRequestImpl.getDateHeader()
    2. Undertow Servlet
      HttpServletRequestImpl.getDateHeader
      1. io.undertow.servlet.spec.HttpServletRequestImpl.getDateHeader(HttpServletRequestImpl.java:173)[undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      1 frame
    3. JavaServlet
      HttpServletRequestWrapper.getDateHeader
      1. javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117)[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      2. javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117)[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      3. javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:117)[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      3 frames
    4. Spring
      ServletWebRequest.checkNotModified
      1. org.springframework.web.context.request.ServletWebRequest.checkNotModified(ServletWebRequest.java:173)[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      1 frame
    5. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.resource.ResourceHttpRequestHandler.handleRequest(ResourceHttpRequestHandler.java:144)[spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      2. org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:51)[spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)[spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)[spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931)[spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822)[spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      6 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      1 frame
    7. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:807)[spring-webmvc-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      1 frame