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

Oracle Community | user161771 - oracle | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Command Pattern Example Error

    Oracle Community | 7 years ago | user161771 - oracle
    com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread [java]

    Root Cause Analysis

    1. com.tangosol.util.AssertionException

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

      at com.tangosol.coherence.Component._assertFailed()
    2. com.tangosol.coherence
      DistributedCache$BinaryMap.put
      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:4)
      4. com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
      5. com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.put(DistributedCache.CDB:30)
      6. com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.put(DistributedCache.CDB:1)
      6 frames
    3. com.tangosol.util
      ConverterCollections$ConverterMap.put
      1. com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1541)
      1 frame
    4. com.tangosol.coherence
      SafeNamedCache.put
      1. com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.put(DistributedCache.CDB:1)
      2. com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
      2 frames
    5. com.oracle.coherence
      SubmitCommandExecutionRequestProcessor.process
      1. com.oracle.coherence.patterns.command.internal.CommandExecutor.acceptCommandExecutionRequest(CommandExecutor.java:708)
      2. com.oracle.coherence.patterns.command.internal.SubmitCommandExecutionRequestProcessor.process(SubmitCommandExecutionRequestProcessor.java:99)
      2 frames