Results 1 to 4 of 4

Thread: userCache is not alive

  1. #1
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default userCache is not alive

    I realize that this problem is mainly related to ehcache but as most users of acegi use ehcache maybe they can help me out. We have a farm of applications that are untouched for a couple of days/nights and for some reason when they are trying to login we get this message:

    userCache is not alive - which means the whole authorization process goes no where. The only solution I found was to restart the application which is a no-go. It's a very wierd aspect as the cache manager should handle these issues itself and the message suggests that the cache is considered live (active) when it isn't. We are using ehcache 1.1 and acegi 0.8.3 (not that it matters).
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Here is the stacktrace just in case:

    Code:
    java.lang.IllegalStateException: The userCache Cache is not alive. 
    at net.sf.ehcache.Cache.checkStatus(Cache.java:713) at
    net.sf.ehcache.Cache.get(Cache.java:355) at
    net.sf.acegisecurity.providers.dao.cache.EhCacheBasedUserCache.getUserFromCache(EhCacheBasedUserCache.java:64)
    Thanks.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I'll move this post to "core container" as people with more EH-CACHE experience might have seen this before. It's not an Acegi Security problem (we don't even create the cache instance).
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    The problem (and the solution) can found here: http://forum.springframework.org/sho...ed=1#post55833
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. The CacheManager is not alive.
    By asv in forum Security
    Replies: 3
    Last Post: Mar 24th, 2006, 11:21 AM
  2. Cannot configure userCache
    By juan110470 in forum Security
    Replies: 2
    Last Post: Oct 27th, 2005, 05:13 AM
  3. Problem with userCache using ehCache.
    By nicholsl in forum Security
    Replies: 1
    Last Post: Oct 14th, 2004, 04:20 AM
  4. Replies: 1
    Last Post: Sep 23rd, 2004, 06:19 PM
  5. Replies: 7
    Last Post: Aug 17th, 2004, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •