You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2016/09/09 20:53:20 UTC

[jira] [Closed] (SYSTEMML-901) Improve message if MLContext not available

     [ https://issues.apache.org/jira/browse/SYSTEMML-901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deron Eriksson closed SYSTEMML-901.
-----------------------------------

> Improve message if MLContext not available
> ------------------------------------------
>
>                 Key: SYSTEMML-901
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-901
>             Project: SystemML
>          Issue Type: Improvement
>          Components: APIs
>            Reporter: Deron Eriksson
>            Assignee: Deron Eriksson
>             Fix For: SystemML 0.11
>
>
> Currently, if an MLContext object hasn't been created with the SparkContext, this can give rise to an error such as the following:
> {code}
> java.lang.NullPointerException
> at org.apache.sysml.api.mlcontext.MLContextConversionUtil.determineDataFrameDimensionsIfNeeded(MLContextConversionUtil.java:610)
> {code}
> For instance, if the MLContext object hasn't been created yet but a user does something such as trying to set inputs and outputs on a Script object, the above error occurs.
> {code}
> val LinRegCg = LinRegCgDML.in("X", X).in("y", y).out("beta_out")
> {code}
> The error message should be more informative and tell the user how to fix the issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)