[
https://issues.apache.org/jira/browse/MAHOUT-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved MAHOUT-544.
------------------------------
Resolution: Invalid
Fix Version/s: (was: 0.5)
Assignee: Grant Ingersoll
Sounds like we need more info -- the input may be off. There's probably a
cleaner way to report the error though.
> lucene.vector -e file NPE happens
> ---------------------------------
>
> Key: MAHOUT-544
> URL: https://issues.apache.org/jira/browse/MAHOUT-544
> Project: Mahout
> Issue Type: Bug
> Components: Utils
> Affects Versions: 0.5
> Environment: ubuntu 10.10
> Reporter: beneo
> Assignee: Grant Ingersoll
>
> in Mahout/bin
> ./mahout lucene.vector -d /home/beneo/temp/index/ -i id -o
> /home/beneo/temp/vector/vector -f content -t /home/beneo/temp/vector/dict -e
> file -n 2
> NPE
> the class LuceneIterable#next, the result = mapper.getVecter() may return
> null;
> however, in the JWriterVectorWriter#write(Iterable<Vector>, long), in the
> loop for(Vector vector : iterable), the vector may be null.
> so, NPE throwed.
> the solutions is
> if(vector!=null){
> writer.writer ......
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.