You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Dennis Kubes (JIRA)" <ji...@apache.org> on 2009/03/25 15:54:51 UTC

[jira] Created: (NUTCH-729) NPE in FieldIndexer when BasicFields url doesn't exist

NPE in FieldIndexer when BasicFields url doesn't exist
------------------------------------------------------

                 Key: NUTCH-729
                 URL: https://issues.apache.org/jira/browse/NUTCH-729
             Project: Nutch
          Issue Type: Bug
          Components: indexer
    Affects Versions: 0.9.0, 1.0.0
         Environment: All
            Reporter: Dennis Kubes
            Assignee: Dennis Kubes
             Fix For: 1.1


There is a NullPointerException during a logging call in FieldIndexer when there isn't a url for a document.  Documents shouldn't be without urls but since the FieldIndexer doesn't validate fields it is possible for it to occur.  Most often this happens when BasicFields is run with the wrong segments directory and doesn't complain.  It could also occur if using the FieldIndexer to index things other than basic fields.

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


[jira] Commented: (NUTCH-729) NPE in FieldIndexer when BasicFields url doesn't exist

Posted by "Tadesse Sefer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723286#action_12723286 ] 

Tadesse Sefer commented on NUTCH-729:
-------------------------------------

Where do you change the logging to use a url key?

> NPE in FieldIndexer when BasicFields url doesn't exist
> ------------------------------------------------------
>
>                 Key: NUTCH-729
>                 URL: https://issues.apache.org/jira/browse/NUTCH-729
>             Project: Nutch
>          Issue Type: Bug
>          Components: indexer
>    Affects Versions: 0.9.0, 1.0.0
>         Environment: All
>            Reporter: Dennis Kubes
>            Assignee: Dennis Kubes
>             Fix For: 1.1
>
>         Attachments: NUTCH-729-1-20090235.patch
>
>
> There is a NullPointerException during a logging call in FieldIndexer when there isn't a url for a document.  Documents shouldn't be without urls but since the FieldIndexer doesn't validate fields it is possible for it to occur.  Most often this happens when BasicFields is run with the wrong segments directory and doesn't complain.  It could also occur if using the FieldIndexer to index things other than basic fields.

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


[jira] Updated: (NUTCH-729) NPE in FieldIndexer when BasicFields url doesn't exist

Posted by "Dennis Kubes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NUTCH-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Kubes updated NUTCH-729:
-------------------------------

    Attachment: NUTCH-729-1-20090235.patch

Simple patch.  Changes the logging to use the key (which should be url and which should always exist).

> NPE in FieldIndexer when BasicFields url doesn't exist
> ------------------------------------------------------
>
>                 Key: NUTCH-729
>                 URL: https://issues.apache.org/jira/browse/NUTCH-729
>             Project: Nutch
>          Issue Type: Bug
>          Components: indexer
>    Affects Versions: 0.9.0, 1.0.0
>         Environment: All
>            Reporter: Dennis Kubes
>            Assignee: Dennis Kubes
>             Fix For: 1.1
>
>         Attachments: NUTCH-729-1-20090235.patch
>
>
> There is a NullPointerException during a logging call in FieldIndexer when there isn't a url for a document.  Documents shouldn't be without urls but since the FieldIndexer doesn't validate fields it is possible for it to occur.  Most often this happens when BasicFields is run with the wrong segments directory and doesn't complain.  It could also occur if using the FieldIndexer to index things other than basic fields.

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


[jira] Updated: (NUTCH-729) NPE in FieldIndexer when BasicFields url doesn't exist

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NUTCH-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated NUTCH-729:
------------------------------------

         Due Date: 26/Mar/09  (was: 26/Mar/09)
       Patch Info: [Patch Available]
    Fix Version/s:     (was: 1.1)

- pushing this out per http://bit.ly/c7tBv9

> NPE in FieldIndexer when BasicFields url doesn't exist
> ------------------------------------------------------
>
>                 Key: NUTCH-729
>                 URL: https://issues.apache.org/jira/browse/NUTCH-729
>             Project: Nutch
>          Issue Type: Bug
>          Components: indexer
>    Affects Versions: 0.9.0, 1.0.0
>         Environment: All
>            Reporter: Dennis Kubes
>            Assignee: Dennis Kubes
>         Attachments: NUTCH-729-1-20090235.patch
>
>
> There is a NullPointerException during a logging call in FieldIndexer when there isn't a url for a document.  Documents shouldn't be without urls but since the FieldIndexer doesn't validate fields it is possible for it to occur.  Most often this happens when BasicFields is run with the wrong segments directory and doesn't complain.  It could also occur if using the FieldIndexer to index things other than basic fields.

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