0 Replies Latest reply on Nov 24, 2016 4:38 AM by Marta Ricci

    Migration JTreeCache from Jboss EAP 4.2 to JBoss EAP 7

    Marta Ricci Newbie

      Hallo!!

      I'm having trouble migrating TreeCache from Jboss  EAP 4.2 to JBoss EAP 7.

       

      The old configuration was:

       

      <?xml version="1.0" encoding="UTF-8" ?>
      <server>
              <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=MyCache">
                      <depends>jboss:service=Naming</depends>
                      <depends>jboss:service=TransactionManager</depends>
                      <attribute name="CacheMode">REPL_SYNC</attribute>
                      <attribute name="ClusterName">My-Cache-Cluster</attribute>
                      <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>             
              <attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
              <attribute name="IsolationLevel">READ_UNCOMMITTED</attribute>
              <attribute name="LockAcquisitionTimeout">10000</attribute>
              <attribute name="LockParentForChildInsertRemove">false</attribute>
                      <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>             
                      <attribute name="EvictionPolicyConfig">
                              <config>
                                      <attribute name="wakeUpIntervalSeconds">2</attribute> --> lifespan (millisecondi)
                                      <attribute name="eventQueueSize">500000</attribute>
                                      <!-- Cache wide default -->
                                      <region name="/_default_">
                                              <attribute name="maxNodes">0</attribute>
                                              <attribute name="timeToLiveSeconds">0</attribute>
                                              <attribute name="maxAgeSeconds">0</attribute>
                                      </region>
                                      <region name="/report/global">
                                              <attribute name="maxNodes">8000</attribute>
                                              <attribute name="timeToLiveSeconds">0</attribute>
                                              <!-- 1 week of max Age of node -->
                                              <attribute name="maxAgeSeconds">0</attribute>
                                      </region>
                                      <region name="/report/trip">
                                              <attribute name="maxNodes">8000</attribute>
                                              <attribute name="timeToLiveSeconds">0</attribute>
                                              <!-- 1 week of max Age of node -->
                                              <attribute name="maxAgeSeconds">0</attribute>
                                      </region>
                              </config>
                      </attribute>
                      <attribute name="CacheLoaderConfiguration">
                  <config>
                      <passivation>false</passivation>
                      <preload>/</preload>
                      <shared>true</shared>
                      <cacheloader>
                          <class>org.jboss.cache.loader.JDBCCacheLoader</class>
                          <!-- same as the old CacheLoaderConfig attribute -->
                          <properties>
                              cache.jdbc.datasource=java:/MyDS
                                                  cache.jdbc.table.name=tb_cache
                                                  cache.jdbc.table.create=true
                                                  cache.jdbc.table.drop=false
                                                  cache.jdbc.fqn.column=fqn
                                                  cache.jdbc.fqn.type=varchar(255)
                                                  cache.jdbc.node.column=node
                                                  cache.jdbc.node.type=blob
                                                  cache.jdbc.parent.column=parent
                          </properties>
                          <async>true</async>
                          <fetchPersistentState>false</fetchPersistentState>
                          <ignoreModifications>false</ignoreModifications>
                          <purgeOnStartup>false</purgeOnStartup>
                      </cacheloader>
                  </config>
             </attribute>
              </mbean>
        </server>
      

       

       

      I provided my new cache configuration within the standalone.xml, like this:

       

         <replicated-cache name="MyCache" mode="SYNC"> 
           <locking acquire-timeout="30000" concurrency-level="2000" isolation="READ_COMMITTED" striping="true"/>  
           <transaction locking="OPTIMISTIC" mode="BATCH" stop-timeout="60000"/>
           <eviction strategy="LRU" max-entries="10000"/>
             <expiration interval="10000" lifespan="10" max-idle="10"/>
             <string-keyed-jdbc-store data-source="MyDBDS" dialect="ORACLE" fetch-state="true" passivation="false" preload="true" purge="false" shared="true" singleton="true">
                  <string-keyed-table prefix="TB_CACHE_TEST">
                       <id-column name="FQN" type="VARCHAR(255)"/>
                       <data-column name="NODE" type="BLOB"/>
                       <timestamp-column name="TIMESTAMP" type="NUMBER"/>
                   </string-keyed-table>
              </string-keyed-jdbc-store>
             <state-transfer chunk-size="10000" timeout="60000"/>
        </replicated-cache>
      

       

       

      There is a problem, when to instantiate a new TreeCache, passing the standalone.xml configuration, it gives me this error:

       

      "... invocationBatching is not enabled for cache 'repl'. Make sure this is enabled by calling configurationBuilder.invocationBatching().enable() .. "

       

      I have set the mode in BATCH, invocation bathching is no longer settable from configuration files, since it has been deprecated, into JBoss EAP7.

       

      The only way I've found is to set this value is through Java code:

       

       @Resource(lookup = "java:jboss/infinispan/container/MyCache")
        private EmbeddedCacheManager manager;
        ...
        Cache<Object, Object> cache = manager.getCache();
        Configuration cfg2 = new ConfigurationBuilder().read(cache.getCacheConfiguration()).transaction()
        .transactionMode(TransactionMode.TRANSACTIONAL).build();
        Configuration cfg1 = new ConfigurationBuilder().read(cfg2).invocationBatching().enable().build();
        cache.getCacheManager().defineConfiguration("fixedCache", cfg1);
      

       

       

      1. Is there a way to properly configure all about into standalone.xml?
      2. Furthermore, I cannot find a reference to how export the <region> configurations inside <attribute name="EvictionPolicyConfig">

       

       

      Also the <string-keyed-jdbc-store> element seems to be ignored, cache is working but no write on database. I try to configure the store persistence inside the code, whith :

       

       ConfigurationBuilder builder = new ConfigurationBuilder().read(fullTmp);
        builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
             .fetchPersistentState(false).ignoreModifications(false).purgeOnStartup(true).dialect(DatabaseType.ORACLE)
             .table()
                .dropOnExit(false)
                .createOnStart(true)
                .tableNamePrefix("TB_CACHE_TEST3")
                .idColumnName("FQN").idColumnType("VARCHAR(255)")
                .dataColumnName("NODE").dataColumnType("BLOB")
                .timestampColumnName("TIMESTAMP").timestampColumnType("NUMBER")                  
             .dataSource()
                .jndiUrl("java:/MyDBDS");
      
        cache.getCacheManager().defineConfiguration("fullCache", builder.build());
      

       

       

      With this, the new configuration is able to create a new table "TB_CACHE_TEST3_fullCache" on db, but it fails when I try to retrieve the cache manager with this error:

       

      10:05:33,224 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (ServerService Thread Pool -- 58) ISPN000136: Error executing command GetKeyValueCommand, writing keys []: org.infinispan.persistenc

      e.keymappers.UnsupportedKeyTypeException: Unsupported key type: 'org.infinispan.tree.impl.NodeKey' on key: NodeKey{DATA, fqn=/}

              at org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.key2Str(JdbcStringBasedStore.java:405)

              at org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.load(JdbcStringBasedStore.java:192)

              at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStores(PersistenceManagerImpl.java:463)

              at org.infinispan.persistence.PersistenceUtil.loadAndCheckExpiration(PersistenceUtil.java:113)

              at org.infinispan.persistence.PersistenceUtil.lambda$loadAndStoreInDataContainer$21(PersistenceUtil.java:98)

              at org.infinispan.container.DefaultDataContainer.lambda$compute$227(DefaultDataContainer.java:324)

              at org.infinispan.commons.util.concurrent.jdk8backported.EquivalentConcurrentHashMapV8.compute(EquivalentConcurrentHashMapV8.java:1873)

              at org.infinispan.container.DefaultDataContainer.compute(DefaultDataContainer.java:323)

              at org.infinispan.persistence.PersistenceUtil.loadAndStoreInDataContainer(PersistenceUtil.java:91)

              at org.infinispan.interceptors.CacheLoaderInterceptor.loadInContext(CacheLoaderInterceptor.java:367)

              at org.infinispan.interceptors.CacheLoaderInterceptor.loadIfNeeded(CacheLoaderInterceptor.java:362)

              at org.infinispan.interceptors.CacheLoaderInterceptor.visitDataCommand(CacheLoaderInterceptor.java:183)

              at org.infinispan.interceptors.CacheLoaderInterceptor.visitGetKeyValueCommand(CacheLoaderInterceptor.java:137)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.EntryWrappingInterceptor.visitDataReadCommand(EntryWrappingInterceptor.java:133)

              at org.infinispan.interceptors.EntryWrappingInterceptor.visitGetKeyValueCommand(EntryWrappingInterceptor.java:123)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:113)

              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitDataReadCommand(OptimisticLockingInterceptor.java:85)

              at org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitGetKeyValueCommand(AbstractLockingInterceptor.java:77)

              at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitGetKeyValueCommand(OptimisticLockingInterceptor.java:96)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:345)

              at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:330)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.CacheMgmtInterceptor.visitDataReadCommand(CacheMgmtInterceptor.java:102)

              at org.infinispan.interceptors.CacheMgmtInterceptor.visitGetKeyValueCommand(CacheMgmtInterceptor.java:90)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:107)

              at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:76)

              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:66)

              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:336)

              at org.infinispan.cache.impl.CacheImpl.containsKey(CacheImpl.java:391)

              at org.infinispan.cache.impl.CacheImpl.containsKey(CacheImpl.java:384)

              at org.infinispan.cache.impl.AbstractDelegatingCache.containsKey(AbstractDelegatingCache.java:276)

              at org.infinispan.tree.impl.TreeStructureSupport.exists(TreeStructureSupport.java:35)

              at org.infinispan.tree.impl.TreeStructureSupport.exists(TreeStructureSupport.java:29)

              at org.infinispan.tree.impl.TreeCacheImpl.createRoot(TreeCacheImpl.java:441)

              at org.infinispan.tree.impl.TreeCacheImpl.<init>(TreeCacheImpl.java:36)

              at org.infinispan.tree.impl.TreeCacheImpl.<init>(TreeCacheImpl.java:28)

              at org.infinispan.tree.TreeCacheFactory.createTreeCache(TreeCacheFactory.java:38)

              at com.allianzppu.businesslogic.cache.TestInfinispan.test(TestInfinispan.java:67)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:107)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)

              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)

              at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:99)

              at org.jboss.as.service.component.ServiceComponentInstantiator$1.<init>(ServiceComponentInstantiator.java:65)

              at org.jboss.as.service.component.ServiceComponentInstantiator.initializeInstance(ServiceComponentInstantiator.java:63)

              at org.jboss.as.service.CreateDestroyService$1.run(CreateDestroyService.java:71)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              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)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

       

      10:05:33,442 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC000001: Failed to start service jboss.mbean.service.allianz:service=Cache.create: org.jboss.msc.service.StartException in ser

      vice jboss.mbean.service.allianz:service=Cache.create: WFLYSAR0001: Failed to execute legacy service create() method

              at org.jboss.as.service.CreateDestroyService$1.run(CreateDestroyService.java:75)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              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)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance

              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)

              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)

              at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:99)

              at org.jboss.as.service.component.ServiceComponentInstantiator$1.<init>(ServiceComponentInstantiator.java:65)

              at org.jboss.as.service.component.ServiceComponentInstantiator.initializeInstance(ServiceComponentInstantiator.java:63)

              at org.jboss.as.service.CreateDestroyService$1.run(CreateDestroyService.java:71)

              ... 6 more

      Caused by: org.infinispan.commons.CacheException: Unable to end batch

              at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:85)

              at org.infinispan.batch.AutoBatchSupport.endAtomic(AutoBatchSupport.java:27)

              at org.infinispan.tree.impl.TreeStructureSupport.exists(TreeStructureSupport.java:39)

              at org.infinispan.tree.impl.TreeStructureSupport.exists(TreeStructureSupport.java:29)

              at org.infinispan.tree.impl.TreeCacheImpl.createRoot(TreeCacheImpl.java:441)

              at org.infinispan.tree.impl.TreeCacheImpl.<init>(TreeCacheImpl.java:36)

              at org.infinispan.tree.impl.TreeCacheImpl.<init>(TreeCacheImpl.java:28)

              at org.infinispan.tree.TreeCacheFactory.createTreeCache(TreeCacheFactory.java:38)

              at com.allianzppu.businesslogic.cache.TestInfinispan.test(TestInfinispan.java:67)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:107)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)

              ... 11 more

      Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.

              at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1212)

              at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)

              at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:89)

              at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:101)

              at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:83)

              ... 38 more

      Caused by: java.lang.Throwable: setRollbackOnly called from:

              at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.setRollbackOnly(TransactionImple.java:339)

              at org.infinispan.interceptors.InvocationContextInterceptor.markTxForRollbackAndRethrow(InvocationContextInterceptor.java:180)

              at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:134)

              at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:76)

              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:66)

              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)

              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

              at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:336)

              at org.infinispan.cache.impl.CacheImpl.containsKey(CacheImpl.java:391)

              at org.infinispan.cache.impl.CacheImpl.containsKey(CacheImpl.java:384)

              at org.infinispan.cache.impl.AbstractDelegatingCache.containsKey(AbstractDelegatingCache.java:276)

              at org.infinispan.tree.impl.TreeStructureSupport.exists(TreeStructureSupport.java:35)

              ... 36 more

       

       

      10:05:33,645 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "INFINISPANTEST.jar")]) - failure description: {

      "WFLYCTL0080: Failed services" => {"jboss.mbean.service.allianz:service=Cache.create" => "org.jboss.msc.service.StartException in service jboss.mbean.service.allianz:service=Cache.create: WFLYSAR0001: Failed to

      execute legacy service create() method

          Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance

          Caused by: org.infinispan.commons.CacheException: Unable to end batch

          Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.

          Caused by: java.lang.Throwable: setRollbackOnly called from:"}}

      10:05:33,692 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "INFINISPANTEST.jar" (runtime-name : "INFINISPANTEST.jar")

      10:05:33,707 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.mbean.service.allianz:service=Cache.create: org.jboss.msc.service.StartException in service jboss.mbean.service.allianz:service=Cache.create: WF

      LYSAR0001: Failed to execute legacy service create() method

       

       

      10:05:33,848 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management

      10:05:33,848 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990

      10:05:33,848 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) started (with errors) in 6225ms - Started 373 of 725 services (3 services failed or

      missing dependencies, 451 services are lazy, passive or on-demand)

      10:05:33,894 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0010: Stopping weld service for deployment INFINISPANTEST.jar

      10:05:33,926 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment INFINISPANTEST.jar (runtime-name: INFINISPANTEST.jar) in 39ms

      10:05:34,004 INFO  [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0002: Content removed from location C:\Users\fanecco\jboss-eap-7.0\standalone\data\content\3a\4553ec7c766713f6156a358de27407173

      a4dd5\content

      10:05:34,004 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "INFINISPANTEST.jar" (runtime-name: "INFINISPANTEST.jar")

      10:05:34,004 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report

      WFLYCTL0184:    New missing/unsatisfied dependencies:

            service jboss.mbean.service.allianz:service=Cache.create (missing) dependents: [service jboss.mbean.service.allianz:service=Cache.start]

            service jboss.mbean.service.allianz:service=Cache.start (missing) dependents: [service jboss.mbean.registration.allianz:service=Cache]

      WFLYCTL0186:   Services which failed to start:      service jboss.mbean.service.allianz:service=Cache.create

       

       

      May you help me with this cache migration?

       

      Thank you for your kind cooperation,

      Natascia