Can you provide the code for your MemcacheFilter?

On Sat, Aug 15, 2009 at 2:54 AM, Martyn <[email protected]>wrote:

>
> Hi Jason,
>
> Only seen in production environment.
>
> Since I use the wrapper class MemcacheFilter, if this is not
> initialised then I would get a null exception from the wrapper method
> call, but I get the null exception from the call to the wrapped
> memcacheService which is only assigned in the MemcacheFilter field
> initilizer.
>
> - Martyn
>
> On Aug 14, 6:00 pm, "Jason (Google)" <[email protected]> wrote:
> > Hi Martyn. Are you seeing this in the local environment, production, or
> > both? If you're seeing this in the local environment only, signs point to
> a
> > race condition in your code.
> > - Jason
> >
> > On Thu, Aug 13, 2009 at 6:31 AM, Martyn <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> > > I have written a wrapper for MemCache to facillitate batch operations.
> >
> > > Specifically I have added a queue method that add to a Map object and
> > > then a flush method does a batch put.
> >
> > > This works very well.
> >
> > > However, I have just found a couple of errors in my log indicating the
> > > wrapped memcacheService is null.
> >
> > > The wrapper has a field initializer defiend as:
> > >        MemcacheService m_cache =
> MemcacheServiceFactory.getMemcacheService
> > > ();
> >
> > > ..and then later methods call through to the m_cache field.
> >
> > > Nowhere in my code do I set m_cache to null and am at a loss to
> > > explain unless the getMemcacheService is returning null.  Should I
> > > really need to be checking this? The only response to the user would
> > > be "The Application Is Not Available".
> >
> > > - Martyn
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to