From melissaswanson@example.com  Fri Jul 11 10:23:26 2003
Return-Path: <melissaswanson@example.com>
Mailing-List: contact melissaswanson@example.com; run by ezmlm
Delivered-To: mailing list melissaswanson@example.com
Received: (qmail 26121 invoked from network); 11 Jul 2003 10:23:26 -0000
Received: from unknown (HELO server?mail) (83.161.120.155)
  by daedalus.apache.org with SMTP; 11 Jul 2003 10:23:26 -0000
Received: from [83.161.120.155] by server_mail.0041.com (NTMail 5.06.0016/PS0014.00.27786320) with ESMTP id lstycaaa for melissaswanson@example.com; Fri, 11 Jul 2003 12:26:05 +0200
Message-ID: <005901c34796$80d22cb0$0a01a8c0@taino>
Reply-To: "Fulco Houkes" <melissaswanson@example.com>
From: "Fulco Houkes" <melissaswanson@example.com>
To: "JCS dev mailinglist" <melissaswanson@example.com>
Subject: composite keys and cache entries keys retrieval
Date: Fri, 11 Jul 2003 12:23:37 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0056_01C347A7.41310CF0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

------=_NextPart_000_0056_01C347A7.41310CF0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I'm try to use a composite key for all the cache entries; the composite =
key is combination of a pageID and a username. I need to be able to =
invalidate all the cache entries related to a specific pagesID as well =
as all the cache entries related to a username independently.

I tried to use groups for this purpose, but it seems the entries are =
duplicated into the different groups, so it's not solving my problem. =
I've been looking for using the ":" hierarchy features, but the =
"very-light" documentation does present much on the subject, and I could =
not remove entries using the pattern  ":"+ myKey +":". As far as I =
understood it, it's only possible to use this functionality with the =
myKey+":" pattern.

Finally I opted to retrieve all the cache entries keys and filter myself =
the entries to be invalidated. But I could not found any method (from =
the JCS class) returning a Set/Enumeration/... of keys of all the the =
cache entries. The IMemoryCache interface has a getKeyArray() method, =
which does the job, but this method is not used within the inherited =
classes.

Does anyone know how to retrieve the keys of all the entries present in =
the cache, without having to change the source code?=20

Thanks a lot.
Fulco Houkes

------=_NextPart_000_0056_01C347A7.41310CF0--



From melissaswanson@example.com  Fri Jul 18 04:01:25 2003
Return-Path: <melissaswanson@example.com>
Mailing-List: contact melissaswanson@example.com; run by ezmlm
Delivered-To: mailing list melissaswanson@example.com
Received: (qmail 12910 invoked from network); 18 Jul 2003 04:01:25 -0000
Received: from earth.everse.com (HELO venus.everse.com) (83.161.120.155)
  by daedalus.apache.org with SMTP; 18 Jul 2003 04:01:25 -0000
Received: by venus.everse.com with Internet Mail Service (5.5.2656.59)
	id <3FG31CJT>; Fri, 18 Jul 2003 09:36:32 +0530
Received: from TOKYO ([83.161.120.155]) by venus.everse.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59)
	id 3FG31CJS; Fri, 18 Jul 2003 09:36:22 +0530
From: Guru Prasanth <melissaswanson@example.com>
Reply-To: Guru Prasanth <melissaswanson@example.com>
To: melissaswanson@example.com
Subject: RemoteGroupCacheServerFactory problem
Date: Fri, 18 Jul 2003 09:31:24 +0530
Message-ID: <melissaswanson@example.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

hi,
   Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/jcs/auxiliary/remote/server/group/RemoteGroupCacheServerFactory.

 for the above problem i went to the respective folder to find
RemoteGroupCacheServerFactory.But i was not able to find it.i went to the
cvs and try to get it.but it was not available.

regards
                                                                       guru

From melissaswanson@example.com  Mon Jul 21 07:44:00 2003
Return-Path: <melissaswanson@example.com>
Mailing-List: contact melissaswanson@example.com; run by ezmlm
Delivered-To: mailing list melissaswanson@example.com
Received: (qmail 2111 invoked from network); 21 Jul 2003 07:44:00 -0000
Received: from unknown (HELO orc.asertel.es) (83.161.120.155)
  by daedalus.apache.org with SMTP; 21 Jul 2003 07:44:00 -0000
Received: from desarrollo3 (docsis106-3.menta.net [83.161.120.155])
	by orc.asertel.es (8.12.9/8.12.9/Debian-1) with SMTP id h6L7hkbL027251
	for <melissaswanson@example.com>; Mon, 21 Jul 2003 09:43:49 +0200
Message-ID: <melissaswanson@example.com>
From: "Galderic Punti" <melissaswanson@example.com>
To: "Turbine JCS Developers List" <melissaswanson@example.com>
References: <melissaswanson@example.com>
Subject: Re: RemoteGroupCacheServerFactory problem
Date: Mon, 21 Jul 2003 09:47:09 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

I had the same problem too. I changed "RemoteGroupCacheServerFactory" to
"RemoteCacheServerFactory" and it worked. I also had to modify some of the
interfaces of the CVS sources I downloaded, because some of its methods
didn't throw RemoteException and couldn't make the rmi stubs.


----- Original Message ----- 
From: "Guru Prasanth" <melissaswanson@example.com>
To: <melissaswanson@example.com>
Sent: Friday, July 18, 2003 6:01 AM
Subject: RemoteGroupCacheServerFactory problem


> hi,
>    Exception in thread "main" java.lang.NoClassDefFoundError:
>
org/apache/jcs/auxiliary/remote/server/group/RemoteGroupCacheServerFactory.
>
>  for the above problem i went to the respective folder to find
> RemoteGroupCacheServerFactory.But i was not able to find it.i went to the
> cvs and try to get it.but it was not available.
>
> regards
>
guru
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: melissaswanson@example.com
> For additional commands, e-mail: melissaswanson@example.com
>


From melissaswanson@example.com  Wed Jul 30 15:02:02 2003
Return-Path: <melissaswanson@example.com>
Mailing-List: contact melissaswanson@example.com; run by ezmlm
Delivered-To: mailing list melissaswanson@example.com
Received: (qmail 83886 invoked from network); 30 Jul 2003 15:02:02 -0000
Received: from scenac.sysadm.suny.edu (83.161.120.155)
  by daedalus.apache.org with SMTP; 30 Jul 2003 15:02:02 -0000
Received: from scenib1.sysadmin.suny.edu ([83.161.120.155])
 by sysadm.suny.edu (PMDF V6.2 #30588)
 with ESMTP id <melissaswanson@example.com> for
 melissaswanson@example.com; Wed, 30 Jul 2003 11:01:54 -0400 (EDT)
Received: by scenib1.sysadmin.suny.edu with Internet Mail Service (5.5.2656.59)
	id <P7W9AS1S>; Wed, 30 Jul 2003 11:01:54 -0400
Content-return: allowed
Date: Wed, 30 Jul 2003 11:01:46 -0400
From: "Hoffman, Michael" <melissaswanson@example.com>
Subject: NullPointerException
To: "'melissaswanson@example.com'" <melissaswanson@example.com>
Message-id: <melissaswanson@example.com>
MIME-version: 1.0
X-Mailer: Internet Mail Service (5.5.2656.59)
Content-type: multipart/alternative;
 boundary="----_=_NextPart_001_01C356AB.7EC355A7"
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

------_=_NextPart_001_01C356AB.7EC355A7
Content-Type: text/plain;
	charset="iso-8859-1"

Hello,

I am trying to get JCS up and running and I am running into the following
problem.  I have tried setting the config file in my code as well, but I am
having no luck.  I have enclosed the config file and a code snippet as well.

Thanks!
Mike

java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:59)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:84)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:73)
        at java.util.Properties.load(Properties.java:184)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCache
Manager.java:149)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCache
Manager.java:131)
        at
org.apache.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCac
heManager.java:76)
        at
org.apache.jcs.access.GroupCacheAccess.getGroupAccess(GroupCacheAccess.java:
114)
        at
edu.suny.sysadm.common.service.cache.CacheManager.<init>(CacheManager.java:2
1)
        at
