Re: [Dspace-tech] Illegal argument exception

2008-01-24 Thread Mathias Hjelt
>> In the last few days I've been getting errors like this:
>> 
>> -- URL Was: http://deepblue.lib.umich.edu/dspace/handle/2027.42/31692
>>[..]
>> Exception:
>> java.lang.IllegalArgumentException: 2 Dec 2007 03:08:59 GMT at
>>
org.apache.catalina.connector.HttpRequestBase.getDateHeader(HttpRequestB
>> ase.java:860)
>
> My guess (and it is only a guess!) is that the date format being sent
by
> the crawler is incorrect, so Tomcat burps and spits it out.

We've also seen these since a few days back. HandleServlet.java does
this when the exception strikes:

long modSince = request.getDateHeader("If-Modified-Since");

So what happens is that the crawler is using an invalid
if-modified-since parameter in the http request. 

Now, our Tomcat doesn't seem to be creating any access logs (shouldn't
it?) so I can't check the source IP of this request. 

One odd thing is that the "URL Was:" section in the error mail I get is
missing the port number. I.e it shows
http://hostname/dspace/handle/xxx/yyy rather than
http://hostname:port/dspace/handle/xxx/yyy which is the only way our
DSpace can be acccessed since it's not listening to port 80. Probably
just a small bug in request.getRequestURL().toString() used by
storeOriginalURL but that's not very comforting..

best regards

Mathias Hjelt



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Illegal argument exception

2008-01-23 Thread Stuart Lewis [sdl]
Hi Jose,

> In the last few days I've been getting errors like this:
> 
> -- URL Was: http://deepblue.lib.umich.edu/dspace/handle/2027.42/31692
> -- Method: GET
> -- Parameters were:
> 
> Exception:
> java.lang.IllegalArgumentException: 2 Dec 2007 03:08:59 GMT
> at
> org.apache.catalina.connector.HttpRequestBase.getDateHeader(HttpRequestB
> ase.java:860)
> at 
> 
> I looked at the logs file and I don't see anything out of the normal
> going on.  It looks like crawling from google.  When I try the URL, it
> works fine.  Any ideas what could be causing this?

My guess (and it is only a guess!) is that the date format being sent by the
crawler is incorrect, so Tomcat burps and spits it out.

It works for your browser as your browser is sending a valid date format.

What is being sent is: 2 Dec 2007 03:08:59 GMT

According to RFC 1123 Section 5.2.14, the date stamp is supposed to be
formatted to the RFC 822 date specification (Section 5) except for the use
of a 4 digit year.

So comparing the spec with what was sent, it looks likes it is upset because
there is no 'day' (e.g. Mon / Tue / Wed etc) component. It should perhaps
read: 

Sun 2 Dec 2007 03:08:59 GMT

But as I said, it is only a guess, and I might be way off the mark.

Cheers,


Stuart
_

Gwasanaethau Gwybodaeth  Information Services
Prifysgol Aberystwyth  Aberystwyth University

E-bost / E-mail: [EMAIL PROTECTED]
 Ffon / Tel: (01970) 622860
_


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Illegal argument exception

2008-01-23 Thread Blanco, Jose
In the last few days I've been getting errors like this:

-- URL Was: http://deepblue.lib.umich.edu/dspace/handle/2027.42/31692
-- Method: GET
-- Parameters were:


Exception:
java.lang.IllegalArgumentException: 2 Dec 2007 03:08:59 GMT 
at
org.apache.catalina.connector.HttpRequestBase.getDateHeader(HttpRequestB
ase.java:860)
at 


I looked at the logs file and I don't see anything out of the normal
going on.  It looks like crawling from google.  When I try the URL, it
works fine.  Any ideas what could be causing this?

Thanks,

Jose

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech