You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Oleg Ignatenko (JIRA)" <ji...@apache.org> on 2017/11/03 12:20:00 UTC

[jira] [Commented] (IGNITE-6762) SparseDistributedMatrixExample failed with NPE

    [ https://issues.apache.org/jira/browse/IGNITE-6762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16237532#comment-16237532 ] 

Oleg Ignatenko commented on IGNITE-6762:
----------------------------------------

I managed to reproduce this issue in branch [ignite-2.3|https://github.com/apache/ignite/tree/ignite-2.3]. Note that amount of nodes at step 2 seems to be critically important to catch it: in my attempts starting an example without nodes or with only one node passed without issues while reported exception happened only when 2 and 3 nodes were started.

> SparseDistributedMatrixExample failed with NPE
> ----------------------------------------------
>
>                 Key: IGNITE-6762
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6762
>             Project: Ignite
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>          Components: examples, ml
>    Affects Versions: 2.3
>            Reporter: Sergey Kozlov
>            Assignee: Yury Babak
>            Priority: Critical
>             Fix For: 2.4
>
>
> 1. Open ignite-examples project in IDEA
> 2. Start 3 nodes by {{ExampleNodeStartup}}
> 3. Run {{SparseDistributedMatrixExample}}. It throws the exception: 
> {noformat}
> >>> Ignite grid started.
> >>> Create new SparseDistributedMatrix inside IgniteThread.
> Exception in thread "SparseDistributedMatrixExample-#51" java.lang.NullPointerException
> 	at org.apache.ignite.ml.math.distributed.CacheUtils.sum(CacheUtils.java:170)
> 	at org.apache.ignite.ml.math.distributed.CacheUtils.sparseSum(CacheUtils.java:160)
> 	at org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix.sum(SparseDistributedMatrix.java:185)
> 	at org.apache.ignite.examples.ml.math.matrix.SparseDistributedMatrixExample.lambda$main$1(SparseDistributedMatrixExample.java:58)
> 	at java.lang.Thread.run(Thread.java:745)
> [15:28:44] Ignite node stopped OK [uptime=00:00:04.399]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)