Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4100

Could not set the store properties for a *-keyed-jdbc-store

    XMLWordPrintable

Details

    Description

      It is not possible to set the jdbc-store properties.

      i.e. the databaseType will throw an Exception:

      <replicated-cache name="MyJDBCCache" ...>
      <locking isolation="NONE" acquire-timeout="30000" concurrency-level="1000" striping="false" />
      <binary-keyed-jdbc-store datasource="java:/jdbc/CacheStoreDS" passivation="false" preload="true" purge="false" shared="true">
      <property name="createTableOnStart">true</property>
      <property name="dropTableOnExit">false</property>
      <property name="databaseType">MYSQL</property>
      <binary-keyed-table prefix="JDG">
      <id-column name="id" type="VARCHAR(255)" />
      <data-column name="datum" type="BLOB" />
      <timestamp-column name="version" type="BIGINT" />
      </binary-keyed-table>
      </binary-keyed-jdbc-store>
      </replicated-cache>

      ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool – 19) JBAS014612: Operation ("add") failed - address: ([
      ("subsystem" => "infinispan"),
      ("cache-container" => "clustered"),
      ("replicated-cache" => "MyJDBCCache")
      ]): org.infinispan.commons.CacheConfigurationException: Couldn't find a setter named [setDatabaseType] which takes a single parameter, for parameter databaseType on class [class org.infinispan.persistence.jdbc.configuration.JdbcBinaryStoreConfigurationBuilder]
      at org.infinispan.configuration.parsing.XmlConfigHelper.setValues(XmlConfigHelper.java:450)
      at org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder.withProperties(AbstractStoreConfigurationBuilder.java:91)
      at org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder.withProperties(AbstractStoreConfigurationBuilder.java:9)
      at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.parseCommonAttributes(CacheAdd.java:877)
      at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.handleStoreProperties(CacheAdd.java:581)
      at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.processModelNode(CacheAdd.java:520)
      at org.jboss.as.clustering.infinispan.subsystem.ClusteredCacheAdd.processModelNode(ClusteredCacheAdd.java:70)
      at org.jboss.as.clustering.infinispan.subsystem.SharedStateCacheAdd.processModelNode(SharedStateCacheAdd.java:47)
      at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.installRuntimeServices(CacheAdd.java:223)
      at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.performRuntime(CacheAdd.java:199)
      at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:440) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
      at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:322) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
      at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:229) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
      at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:224) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
      at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:322) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
      at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]

      17:41:13,919 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "JBAS014784: Failed executing subsystem infinispan boot operations"

      Attachments

        Issue Links

          Activity

            People

              mgencur Martin Gencur
              rhn-support-wfink Wolf-Dieter Fink
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: