[ http://issues.apache.org/jira/browse/NUTCH-123?page=all ]
     
Sami Siren closed NUTCH-123:
----------------------------

    Fix Version: 0.8-dev
     Resolution: Duplicate

problem reported to be fixed in 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
>      Fix For: 0.8-dev

>
> 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

Reply via email to