Hello,

I'm getting the following NullPointerException in FileWriteAheadLogManager.java 
at line 1313 while doing the following with 2.2.0 version  of Ignite.

2017-10-31 16:54:13,330 ERROR [exchange-worker-#34%IVTelemetryStorageIgnite%] 
o.a.i.i.p.c.d.d.p.GridDhtPartitionsExchangeFuture Failed to activate node 
components [nodeId=c3b514d7-67da-4282-bdab-5507e8bc35a2, client=false, 
topVer=AffinityTopologyVersion [topVer=1, minorTopVer=1]]
java.lang.NullPointerException: null
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager$FileArchiver.releaseWorkSegment(FileWriteAheadLogManager.java:1313)
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager$FileArchiver.access$6300(FileWriteAheadLogManager.java:1070)
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager$RecordsIterator.releaseWorkSegment(FileWriteAheadLogManager.java:2484)
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager$RecordsIterator.advanceSegment(FileWriteAheadLogManager.java:2464)
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.AbstractWalRecordsIterator.advance(AbstractWalRecordsIterator.java:149)
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager$RecordsIterator.<init>(FileWriteAheadLogManager.java:2352)
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager$RecordsIterator.<init>(FileWriteAheadLogManager.java:2290)
                at 
org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager.replay(FileWriteAheadLogManager.java:553)
                at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.restoreMemory(GridCacheDatabaseSharedManager.java:1323)
                at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.readCheckpointAndRestoreMemory(GridCacheDatabaseSharedManager.java:539)
                at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onClusterStateChangeRequest(GridDhtPartitionsExchangeFuture.java:770)
                at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:574)
                at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1901)
                at 
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
                at java.lang.Thread.run(Thread.java:745)


The java code is :

[...]
IgniteConfiguration cfg = new IgniteConfiguration();
        cfg.setIgniteInstanceName("StorageIgnite");
        cfg.setWorkDirectory("F:\\ignite\\work");

        PersistentStoreConfiguration psCfg = new PersistentStoreConfiguration();
        psCfg.setPersistentStorePath("F:\\ignite\\data");
        psCfg.setWalStorePath("F:\\ignite\\wal");
        psCfg.setWalArchivePath("F:\\ignite\\wal");

        cfg.setPersistentStoreConfiguration(psCfg);

        server = Ignition.start(cfg);
        server.active(true);
[...]

I'm starting with a empty « F:\\ignite" folder.

What's wrong ?

Thanks

Seb

Reply via email to