jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carey, Tom" <TCa...@TALK.COM>
Subject RE: JCS 1.2 - CompositeCache:get(571)-->java.lang.NullPointerExce ption
Date Thu, 10 Feb 2005 14:19:21 GMT
Aaron,

Yes, we are passing in a null.  I've corrected that on our end.  

As far as the stack trace, it doesn't get printed.  Not sure why that's
happening but here was the output from our log with debug turned on in
CompositeCache:

DEBUG com.talk.pos.ecommerce.action.FeatureHelpAction:execute(46)-->begin
DEBUG org.apache.jcs.engine.control.CompositeCache:get(436)-->get: key =
/featureHelpECOM, localOnly = false
DEBUG
org.apache.jcs.engine.control.CompositeCache:get(467)-->TransitionEventType
- Memory cache hit
DEBUG
com.talk.pos.ecommerce.action.FeatureHelpAction:showFeatureHelp(71)-->begin
DEBUG
com.talk.pos.ecommerce.action.FeatureHelpAction:showFeatureHelp(77)-->forwar
ding to [nextPage] mapping.
DEBUG org.apache.jcs.engine.control.CompositeCache:get(436)-->get: key =
/jsp/featureHelp.jspECOM, localOnly = false
DEBUG
org.apache.jcs.engine.control.CompositeCache:get(467)-->TransitionEventType
- Memory cache hit
DEBUG
com.talk.pos.ecommerce.action.FeatureHelpAction:execute(59)-->forwarding to
[/jsp/featureHelp.jsp] mapping.
DEBUG org.apache.jcs.engine.control.CompositeCache:get(436)-->get: key =
null, localOnly = false
ERROR
org.apache.jcs.engine.control.CompositeCache:get(571)-->java.lang.NullPointe
rException
DEBUG org.apache.jcs.engine.control.CompositeCache:get(580)-->FeatureHelp -
Miss
DEBUG org.apache.jcs.engine.control.CompositeCache:get(436)-->get: key = **,
localOnly = false
DEBUG org.apache.jcs.engine.control.CompositeCache:get(467)-->FeatureHelp -
Memory cache hit

Thanks,
Tom
-----Original Message-----
From: Aaron Smuts [mailto:aasmuts@wisc.edu]
Sent: Wednesday, February 09, 2005 1:55 PM
To: 'Turbine JCS Users List'
Subject: RE: JCS 1.2 -
CompositeCache:get(571)-->java.lang.NullPointerExce ption


Upgrade to 1.2.4-dev.  I'll change the log message if it hasn't been
changed already.  Good idea.  

Can you send me a more complete stack trace, so I can investigate a bit
further.  I wonder if it could be related to the key you are passing in.
. . .

Aaron

> -----Original Message-----
> From: Carey, Tom [mailto:TCarey@TALK.COM]
> Sent: Wednesday, February 09, 2005 6:53 AM
> To: 'turbine-jcs-user@jakarta.apache.org'
> Subject: RE: JCS 1.2 -
CompositeCache:get(571)-->java.lang.NullPointerExce
> ption
> 
> When the argument, key, passed in to the method (below) contains a
null,
> 
>     protected ICacheElement get( Serializable key, boolean localOnly )
>     {
>         ICacheElement element = null;
> 
>         boolean found = false;
> 
>         if ( log.isDebugEnabled() )
>         {
>             log.debug( "get: key = " + key + ", localOnly = " +
localOnly
> );
>         }
> 
>         try
>         {
>             // First look in memory cache
> 
>             element = memCache.get( key );     //NPE is getting thrown
> from
> here
> 	...
> 
> a NPE gets thrown from the statement above, then caught and logged at
the
> bottom of this method.
> 
> Might help to resolve issues like this quicker if the catch looked
like:
> 
>         catch ( Exception e )
>         {
>             log.error("cacheName=" + cacheName + ", key=" + key, e );
>         }
> 
> Thanks,
> Tom
> >  -----Original Message-----
> > From: 	Carey, Tom
> > Sent:	Thursday, January 20, 2005 8:46 AM
> > To:	turbine-jcs-user@jakarta.apache.org
> > Subject:	JCS 1.0 -
> > CompositeCache:get(593)-->java.lang.NullPointerException
> >
> >
> > Has anyone come across this error before and know what the cause or
> > resolution might be?
> > We're currently using jcs-1.0-dev.jar running on OC4J 10g.
> > org.apache.jcs.engine.control.CompositeCache:get(593)--
> >java.lang.NullPoin
> > terException
> > (No stacktrace)
> >
> > We had been running pretty cleanly the first three months but after
a
> > release last Friday, it started appearing.  I think some objects are
> > dropping out of the cache, causing NPEs in other places in our code.
> Only
> > appears in production but not in our dev environment.
> >
> > I did have each region initially coded with diskcache but after last
> > night's release, I turned it off and also added the
elementattributes
> > settings.  I've attached our ccf file.
> >  << File: cache.ccf >>
> > Downloaded jcs-1.2-dev.jar this morning.  Will start looking into
that
> > too.
> >
> > Any ideas?
> > Thanks,
> > Tom Carey
> > Talk America
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org


Mime
View raw message