P.s. the stacktrace when using a static method as proposed by Val: Classes:
public class WaxPhantomDataActivator implements LifecycleBean { @IgniteInstanceResource private Ignite grid; private IgnitePredicate<ClusterNode> filter = FlipperkastCluster.spookhuis().data().nodeFilter(); @Override public void onLifecycleEvent(LifecycleEventType event) throws IgniteException { if (event == LifecycleEventType.AFTER_NODE_START) { if (filter.apply(grid.cluster().localNode())) { grid.getOrCreateCache(new WaxPhantomCacheConfiguratie<>(filter)); } } } } public class WaxPhantomCacheConfiguratie extends FlipperkastCacheConfiguratie { public static final String NAAM = "WaxPhantom"; public WaxPhantomCacheConfiguratie() { this(null); } public WaxPhantomCacheConfiguratie(IgnitePredicate<ClusterNode> filter) { super(filter); setName(NAAM); } } Stacktrace: Caused by: org.apache.ignite.IgniteCheckedException: Failed to serialize object: CacheConfiguration [name=WaxPhantom, grpName=null, memPlcName=null, storeConcurrentLoadAllThreshold=5, rebalancePoolSize=2, rebalanceTimeout=10000, evictPlc=null, onheapCache=true, evictFilter=null, eagerTtl=true, dfltLockTimeout=0, nearCfg=null, writeSync=PRIMARY_SYNC, storeFactory=null, storeKeepBinary=false, loadPrevVal=false, aff=null, cacheMode=PARTITIONED, atomicityMode=ATOMIC, backups=0, invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCnt=2, maxConcurrentAsyncOps=500, sqlIdxMaxInlineSize=-1, writeBehindEnabled=false, writeBehindFlushSize=10240, writeBehindFlushFreq=5000, writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, writeBehindCoalescing=true, maxQryIterCnt=1024, affMapper=null, rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, longQryWarnTimeout=3000, qryDetailMetricsSz=0, readFromBackup=true, nodeFilter=nl.donna.workshop.ignite.flipperkast.api.cluster.FlipperkastCluster$2@17f6ab76, sqlSchema=null, sqlEscapeAll=false, cpOnRead=true, topValidator=null, partLossPlc=IGNORE, qryParallelism=1] -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/