You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "alberto (JIRA)" <ji...@apache.org> on 2006/09/01 18:39:31 UTC

[jira] Created: (SHALE-270) Illegal date format

Illegal date format 
--------------------

                 Key: SHALE-270
                 URL: http://issues.apache.org/struts/browse/SHALE-270
             Project: Shale
          Issue Type: Bug
          Components: Remoting
    Affects Versions: 1.0.4-SNAPSHOT
         Environment: JSF 1.2, Glassfish.
            Reporter: alberto


I am serving my javascript resource with shale-remoting.
When the resorce enters in client cache, and the browser try to validate a cache entry I get this exception:

phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1a6af53) threw exception: java.lang.IllegalArgumentException: ven, 01 set 2006 16:00:23 GMT ven, 01 set 2006 16:00:23 GMT
org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader(CoyoteRequest.java:2104)
org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader(CoyoteRequestFacade.java:652)
javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:83)
org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince(AbstractResourceProcessor.java:349)
org.apache.shale.remoting.impl.AbstractResourceProcessor.process(AbstractResourceProcessor.java:101)
org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseListener.java:102)
...

You can see that "ven, 01 set 2006 16:00:23 GMT ven, 01 set 2006 16:00:23 GMT" is an italian date format.
I use FireFox, but I think FF is not the problem.
What I believe is that Shale is sending the "Last-Modified" date in an italian format (I am italian).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (SHALE-270) Illegal date format

Posted by "Craig McClanahan (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SHALE-270?page=all ]

Craig McClanahan resolved SHALE-270.
------------------------------------

    Fix Version/s: 1.0.4-SNAPSHOT
       Resolution: Fixed

Fixed by configuring the SimpleDateFormat instance used for creating HTTP header timestamps to use the US locale, and therefore pick up the required spellings.  Thanks to Ryan Lubke for pointing out the appropriate fix.

Fixed in nightly build 20061111.  Will be included in 1.0.4 also.


> Illegal date format
> -------------------
>
>                 Key: SHALE-270
>                 URL: http://issues.apache.org/struts/browse/SHALE-270
>             Project: Shale
>          Issue Type: Bug
>          Components: Remoting
>    Affects Versions: 1.0.4-SNAPSHOT
>         Environment: JSF 1.2, Glassfish.
>            Reporter: alberto
>             Fix For: 1.0.4-SNAPSHOT
>
>
> I am serving my javascript resource with shale-remoting.
> When the resorce enters in client cache, and the browser try to validate a cache entry I get this exception:
> phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1a6af53) threw exception: java.lang.IllegalArgumentException: ven, 01 set 2006 16:00:23 GMT ven, 01 set 2006 16:00:23 GMT
> org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader(CoyoteRequest.java:2104)
> org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader(CoyoteRequestFacade.java:652)
> javax.servlet.http.HttpServletRequestWrapper.getDateHeader(HttpServletRequestWrapper.java:83)
> org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince(AbstractResourceProcessor.java:349)
> org.apache.shale.remoting.impl.AbstractResourceProcessor.process(AbstractResourceProcessor.java:101)
> org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseListener.java:102)
> ...
> You can see that "ven, 01 set 2006 16:00:23 GMT ven, 01 set 2006 16:00:23 GMT" is an italian date format.
> I use FireFox, but I think FF is not the problem.
> What I believe is that Shale is sending the "Last-Modified" date in an italian format (I am italian).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira