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

TableExample and KeyValueBinaryViewExample fail with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0-alpha3
    • examples

    Description

      Exception in thread "main" java.util.concurrent.CompletionException: class org.apache.ignite.internal.manager.ListenerRemovedException: java.lang.NullPointerException
      	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:412)
      	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2108)
      	at org.apache.ignite.internal.table.distributed.TableManager.createTable(TableManager.java:382)
      	at org.apache.ignite.example.table.TableExample.main(TableExample.java:65)
      Caused by: class org.apache.ignite.internal.manager.ListenerRemovedException: java.lang.NullPointerException
      	at org.apache.ignite.internal.manager.Producer.removeListener(Producer.java:65)
      	at org.apache.ignite.internal.table.distributed.TableManager.lambda$createTableAsync$10(TableManager.java:489)
      	at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
      	at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
      	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
      	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1769)
      	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
      Caused by: class org.apache.ignite.lang.IgniteInternalCheckedException: java.lang.NullPointerException
      	... 11 more
      Caused by: java.util.concurrent.CompletionException: java.lang.NullPointerException
      	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
      	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
      	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766)
      	... 6 more
      Caused by: java.lang.NullPointerException
      	at org.apache.ignite.configuration.schemas.table.TableNode.partitions(Unknown Source)
      	at org.apache.ignite.internal.table.distributed.TableManager.lambda$createTableAsync$8(TableManager.java:464)
      	at org.apache.ignite.internal.configuration.tree.NamedListNode.create(NamedListNode.java:131)
      	at org.apache.ignite.internal.table.distributed.TableManager.lambda$createTableAsync$9(TableManager.java:452)
      	at org.apache.ignite.internal.configuration.DynamicConfiguration$1.descend(DynamicConfiguration.java:88)
      	at org.apache.ignite.configuration.schemas.table.TablesNode.construct(Unknown Source)
      	at org.apache.ignite.internal.configuration.DynamicConfiguration$1.descend(DynamicConfiguration.java:90)
      	at org.apache.ignite.internal.configuration.SuperRoot.construct(SuperRoot.java:137)
      	at org.apache.ignite.internal.configuration.DynamicConfiguration$1.descend(DynamicConfiguration.java:90)
      	at org.apache.ignite.internal.configuration.ConfigurationChanger.lambda$changeInternally$1(ConfigurationChanger.java:376)
      	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764)
      	... 6 more
      

      Attachments

        Issue Links

          Activity

            People

              v.pyatkov Vladislav Pyatkov
              vkulichenko Valentin Kulichenko
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h