0 Replies Latest reply on May 31, 2014 7:39 AM by younes dry

    Please anyone facing this issue before with the cloud cache store

    younes dry Newbie

      Hi folks,

       

      On a Grails application, I am using the modeshape implementation of the jcr, i need to use the infinispan cloud based cache store but it throws a serious exception, below the libraries versions and the stacktrace :

       

      compile 'org.modeshape:modeshape-jcr:3.8.0.Final'

      compile 'org.modeshape:modeshape-jcr-api:3.8.0.Final'

      compile "org.infinispan:infinispan-core:5.3.0.Final"

      compile "org.infinispan:infinispan-cachestore-cloud:5.3.0.Final"

       

      And my infinispan configuration file contains :

       

      <?xml version="1.0" encoding="UTF-8"?>

      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"

          xmlns="urn:infinispan:config:5.2">

          <global>

          </global>

          <namedCache name="IproCacheRepository">

              <storeAsBinary enabled="true" />

       

              <eviction strategy="LIRS" maxEntries="600" />

       

      <transaction

                  transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup"

                  transactionMode="TRANSACTIONAL" lockingMode="OPTIMISTIC" />

       

              <loaders passivation="false" shared="false" preload="true">

                  <loader class="org.infinispan.loaders.cloud.CloudCacheStore"

                      fetchPersistentState="false" ignoreModifications="false"

                      purgeOnStartup="false">

                      <properties>

                          <property name="identity" value="MyIdentity" />

                          <property name="password" value="Mypass" />

                          <property name="bucketPrefix" value="bucketPrefix" />

                          <property name="cloudService" value="s3" />

                          <property name="secure" value="true" />

                          <property name="compress" value="true"/>

                      </properties>

                      <async enabled="true" flushLockTimeout="15000" threadPoolSize="10" />

                  </loader>

              </loaders>

       

          </namedCache>

       

      </infinispan>

       

      The exception was :

       

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

      ->>  207 | invokeAccessibly in org.infinispan.util.ReflectionUtil

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

      |    889 | invoke    in org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod

      |    658 | invokeStartMethods in org.infinispan.factories.AbstractComponentRegistry

      |    647 | internalStart in     ''

      |    550 | start . . in     ''

      |    221 | start     in org.infinispan.factories.ComponentRegistry

      |    691 | start . . in org.infinispan.CacheImpl

      |    685 | wireAndStartCache in org.infinispan.manager.DefaultCacheManager

      |    648 | createCache in     ''

      |    544 | getCache  in     ''

      |     98 | get . . . in org.infinispan.schematic.Schematic

      |   1070 | <init>    in org.modeshape.jcr.JcrRepository$RunningState

      |    971 | <init> .  in     ''

      |    404 | doStart   in org.modeshape.jcr.JcrRepository

      |    648 | login . . in     ''

      |    619 | login     in     ''

      |    155 | login . . in     ''

      |     42 | getSession in com.dms.jcr.RepositoryService

      |    182 | cwd . . . in com.dms.jcr.ContentService

      |     39 | cwd       in grails.plugin.elfinder.command.ElfinderBaseCommand

      |     59 | execute . in grails.plugin.elfinder.command.ElfinderOpenCommand

      |     28 | index     in com.ipro.Elfinder.ElfinderConnectorController

      |    200 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter

      |     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter

      |     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter

      |     49 | doFilter  in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter

      |     82 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter

      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor

      |    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker

      ^    744 | run       in java.lang.Thread

      Caused by NoClassDefFoundError: org/jclouds/logging/config/LoggingModule

      ->>  800 | defineClass in java.lang.ClassLoader

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

      |    142 | defineClass in java.security.SecureClassLoader

      |    449 | defineClass in java.net.URLClassLoader

      |     71 | access$100 in     ''

      |    361 | run . . . in java.net.URLClassLoader$1

      |    355 | run       in     ''

      |    354 | findClass in java.net.URLClassLoader

      |    425 | loadClass in java.lang.ClassLoader

      |    412 | loadClass in     ''

      |    166 | start     in org.infinispan.loaders.cloud.CloudCacheStore

      |    155 | start . . in org.infinispan.loaders.decorators.AbstractDelegatingStore

      |    308 | start     in org.infinispan.loaders.decorators.AsyncStore

      |    155 | start . . in org.infinispan.loaders.CacheLoaderManagerImpl

      |    205 | invokeAccessibly in org.infinispan.util.ReflectionUtil

      |    889 | invoke .  in org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod

      |    658 | invokeStartMethods in org.infinispan.factories.AbstractComponentRegistry

      |    647 | internalStart in     ''

      |    550 | start     in     ''

      |    221 | start . . in org.infinispan.factories.ComponentRegistry

      |    691 | start     in org.infinispan.CacheImpl

      |    685 | wireAndStartCache in org.infinispan.manager.DefaultCacheManager

      |    648 | createCache in     ''

      |    544 | getCache  in     ''

      |     98 | get       in org.infinispan.schematic.Schematic

      |   1070 | <init> .  in org.modeshape.jcr.JcrRepository$RunningState

      |    971 | <init>    in     ''

      |    404 | doStart . in org.modeshape.jcr.JcrRepository

      |    648 | login     in     ''

      |    619 | login . . in     ''

      |    155 | login     in     ''

      |     42 | getSession in com.dms.jcr.RepositoryService

      |    182 | cwd       in com.dms.jcr.ContentService

      |     39 | cwd . . . in grails.plugin.elfinder.command.ElfinderBaseCommand

      |     59 | execute   in grails.plugin.elfinder.command.ElfinderOpenCommand

      |     28 | index . . in com.ipro.Elfinder.ElfinderConnectorController

      |    200 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter

      |     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter

      |     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter

      |     49 | doFilter  in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter

      |     82 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter

      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor

      |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker

      ^    744 | run . . . in java.lang.Thread

      Caused by ClassNotFoundException: org.jclouds.logging.config.LoggingModule

      ->>  366 | run       in java.net.URLClassLoader$1

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

      |    355 | run       in     ''

      |    354 | findClass in java.net.URLClassLoader

      |    425 | loadClass in java.lang.ClassLoader

      |    358 | loadClass in     ''

      |    800 | defineClass in     ''

      |    142 | defineClass in java.security.SecureClassLoader

      |    449 | defineClass in java.net.URLClassLoader

      |     71 | access$100 in     ''

      |    361 | run       in java.net.URLClassLoader$1

      |    355 | run . . . in     ''

      |    354 | findClass in java.net.URLClassLoader

      |    425 | loadClass in java.lang.ClassLoader

      |    412 | loadClass in     ''

      |    166 | start . . in org.infinispan.loaders.cloud.CloudCacheStore

      |    155 | start     in org.infinispan.loaders.decorators.AbstractDelegatingStore

      |    308 | start . . in org.infinispan.loaders.decorators.AsyncStore

      |    155 | start     in org.infinispan.loaders.CacheLoaderManagerImpl

      |    205 | invokeAccessibly in org.infinispan.util.ReflectionUtil

      |    889 | invoke    in org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod

      |    658 | invokeStartMethods in org.infinispan.factories.AbstractComponentRegistry

      |    647 | internalStart in     ''

      |    550 | start . . in     ''

      |    221 | start     in org.infinispan.factories.ComponentRegistry

      |    691 | start . . in org.infinispan.CacheImpl

      |    685 | wireAndStartCache in org.infinispan.manager.DefaultCacheManager

      |    648 | createCache in     ''

      |    544 | getCache  in     ''

      |     98 | get . . . in org.infinispan.schematic.Schematic

      |   1070 | <init>    in org.modeshape.jcr.JcrRepository$RunningState

      |    971 | <init> .  in     ''

      |    404 | doStart   in org.modeshape.jcr.JcrRepository

      |    648 | login . . in     ''

      |    619 | login     in     ''

      |    155 | login . . in     ''

      |     42 | getSession in com.dms.jcr.RepositoryService

      |    182 | cwd . . . in com.dms.jcr.ContentService

      |     39 | cwd       in grails.plugin.elfinder.command.ElfinderBaseCommand

      |     59 | execute . in grails.plugin.elfinder.command.ElfinderOpenCommand

      |     28 | index     in com.ipro.Elfinder.ElfinderConnectorController

      |    200 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter

      |     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter

      |     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter

      |     49 | doFilter  in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter

      |     82 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter

      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor

      |    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker

      ^    744 | run       in java.lang.Thread

       

      Thanks in advance for your help.