Hey,

the error is very strange, since the line 293 reads something like:

     if (foo == null) 
     {
          ...
     }
     else 
     {
293:      foo.bar();
     }

and of course foo should not be null there.
Nevertheless, I found a bug in the LRU cache and I've commited it.

If this bug is reproducible for you (for me everything works fine) can you
send me the relevant code ?

Bye

Simon

> I updated my CVS this morning, though I'm also doing a clean 
> checkout to
> make sure I didn't get too messed up in the process.
>  
> After 10-15 minutes I seem to get a cache size adjustment 
> message on my
> console, and if the cache gets too small (less than total 
> number of X's)
> then when I execute a finder which returns all the X's I get 
> some weird null
> pointer exception in LRU cache.
>  
> [cart.ProductSession] java.lang.NullPointerException
>         at
> org.jboss.util.LRUCachePolicy$LRUList.promote(LRUCachePolicy.java:293)
>         at org.jboss.util.LRUCachePolicy.get(LRUCachePolicy.java:121)
>         at
> org.jboss.ejb.plugins.EnterpriseInstanceCache.get(EnterpriseIn
> stanceCache.ja
> va:75)
>         at
> org.jboss.ejb.plugins.EntityInstanceCache.get(EntityInstanceCa
> che.java:56)
> 
> Is there some way to fix the cache size, or turn off this shrinking?
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to