[ 
https://issues.apache.org/jira/browse/MAHOUT-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982643#action_12982643
 ] 

Hudson commented on MAHOUT-584:
-------------------------------

Integrated in Mahout-Quality #565 (See 
[https://hudson.apache.org/hudson/job/Mahout-Quality/565/])
    MAHOUT-584 Avoid NPE when main props file can't be found


> MahoutDriver throws NPE if driver.classes.props is not on the classpath
> -----------------------------------------------------------------------
>
>                 Key: MAHOUT-584
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-584
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Frank Scholten
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.5
>
>         Attachments: MAHOUT-584.patch
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> Running MahoutDriver from an IDE run configuration with a program name such 
> as kmeans and help as arguments, will result in an NPE because it won't be 
> able to find the driver.classes.props file.
> By changing the catch block so it catches Exception instead of IOException, 
> MahoutDriver will use the driver.classes.default.props file so it can still 
> be run with or without the driver.classes.props. This is useful if one wants 
> to call the MahoutDriver from custom code outside mahout instead of using the 
> mahout script. However, if one wishes to run MahoutDriver from outside 
> mahout, the mahout-core, -math, -utils and example jars still need to be on 
> the classpath or else ClassNotFoundExceptions will be thrown when it tries to 
> add the classes for all the programs.

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

Reply via email to