6 Replies Latest reply on May 28, 2010 4:21 PM by John Kraus

    Modeshape infinispan connector issue with infinispan cache loader?

    John Kraus Newbie

      Using modeshape-jcr 1.2.0.Final, modeshape-connector-infinispan 1.2.0.Final and infinispan 4.0.0.Final

       

      I am able to create an infinispan cache with a JDBC based cache loader using the configuration provided here

       

      However, if I try to build a JCR repository backed by a cache loaded infinispan cache, I get the following error.

      org.infinispan.CacheException: Unable to invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.start() on object

      Full stack trace is attached.

       

      Here is my inifinispan-config.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="urn:infinispan:config:4.0">
          <global>
              <globalJmxStatistics enabled="true" jmxDomain="infinispan"
                  allowDuplicateDomains="false" />
          </global>
          <default>
              <jmxStatistics enabled="true" />
              <loaders>

                  <loader
                      class="org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore"
                      fetchPersistentState="false" ignoreModifications="false"
                      purgeOnStartup="false">
                      <properties>
                          <property name="stringsTableNamePrefix" value="ISPN_STRING_TABLE" />
                          <property name="idColumnName" value="ID_COLUMN" />
                          <property name="dataColumnName" value="DATA_COLUMN" />
                          <property name="timestampColumnName" value="TIMESTAMP_COLUMN" />
                          <property name="timestampColumnType" value="BIGINT" />
                          <property name="connectionFactoryClass"
                              value="org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory" />
                          <property name="connectionUrl"
                              value="jdbc:h2:mem:string_based_db;DB_CLOSE_DELAY=-1" />
                          <property name="userName" value="sa" />
                          <property name="driverClass" value="org.h2.Driver" />
                          <property name="idColumnType" value="VARCHAR(255)" />
                          <property name="dataColumnType" value="BINARY" />
                          <property name="dropTableOnExit" value="true" />
                          <property name="createTableOnStart" value="true" />
                      </properties>
                  </loader>
              </loaders>

          </default>
      </infinispan>