Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6762

SparseDistributedMatrixExample failed with NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: examples, ml
    • Labels:
      None

      Description

      1. Open ignite-examples project in IDEA
      2. Start 3 nodes by ExampleNodeStartup
      3. Run SparseDistributedMatrixExample. It throws the exception:

      >>> 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]
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chief Yury Babak
                Reporter:
                skozlov Sergey Kozlov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: