You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/05/01 00:04:16 UTC

[jira] [Commented] (NUTCH-1334) NPE in FetcherOutputFormat

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

Hudson commented on NUTCH-1334:
-------------------------------

Integrated in Nutch-trunk #2189 (See [https://builds.apache.org/job/Nutch-trunk/2189/])
    NUTCH-1334 NPE in FetcherOutputFormat (Revision 1477847)

     Result = FAILURE
tejasp : http://svn.apache.org/viewvc/nutch/trunk/?view=rev&rev=1477847
Files : 
* /nutch/trunk/CHANGES.txt
* /nutch/trunk/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java

                
> NPE in FetcherOutputFormat 
> ---------------------------
>
>                 Key: NUTCH-1334
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1334
>             Project: Nutch
>          Issue Type: Bug
>            Reporter: Julien Nioche
>             Fix For: 1.7
>
>         Attachments: NUTCH-1334.patch
>
>
> If fetcher.parse or fetcher.store.content are set to false AND the write method receives an instance of Parse or Content, a NPE will be thrown.
> This usually does not happen as the Fetcher does not output a Parse or Content based on the configuration, however this class is also used by the ArcSegmentCreator which is unaware of these parameters and will output a Parse or Content instance regardless of the configuration. One option would be to make the ArcSegmentCreator aware of the fetcher.* parameters and output things accordingly but it also makes sense to modify the FetcherOutputFormat so that it checks whether a subWriter has been created before trying to use it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira