W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2002

[BUG] invalid HTTP headers and HttpURLConnection.getContentType

From: Philippe Le Hegaret <plh@w3.org>
Date: 12 Jul 2002 16:53:34 -0400
To: Yves Lafon <ylafon@w3.org>
Cc: www-validator-css@w3.org
Message-Id: <1026507214.13928.429.camel@jfouffa>

http://www.health.wa.gov.au gives a "oops, internal error" message. I
looked a little bit and it seems that the HttpURLConnection in Jigsaw
does not like the HTTP Headers returned by the site:

HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Fri, 12 Jul 2002 20:48:37 GMT
Connection: close
Set-Cookie:
WEBTRENDS_ID=18.29.0.174-2134255200.29501925::B35165765B39CED9FD37CE3CEA870ED7; path=/; expires=Sat, 12-Jul-2003 20:48:37 GMT

Content-type: text/html
Page-Completion-Status: Normal
Page-Completion-Status: Normal
Set-Cookie: CFID=29773; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/; 
Set-Cookie: CFTOKEN=76545204; expires=Sun, 27-Sep-2037 00:00:00 GMT;
path=/; 

 
        


<html>
[...]

The blank line between the headers seems wrong to me ... 


Error detail:

[ERROR] http://www.health.wa.gov.au
java.lang.NullPointerException
        at org.w3c.www.protocol.http.HttpURLConnection.getContentType(HttpURLConnection.java:161)
        at org.w3c.css.css.HTMLStyleSheetParser.<init>(HTMLStyleSheetParser.java:107)
        at org.w3c.css.servlet.CssValidator.doGet(CssValidator.java:305)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
        at org.w3c.jigsaw.servlet.ServletWrapper$ServletRunner.run(ServletWrapper.java:540)
        at org.w3c.util.CachedThread.run(ThreadCache.java:87)


Philippe
Received on Friday, 12 July 2002 16:53:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:11 GMT