nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omkar Reddy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2309) Scoring-Similarity Plugin raises NullPointerException when error occurs in fetching URL
Date Thu, 02 Feb 2017 17:57:52 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-2309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15850238#comment-15850238
] 

Omkar Reddy commented on NUTCH-2309:
------------------------------------

Hi [~jxihong], I tried to reproduce this error but I was unable to do so. Can you please provide
more insights regarding this? Thanks.

> Scoring-Similarity Plugin raises NullPointerException when error occurs in fetching URL
> ---------------------------------------------------------------------------------------
>
>                 Key: NUTCH-2309
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2309
>             Project: Nutch
>          Issue Type: Bug
>          Components: plugin, scoring
>    Affects Versions: 1.12
>            Reporter: Joey Hong
>            Priority: Trivial
>              Labels: easyfix
>             Fix For: 1.13
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When the Scoring-Similarity plugin is enabled, a NullPointerException is thrown, cancelling
the crawl, when computing the Cosine Similarity for URLs where any kind of error occurred
in fetching it. 
> The error occurs in line 77 in CosineSimilarity.java:
> float score = Float.parseFloat(parseData.getContentMeta().get(Nutch.SCORE_KEY));
> This is probably because Nutch.SCORE_KEY is null for such URLs. It can be easily fixed
by setting a default value for score.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message