edu.suny.sysadm.finance.service.cache.TransactionCodeCacher.<init>(Transacti
onCodeCacher.java:12)
        at _finance._mike._jspService(_mike.java:52)
        at
com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
        at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:348)
        at
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.ja
va:65)
        at
oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293)
        at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
tcher.java:602)
        at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq
uestDispatcher.java:308)
        at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle
r.java:779)
        at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:264)
        at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
        at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
sourcePooledExecutor.java:186)
        at java.lang.Thread.run(Thread.java:479)

public class CacheManager {

    private static CacheManager instance;

    protected static Log log =
Log.getInstance(CacheManager.class.getName());
    
    protected static JCS transactionCodeCache;
    
    public CacheManager() {

        try{
            JCS.setConfigFilename("config/cache.ccf"); 
            transactionCodeCache = JCS.getInstance("transactionCodeCache");
            System.out.println("transactionCodeCache: " +
transactionCodeCache);
        } catch(Exception e){
            log.warn("Could not get an instance of transactionCodeCache: ",
e);
            e.printStackTrace();
        }
        
    }
}



############################################################################
####
#    
# DEFAULT CACHE REGION
#
# Sets the default aux value for any non configured caches.
#
############################################################################
####

jcs.default=DC
jcs.default.cacheattributes=org.apache.stratum.jcs.engine.CompositeCacheAttr
ibutes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.stratum.jcs.engine.me
mory.lru.LRUMemoryCache
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=7200
jcs.default.elementattributes.IdleTime=3600
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true

############################################################################
####
#
# SYSTEM CACHE REGION   
#
# Should be defined for the storage of group attribute list.
#
############################################################################
####

jcs.system.groupIdCache=DC
jcs.system.groupIdCache.cacheattributes=org.apache.stratum.jcs.engine.Compos
iteCacheAttributes
jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.stratum.j
cs.engine.memory.lru.LRUMemoryCache

############################################################################
####
#
# PRE-DEFINED CACHE REGIONS   
#
# Values that are not inherited from Default.
#
############################################################################
####

jcs.region.transactionCodeCache=DC
jcs.region.transactionCodeCache.cacheattributes=org.apache.stratum.jcs.engin
e.CompositeCacheAttributes
jcs.region.transactionCodeCache.cacheattributes.MaxObjects=30
jcs.region.transactionCodeCache.cacheattributes.MemoryCacheName=org.apache.s
tratum.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.transactionCodeCache.cacheattributes.UseMemoryShrinker=true

############################################################################
####
#
# AVAILABLE AUXILIARY CACHES
#
# What way do you want to cache the default and Pre-defined Cache Regions.
#
############################################################################
####

jcs.auxiliary.DC=org.apache.stratum.jcs.auxiliary.disk.indexed.IndexedDiskCa
cheFactory
jcs.auxiliary.DC.attributes=org.apache.stratum.jcs.auxiliary.disk.indexed.In
dexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=C:\OC4J_HOME\j2ee\home\cache



------_=_NextPart_001_01C356AB.7EC355A7--

From melissaswanson@example.com  Wed Jul 30 22:28:28 2003
Return-Path: <melissaswanson@example.com>
Mailing-List: contact melissaswanson@example.com; run by ezmlm
Delivered-To: mailing list melissaswanson@example.com
Received: (qmail 13500 invoked from network); 30 Jul 2003 22:28:28 -0000
Received: from nyny01-mrl.columbiahouse.com (HELO columbiahouse.com) (83.161.120.155)
  by daedalus.apache.org with SMTP; 30 Jul 2003 22:28:28 -0000
Reply-To: <melissaswanson@example.com>
From: "Karl Baum" <melissaswanson@example.com>
To: "'Turbine JCS Developers List'" <melissaswanson@example.com>
Subject: RE: NullPointerException
Date: Wed, 30 Jul 2003 18:28:31 -0400
Organization: Tallan
Message-ID: <007a01c356e9$e84cc5a0$da02fea9@kbaumxp>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <melissaswanson@example.com>
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

The config file has to be in your classpath.

