[ 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 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
