com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread

Oracle Community | Adam Niwczinski-Oracle | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Pushreplication Example failing

    Oracle Community | 2 years ago | Adam Niwczinski-Oracle
    com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread

    Root Cause Analysis

    1. com.tangosol.util.AssertionException

      poll() is a blocking call and cannot be called on the Service thread

      at com.tangosol.coherence.Component._assertFailed()
    2. com.tangosol.coherence
      AbstractCachingScheme.realizeCache
      1. com.tangosol.coherence.Component._assertFailed(Component.CDB:12)
      2. com.tangosol.coherence.Component._assert(Component.CDB:3)
      3. com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
      4. com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:1)
      5. com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:24)
      6. com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:36)
      7. com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
      8. com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:26)
      9. com.tangosol.coherence.config.scheme.AbstractCachingScheme.realizeCache(AbstractCachingScheme.java:63)
      9 frames
    3. com.tangosol.net
      CacheFactory.getCache
      1. com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureCache(ExtensibleConfigurableCacheFactory.java:242)
      2. com.tangosol.net.CacheFactory.getCache(CacheFactory.java:205)
      3. com.tangosol.net.CacheFactory.getCache(CacheFactory.java:182)
      3 frames
    4. com.oracle.coherence
      PublishingCacheStore.store
      1. com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:108)
      2. com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:58)
      3. com.oracle.coherence.patterns.eventdistribution.distributors.coherence.CoherenceEventDistributor.establishEventChannelController(CoherenceEventDistributor.java:149)
      4. com.oracle.coherence.patterns.eventdistribution.configuration.EventDistributorTemplate.realize(EventDistributorTemplate.java:263)
      5. com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:208)
      6. com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:1)
      7. com.oracle.coherence.common.resourcing.AbstractDeferredSingletonResourceProvider.getResource(AbstractDeferredSingletonResourceProvider.java:85)
      8. com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.distribute(PublishingCacheStore.java:327)
      9. com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.store(PublishingCacheStore.java:523)
      9 frames
    5. com.tangosol.net
      ReadWriteBackingMap$StoreWrapper.store
      1. com.tangosol.net.cache.ReadWriteBackingMap$BinaryEntryStoreWrapper.storeInternal(ReadWriteBackingMap.java:6221)
      2. com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:5003)
      2 frames
    6. com.tangosol.util
      Base.ensureRuntimeException
      1. com.tangosol.util.Base.ensureRuntimeException(Base.java:289)
      1 frame
    7. com.tangosol.net
      ReadWriteBackingMap.put
      1. com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.onStoreFailure(ReadWriteBackingMap.java:5344)
      2. com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:5009)
      3. com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1438)
      4. com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:758)
      4 frames
    8. Java RT
      AbstractMap.putAll
      1. java.util.AbstractMap.putAll(AbstractMap.java:273)
      1 frame
    9. com.tangosol.net
      ReadWriteBackingMap.putAll
      1. com.tangosol.net.cache.ReadWriteBackingMap.putAll(ReadWriteBackingMap.java:801)
      1 frame
    10. com.tangosol.coherence
      PartitionedCache$Storage.postInvoke
      1. com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.putPrimaryResource(PartitionedCache.CDB:63)
      2. com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.postInvoke(PartitionedCache.CDB:36)
      2 frames