Application Server 7
  1. Application Server 7
  2. AS7-3386

Infinispan subsystem need support for eagerly starting cache containers

    Details

    • Type: Bug Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical Critical
    • Resolution: Done
    • Affects Version/s: 7.1.0.CR1b
    • Fix Version/s: 7.1.0.Final
    • Component/s: Clustering
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      Add the following configuration attribute:
      <cache-container name="..." start="EAGER|LAZY"/>

      If LAZY, cache container will not start unless it is demanded by some other service.
      If EAGER, the cache container will start eagerly, bind to jndi, and all cache configurations will be defined.

        Gliffy Diagrams

          Activity

          Hide
          Roman Krutyakov added a comment -

          IllegalArgumentException: No enum constant org.jboss.as.clustering.infinispan.subsystem.StartMode.false

          In InfinispanSubsystemXMLReader this attribute incorrectly parsed as boolean

          Show
          Roman Krutyakov added a comment - IllegalArgumentException: No enum constant org.jboss.as.clustering.infinispan.subsystem.StartMode.false In InfinispanSubsystemXMLReader this attribute incorrectly parsed as boolean
          Hide
          Brent Douglas added a comment -

          I can confirm Roman's problem. Here is my config:

          <cache-container name="hibernate" default-cache="local-query" jndi-name="java:jboss/infinispan/hibernate" start="EAGER">

          And the stack trace:

          09:56:09,038 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool – 35) JBAS014612: Operation ("add") failed - address: ([
          ("subsystem" => "infinispan"),
          ("cache-container" => "hibernate")
          ]): java.lang.IllegalArgumentException: No enum const class org.jboss.as.clustering.infinispan.subsystem.StartMode.false
          at java.lang.Enum.valueOf(Enum.java:196) [:1.6.0_30]
          at org.jboss.as.clustering.infinispan.subsystem.StartMode.valueOf(StartMode.java:30) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheContainerAdd.performRuntime(CacheContainerAdd.java:130) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_30]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_30]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_30]
          at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]

          Show
          Brent Douglas added a comment - I can confirm Roman's problem. Here is my config: <cache-container name="hibernate" default-cache="local-query" jndi-name="java:jboss/infinispan/hibernate" start="EAGER"> And the stack trace: 09:56:09,038 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool – 35) JBAS014612: Operation ("add") failed - address: ([ ("subsystem" => "infinispan"), ("cache-container" => "hibernate") ]): java.lang.IllegalArgumentException: No enum const class org.jboss.as.clustering.infinispan.subsystem.StartMode.false at java.lang.Enum.valueOf(Enum.java:196) [:1.6.0_30] at org.jboss.as.clustering.infinispan.subsystem.StartMode.valueOf(StartMode.java:30) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheContainerAdd.performRuntime(CacheContainerAdd.java:130) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.clustering.infinispan.subsystem.CacheConfigOperationHandlers$5.execute(CacheConfigOperationHandlers.java:279) [jboss-as-clustering-infinispan-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:378) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:265) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:193) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_30] at java.lang.Thread.run(Thread.java:662) [:1.6.0_30] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
          Hide
          Paul Ferraro added a comment -

          Good catch Brent. Thanks for the fix.

          Show
          Paul Ferraro added a comment - Good catch Brent. Thanks for the fix.

            People

            • Assignee:
              Paul Ferraro
              Reporter:
              Paul Ferraro
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development