[
https://issues.apache.org/jira/browse/MAHOUT-544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932488#action_12932488
]
Grant Ingersoll commented on MAHOUT-544:
----------------------------------------
Does your content field have Term Vectors?
> 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
> Fix For: 0.5
>
>
> 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.