Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6106

Exception is thrown during access, setting of cache in Infinispan in cluster with two nodes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.0.1.Final
    • Clustering
    • None

      Exception is thrown during access and setting of cache in Infinispan. The error occurs not immediately.
      Konfiguration des CacheContainer:
      <cache-container name="customCache" default-cache="cachedb">
      <transport lock-timeout="60000"/>
      <replicated-cache name="cachedb" mode="SYNC">
      <locking isolation="READ_COMMITTED" striping="false" acquire-timeout="60000" concurrency-level="1000"/>
      <transaction mode="BATCH"/>
      <expiration lifespan="15000"/>
      </replicated-cache>
      </cache-container>

      Access of cache from Java:

      @Resource(lookup = "java:jboss/infinispan/container/customCache")
      private CacheContainer cc;
      private Map<String, Object> cache;
      public void setInInfiniSpan(String name, Object object) {
      Cache<Object,Object> cache = cc.getCache();
      TransactionManager tm = cache.getAdvancedCache().getTransactionManager();
      try

      { cache.startBatch(); cache.put(name, object); cache.endBatch(true); }

      catch (SecurityException e)

      { // TODO Auto-generated catch block logger.error("SecurityException: "+e.getMessage(), e); }

      catch (IllegalStateException e)

      { // TODO Auto-generated catch block logger.error("IllegalStateException: "+e.getMessage(), e); }


      }

      Logs:

            pferraro@redhat.com Paul Ferraro
            serg_732173 serg polchevski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: