You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Remco Verhoef (JIRA)" <ji...@apache.org> on 2007/12/30 17:31:43 UTC

[jira] Updated: (NUTCH-597) Fetcher2 - java.lang.NullPointerException when host does not exist and fetcher.threads.per.host.by.ip is set to true causes threads to finish.

     [ https://issues.apache.org/jira/browse/NUTCH-597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remco Verhoef updated NUTCH-597:
--------------------------------

    Attachment: fetcher2.java.patch

Contains the patch code for Fetcher2.java.

> Fetcher2 - java.lang.NullPointerException when host does not exist and fetcher.threads.per.host.by.ip is set to true causes threads to finish.
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NUTCH-597
>                 URL: https://issues.apache.org/jira/browse/NUTCH-597
>             Project: Nutch
>          Issue Type: Bug
>          Components: fetcher
>    Affects Versions: 1.0.0
>         Environment: Debian
>            Reporter: Remco Verhoef
>         Attachments: fetcher2.java.patch
>
>
> When fetcher.threads.per.host.by.ip is set to true the following exception is thrown when the host does not exist. FetchItem.create returns null when it is not able to resolve the host address when it is redirecting.
> 2007-12-30 15:34:42,720 WARN  fetcher.Fetcher2 - Unable to resolve: {url}  , skipping.
> 2007-12-30 15:34:42,721 FATAL fetcher.Fetcher2 - java.lang.NullPointerException
> 2007-12-30 15:34:42,721 FATAL fetcher.Fetcher2 - at org.apache.nutch.fetcher.Fetcher2$FetchItemQueues.finishFetchItem(Fetcher2.java:327)
> 2007-12-30 15:34:42,721 FATAL fetcher.Fetcher2 - at org.apache.nutch.fetcher.Fetcher2$FetchItemQueues.finishFetchItem(Fetcher2.java:323)
> 2007-12-30 15:34:42,721 FATAL fetcher.Fetcher2 - at org.apache.nutch.fetcher.Fetcher2$FetcherThread.run(Fetcher2.java:632)
> 2007-12-30 15:34:42,721 FATAL fetcher.Fetcher2 - fetcher caught:java.lang..NullPointerException
> 2007-12-30 15:34:42,721 INFO  fetcher.Fetcher2 - -finishing thread FetcherThread, activeThreads=49

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.