You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "beneo (JIRA)" <ji...@apache.org> on 2010/11/15 07:32:14 UTC
[jira] Created: (MAHOUT-544) lucene.vector -e file NPE happens
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.
[jira] Commented: (MAHOUT-544) lucene.vector -e file NPE happens
Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (MAHOUT-544) lucene.vector -e file NPE happens
Posted by "Sean Owen (JIRA)" <ji...@apache.org>.
[ 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.