nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NUTCH-406) Metadata tries to write null values
Date Thu, 23 Nov 2006 16:50:03 GMT
    [ http://issues.apache.org/jira/browse/NUTCH-406?page=comments#action_12452286 ] 
            
Chris A. Mattmann commented on NUTCH-406:
-----------------------------------------

Hi Andrzej,

  Yup, you caught the same thing as me. +1 for your solution. I will extend my above patch
by writing getNumNonNullValues(values) instead of values.length.

Cheers,
  Chris


> Metadata tries to write null values
> -----------------------------------
>
>                 Key: NUTCH-406
>                 URL: http://issues.apache.org/jira/browse/NUTCH-406
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Doğacan Güney
>         Assigned To: Chris A. Mattmann
>         Attachments: NUTCH-406.patch, NUTCH-406.patch
>
>
> During parsing, some urls (especially pdfs, it seems) may create <some_key, null>
pairs in ParseData's parseMeta. 
> When Metadata.write() tries to write such a pair, it causes an NPE.
> Stack trace will be something like this:
>         at org.apache.hadoop.io.Text.encode(Text.java:373)
>         at org.apache.hadoop.io.Text.encode(Text.java:354)
>         at org.apache.hadoop.io.Text.writeString(Text.java:394)
>         at org.apache.nutch.metadata.Metadata.write(Metadata.java:214)
> I can consistently reproduce this using the following url:
> http://www.efesbev.com/corporate_governance/pdf/MergerAgreement.pdf

-- 
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

       

Mime
View raw message