nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "YourSoft (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NUTCH-123) Cache.jsp some times generate NullPointerException
Date Sun, 01 Jan 2006 10:40:01 GMT
    [ http://issues.apache.org/jira/browse/NUTCH-123?page=comments#action_12361485 ] 

YourSoft commented on NUTCH-123:
--------------------------------

I think this issue can be closed. The source of the problem fixed in:
http://issues.apache.org/jira/browse/NUTCH-135


> Cache.jsp some times generate NullPointerException
> --------------------------------------------------
>
>          Key: NUTCH-123
>          URL: http://issues.apache.org/jira/browse/NUTCH-123
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>  Environment: All systems
>     Reporter: YourSoft
>     Priority: Critical

>
> There is a problem with the following line in the cached.jsp:
>   String contentType = (String) metaData.get("Content-Type");
> In the segments data there is some times not equals "Content-Type", there are "content-type"
or "Content-type" etc.
> The solution, insert these lines over the above line:
> for (Enumeration eNum = metaData.propertyNames(); eNum.hasMoreElements();) {
> 	content = (String) eNum.nextElement();
> 	if ("content-type".equalsIgnoreCase (content)) {
> 		break;
> 	}
> }
> final String contentType = (String) metaData.get(content);
> Regards,
>                 Ferenc

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


Mime
View raw message