3 Replies Latest reply on Nov 27, 2007 7:22 AM by Manik Surtani

    Clusted Cache with Berkeley CacheLoader with a singleton wri

    Raymond Manaloto Newbie

      I was wondering if a configuration with the following properties is possible:
      - clusted cache
      - Berkeley CacheLoader
      - Singleton writer enabled

      I'm getting the following exception and was wondering if there was a way to make this work out of the box without creating a custom cacheloader.

      Caused by: com.sleepycat.je.log.LogException: (JE 3.2.44) A je.lck file exists in C:\cache\stats The environment can not be locked for single writer access.
      at com.sleepycat.je.log.FileManager.lockEnvironment(FileManager.java:1292)
      at com.sleepycat.je.log.FileManager.(FileManager.java:185)
      at com.sleepycat.je.dbi.EnvironmentImpl.(EnvironmentImpl.java:296)
      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:102)
      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:54)
      at com.sleepycat.je.Environment.(Environment.java:100)
      at org.jboss.cache.loader.bdbje.BdbjeCacheLoader.start(BdbjeCacheLoader.java:171)
      at org.jboss.cache.loader.AbstractDelegatingCacheLoader.start(AbstractDelegatingCacheLoader.java:158)
      at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:378)
      ... 61 more