Uploaded image for project: 'Lucee Development'
  1. LDEV-1312

Unable to load class org.lucee.extension.cache.eh.LuceeRMICacheReplicatorFactory

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EHCache 2.10.0.24, 5.2.4.0
    • Labels:
    • Environment:

      Windows Server 2012 R2 Standard 64bit. VMWARE Virtual Platform.

      Lucee 5.2.1.9 installed using lucee-express-5.2.1.9 windows installer. I also experienced this issue with older (5) versions of lucee.

    • Sprint:
      May-June 2017 Sprint, July 2017 Sprint, August 2017 Sprint

      Description

      I receive these errors in the administrator when I verify 2 different distributed cache

      Unable to load class org.lucee.extension.cache.eh.LuceeRMICacheReplicatorFactory. Initial cause was org.lucee.extension.cache.eh.LuceeRMICacheReplicatorFactory not found by org.lucee.ehcache [70]

      java.lang.IllegalStateException: You cannot share a Configuration instance across multiple running CacheManager instances.

      On a clean install I created 2 services-cache type ehCache in admin:

      this.cache.connections["defaultCache"] = {
      class: 'org.lucee.extension.cache.eh.EHCache'
      , bundleName: 'ehcache.extension'
      , bundleVersion: '2.10.0.21'
      , storage: false
      , custom:

      { "bootstrapAsynchronously":"true", "replicatePuts":"true", "automatic_hostName":"", "bootstrapType":"on", "maxelementsinmemory":"10000", "manual_rmiUrls":"", "distributed":"automatic", "automatic_multicastGroupAddress":"224.0.0.0", "memoryevictionpolicy":"LRU", "replicatePutsViaCopy":"true", "timeToIdleSeconds":"86400", "maximumChunkSizeBytes":"5000000", "automatic_multicastGroupPort":"4446", "listener_socketTimeoutMillis":"120000", "timeToLiveSeconds":"86400", "diskpersistent":"true", "manual_addional":"", "replicateRemovals":"true", "replicateUpdatesViaCopy":"true", "automatic_addional":"", "overflowtodisk":"true", "replicateAsynchronously":"true", "maxelementsondisk":"10000000", "listener_remoteObjectPort":"", "asynchronousReplicationIntervalMillis":"1000", "listener_hostName":"", "replicateUpdates":"true", "manual_hostName":"", "automatic_timeToLive":"the same subnet", "listener_port":"" }

      , default: ''
      };

      and
      this.cache.connections["EhClientCache"] = {
      class: 'org.lucee.extension.cache.eh.EHCache'
      , bundleName: 'ehcache.extension'
      , bundleVersion: '2.10.0.21'
      , storage: true
      , custom:

      { "bootstrapAsynchronously":"true", "replicatePuts":"true", "automatic_hostName":"", "bootstrapType":"on", "maxelementsinmemory":"10000", "manual_rmiUrls":"", "distributed":"automatic", "automatic_multicastGroupAddress":"224.0.0.0", "memoryevictionpolicy":"LRU", "replicatePutsViaCopy":"true", "timeToIdleSeconds":"86400", "maximumChunkSizeBytes":"5000000", "automatic_multicastGroupPort":"4446", "listener_socketTimeoutMillis":"120000", "timeToLiveSeconds":"86400", "diskpersistent":"true", "manual_addional":"", "replicateRemovals":"true", "replicateUpdatesViaCopy":"true", "automatic_addional":"", "overflowtodisk":"true", "replicateAsynchronously":"true", "maxelementsondisk":"10000000", "listener_remoteObjectPort":"", "asynchronousReplicationIntervalMillis":"1000", "listener_hostName":"", "replicateUpdates":"true", "manual_hostName":"", "automatic_timeToLive":"the same subnet", "listener_port":"" }

      , default: ''
      };

      Then restarted lucee.

      When I navigate to http://mydomain:8888/lucee/admin/server.cfm?action=services.cache
      and check the boxes next to the 2 cache and hit verify I get an error for each of the cache cache.

      for "defaultCache" the first cache I get the following error:

      Unable to load class org.lucee.extension.cache.eh.LuceeRMICacheReplicatorFactory. Initial cause was org.lucee.extension.cache.eh.LuceeRMICacheReplicatorFactory not found by org.lucee.ehcache [70]

      for "EhClientCache" I get the following error:

      java.lang.IllegalStateException: You cannot share a Configuration instance across multiple running CacheManager instances.

      I don't see anything unusual in the attached logs.

        Attachments

        1. deploy.log
          11 kB
        2. LDEV1312.cfc
          3 kB
        3. lucee-stderr.log
          5 kB
        4. lucee-stdout.log
          37 kB

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                nonfatmedia Marc Archenault
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: