3 Replies Latest reply on Sep 16, 2014 6:38 AM by Radim Vansa

    Named Cache Does not get Deleted

    Pranjal Jaju Newbie

      I am using Infinispan 6.0.1 and creating named Cache programatically. with disk persistence on I am not able to delete cache.

      I am Getting PersistanceException which is Having cause NullPointerException.

        • 1. Re: Named Cache Does not get Deleted
          Radim Vansa Master

          Post stacktrace and configuration.

          • 2. Re: Named Cache Does not get Deleted
            Pranjal Jaju Newbie

            Configuration :

             

            Configuration{

                classLoader=java.lang.ref.WeakReference@52d7d141,

                clustering=ClusteringConfiguration{

                    async=AsyncConfiguration{

                        asyncMarshalling=false,

                        replicationQueue=null,

                        replicationQueueInterval=5000,

                        replicationQueueMaxElements=1000,

                        useReplicationQueue=false

                    },

                    cacheMode=LOCAL,

                    hash=HashConfiguration{

                        consistentHashFactory=null,

                        hash=MurmurHash3,

                        numOwners=2,

                        numSegments=60,

                        groupsConfiguration=GroupsConfiguration{

                            enabled=false,

                            groupers=[

                               

                            ]

                        },

                        stateTransferConfiguration=StateTransferConfiguration{

                            chunkSize=10000,

                            fetchInMemoryState=false,

                            originalFetchInMemoryState=null,

                            timeout=240000,

                            awaitInitialTransfer=false,

                            originalAwaitInitialTransfer=null

                        }

                    },

                    l1=L1Configuration{

                        enabled=false,

                        invalidationThreshold=0,

                        lifespan=600000,

                        onRehash=false,

                        cleanupTaskFrequency=600000

                    },

                    stateTransfer=StateTransferConfiguration{

                        chunkSize=10000,

                        fetchInMemoryState=false,

                        originalFetchInMemoryState=null,

                        timeout=240000,

                        awaitInitialTransfer=false,

                        originalAwaitInitialTransfer=null

                    },

                    sync=SyncConfiguration{

                        replTimeout=15000

                    }

                },

                customInterceptors=CustomInterceptorsConfiguration{

                    interceptors=[

                       

                    ]

                },

                dataContainer=DataContainerConfiguration{

                    dataContainer=null,

                    keyEquivalence=org.infinispan.commons.equivalence.AnyEquivalence@2e029885,

                    valueEquivalence=org.infinispan.commons.equivalence.AnyEquivalence@2e029885

                },

                deadlockDetection=DeadlockDetectionConfiguration{

                    enabled=false,

                    spinDuration=100

                },

                eviction=EvictionConfiguration{

                    maxEntries=10000,

                    strategy=LRU,

                    threadPolicy=DEFAULT

                },

                expiration=ExpirationConfiguration{

                    lifespan=-1,

                    maxIdle=-1000,

                    reaperEnabled=true,

                    wakeUpInterval=60000

                },

                indexing=IndexingConfiguration{

                    enabled=false,

                    indexLocalOnly=false

                },

                invocationBatching=InvocationBatchingConfiguration{

                    enabled=false

                },

                jmxStatistics=JMXStatisticsConfiguration{

                    enabled=true

                },

                persistence=PersistenceConfiguration{

                    persistence=[

                        SingleFileStoreConfiguration{

                            location='data/cacheData',

                            maxEntries=-1

                        }

                    ],

                    passivation=false

                },

                locking=LockingConfiguration{

                    concurrencyLevel=32,

                    isolationLevel=READ_COMMITTED,

                    lockAcquisitionTimeout=10000,

                    useLockStriping=false,

                    writeSkewCheck=false

                },

                modules={

                   

                },

                storeAsBinary=StoreAsBinaryConfiguration{

                    enabled=false,

                    storeKeysAsBinary=true,

                    storeValuesAsBinary=true

                },

                transaction=TransactionConfiguration{

                    autoCommit=true,

                    cacheStopTimeout=30000,

                    eagerLockingSingleNode=false,

                    lockingMode=OPTIMISTIC,

                    syncCommitPhase=true,

                    syncRollbackPhase=false,

                    transactionManagerLookup=org.infinispan.transaction.lookup.GenericTransactionManagerLookup@138e91cf,

                    transactionSynchronizationRegistryLookup=null,

                    transactionMode=TRANSACTIONAL,

                    useEagerLocking=false,

                    useSynchronization=true,

                    recovery=RecoveryConfiguration{

                        enabled=true,

                        recoveryInfoCacheName='__recoveryInfoCacheName__'

                    },

                    reaperWakeUpInterval=1000,

                    completedTxTimeout=15000,

                    use1PcForAutoCommitTransactions=false

                },

                versioning=VersioningConfiguration{

                    enabled=false,

                    scheme=NONE

                },

                unsafe=UnsafeConfiguration{

                    unreliableReturnValues=false

                },

                sites=SiteConfiguration{

                    allBackups=[

                       

                    ],

                    backupFor=BackupForConfiguration{

                        remoteCache='null',

                        remoteSite='null'

                    },

                    disableBackups=false,

                    inUseBackupSites=[

                       

                    ]

                },

                compatibility=CompatibilityModeConfiguration{

                    enabled=false,

                    marshaller=null

                }

            }

             

             

            Stack Trace :

             

            org.infinispan.commons.CacheException: Error removing cache

              at org.infinispan.manager.DefaultCacheManager.removeCache(DefaultCacheManager.java:471)

              at com.cleartrail.clearinsight.infinispancache.InfinispanCache.deleteBucket(InfinispanCache.java:116)

              at com.cleartrail.clearinsight.tabularcache.infinispanprovider.BucketAgent.destroyCache(BucketAgent.java:377)

              at com.cleartrail.clearinsight.tabularcache.infinispanprovider.InfinispanCacheProvider.destroyCache(InfinispanCacheProvider.java:203)

              at com.cleartrail.clearinsight.tabularcache.management.CacheManager.removeDataSet(CacheManager.java:493)

              at com.cleartrail.clearinsight.tabularcache.ciservicization.OperationExecuter.performDeleteDataSetOperation(OperationExecuter.java:417)

              at com.cleartrail.clearinsight.tabularcache.ciservicization.OperationExecuter.run(OperationExecuter.java:97)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)

            Caused by: org.infinispan.persistence.spi.PersistenceException: java.lang.NullPointerException

              at org.infinispan.persistence.file.SingleFileStore.clear(SingleFileStore.java:364)

              at org.infinispan.persistence.manager.PersistenceManagerImpl.clearAllStores(PersistenceManagerImpl.java:383)

              at org.infinispan.commands.RemoveCacheCommand.perform(RemoveCacheCommand.java:49)

              at org.infinispan.manager.DefaultCacheManager.removeCache(DefaultCacheManager.java:466)

              ... 9 more

            Caused by: java.lang.NullPointerException

              at org.infinispan.persistence.file.SingleFileStore.clear(SingleFileStore.java:344)

              ... 12 more