-----Original Message-----
From: Hoffman, Michael [mailto:melissaswanson@example.com] 
Sent: Wednesday, July 30, 2003 11:02 AM
To: 'melissaswanson@example.com'
Subject: NullPointerException

Hello,

I am trying to get JCS up and running and I am running into the
following
problem.  I have tried setting the config file in my code as well, but I
am
having no luck.  I have enclosed the config file and a code snippet as
well.

Thanks!
Mike

java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:59)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:84)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:73)
        at java.util.Properties.load(Properties.java:184)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC
ache
Manager.java:149)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC
ache
Manager.java:131)
        at
org.apache.jcs.engine.control.CompositeCacheManager.getInstance(Composit
eCac
heManager.java:76)
        at
org.apache.jcs.access.GroupCacheAccess.getGroupAccess(GroupCacheAccess.j
ava:
114)
        at
edu.suny.sysadm.common.service.cache.CacheManager.<init>(CacheManager.ja
va:2
1)
        at
edu.suny.sysadm.finance.service.cache.TransactionCodeCacher.<init>(Trans
acti
onCodeCacher.java:12)
        at _finance._mike._jspService(_mike.java:52)
        at
com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
        at
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:348)
        at
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChai
n.ja
va:65)
        at
oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293)
        at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestD
ispa
tcher.java:602)
        at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Servle
tReq
uestDispatcher.java:308)
        at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHa
ndle
r.java:779)
        at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
264)
        at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
107)
        at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releasab
leRe
sourcePooledExecutor.java:186)
        at java.lang.Thread.run(Thread.java:479)

public class CacheManager {

    private static CacheManager instance;

    protected static Log log =
Log.getInstance(CacheManager.class.getName());
    
    protected static JCS transactionCodeCache;
    
    public CacheManager() {

        try{
            JCS.setConfigFilename("config/cache.ccf"); 
            transactionCodeCache =
JCS.getInstance("transactionCodeCache");
            System.out.println("transactionCodeCache: " +
transactionCodeCache);
        } catch(Exception e){
            log.warn("Could not get an instance of transactionCodeCache:
",
e);
            e.printStackTrace();
        }
        
    }
}



########################################################################
####
####
#    
# DEFAULT CACHE REGION
#
# Sets the default aux value for any non configured caches.
#
########################################################################
####
####

jcs.default=DC
jcs.default.cacheattributes=org.apache.stratum.jcs.engine.CompositeCache
Attr
ibutes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.stratum.jcs.engin
e.me
mory.lru.LRUMemoryCache
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=7200
jcs.default.elementattributes.IdleTime=3600
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true

########################################################################
####
####
#
# SYSTEM CACHE REGION   
#
# Should be defined for the storage of group attribute list.
#
########################################################################
####
####

jcs.system.groupIdCache=DC
jcs.system.groupIdCache.cacheattributes=org.apache.stratum.jcs.engine.Co
mpos
iteCacheAttributes
jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.strat
um.j
cs.engine.memory.lru.LRUMemoryCache

########################################################################
####
####
#
# PRE-DEFINED CACHE REGIONS   
#
# Values that are not inherited from Default.
#
########################################################################
####
####

jcs.region.transactionCodeCache=DC
jcs.region.transactionCodeCache.cacheattributes=org.apache.stratum.jcs.e
ngin
e.CompositeCacheAttributes
jcs.region.transactionCodeCache.cacheattributes.MaxObjects=30
jcs.region.transactionCodeCache.cacheattributes.MemoryCacheName=org.apac
he.s
tratum.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.transactionCodeCache.cacheattributes.UseMemoryShrinker=true

########################################################################
####
####
#
# AVAILABLE AUXILIARY CACHES
#
# What way do you want to cache the default and Pre-defined Cache
Regions.
#
########################################################################
####
####

jcs.auxiliary.DC=org.apache.stratum.jcs.auxiliary.disk.indexed.IndexedDi
skCa
cheFactory
jcs.auxiliary.DC.attributes=org.apache.stratum.jcs.auxiliary.disk.indexe
d.In
dexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=C:\OC4J_HOME\j2ee\home\cache





{'source': 'Apache Software Foundation Public Mail Archives'}