I upgraded the parser lib to 1.6 and that took care of the problem.
Thanks.
Subbu.
>
> What version of the parser are you using?
> I see no IllegalStateException being thrown by current code.
>
> It looks like some error where the parsing of the string returned from
> string = connection.getHeaderField ("Set-Cookie");
> is causing trouble.
>
> Try a more recent version of the parser and see if that fixes it.
> Otherwise you'll need to debug it and trap on IllegalStateException
> being thrown to see what is the issue.
>
> Derrick
>
> ----- Original Message ----
> From: Subramanya Sastry <sa...@cs...>
> To: htmlparser user list <htm...@li...>
> Sent: Friday, May 18, 2007 2:18:54 PM
> Subject: [Htmlparser-user] Exception (no cookie value)
>
> Hi there,
>
> For the last 3 days, I have been getting these errors ... Can anyone
> shed some light as to what is going on?
>
> Thanks,
> Subbu.
> --------------------------------------------------------------------
> SEVERE: Exception downloading news item :
> http://www.hindustantimes.com/redir.aspx?ID=c1c9f56c-f9ee-4e83-afc0-5fc2ef299160
> May 18, 2007 11:46:31 PM archiver.Source DownloadNewsItem
> SEVERE: Exception is : java.lang.IllegalStateException: no cookie value
> java.lang.IllegalStateException: no cookie value
> at
> org.htmlparser.http.ConnectionManager.parseCookies(ConnectionManager.java:1067)
> at
> org.htmlparser.http.ConnectionManager.openConnection(ConnectionManager.java:621)
> at
> org.htmlparser.http.ConnectionManager.openConnection(ConnectionManager.java:792)
> at org.htmlparser.Parser.<init>(Parser.java:251)
> at org.htmlparser.Parser.<init>(Parser.java:261)
|