tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49979] New: SimpleDateFormat StringIndexOutOfBoundsException
Date Wed, 22 Sep 2010 18:19:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49979

           Summary: SimpleDateFormat StringIndexOutOfBoundsException
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: sosigene@gmail.com


thread dump here:
---------------------
http-8080-1@2990 daemon, prio=5, in group 'main', status: 'runnable'
  java.lang.Thread.State: RUNNABLE
      at java.lang.String.charAt(String.java:686)
      at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1778)
      at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1312)
      at java.text.DateFormat.parse(DateFormat.java:335)
      at
org.apache.tomcat.util.http.FastHttpDateFormat.internalParseDate(FastHttpDateFormat.java:191)
      at
org.apache.tomcat.util.http.FastHttpDateFormat.parseDate(FastHttpDateFormat.java:166)
      at org.apache.catalina.connector.Request.getDateHeader(Request.java:1837)
      at
org.apache.catalina.connector.RequestFacade.getDateHeader(RequestFacade.java:632)
      at
org.apache.catalina.servlets.DefaultServlet.checkIfModifiedSince(DefaultServlet.java:1604)
      at
org.apache.catalina.servlets.DefaultServlet.checkIfHeaders(DefaultServlet.java:615)
      at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:723)
      at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:332)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
      at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
      at java.lang.Thread.run(Thread.java:619)
------------------------
The date variable it attempts to parse above is: 
"Wed, 21 Apr 2010 21:20:26 GMT"

OS: CentOS5
Tomcat ver.: 6.0.20
requests are coming from 
Windows XP/IE6 SP3

the same can be reproduced with requests from Vista/Firefox 3.6.9. Will add
other environments/details as I test this on various Windows stations/locale as
cannot reproduce in linux.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message