Your memcached client doesn't have access to the classes it's
using.  Java apps typically have at least two different classloaders
(web apps have a lot more).  If the memcached client is loaded in one,
but your classes are loaded in another, they won't be able to see each
other.

  A given classloader may encompass another (such that you can access
classes in one direction, but not the other).  These all complicate
things.

  The *easiest* thing to do is to put the client and all of your
classes into the same classloader so this kind of thing doesn't
happen.

On Sep 16, 9:11 pm, arjuns <[EMAIL PROTECTED]> wrote:
> Yes, it does!
>
> Cheers
> Arjun
>
> On Sep 16, 6:23 pm, "Boris Partensky" <[EMAIL PROTECTED]>
> wrote:
>
> > Does PUser class have a default constructor?
>
> > On Tue, Sep 16, 2008 at 8:52 AM, arjuns <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > >  I am using the java client fromhttp://www.whalin.com/memcached/, I
> > > can store the the object as given below
>
> > > com.danga.MemCached.MemCachedClient Tue Sep 16 18:01:36 IST 2008 - +++
> > > + serializing for key: [EMAIL PROTECTED] for class: com.xyz.object.PUser
> > > com.danga.MemCached.MemCachedClient Tue Sep 16 18:01:36 IST 2008 - +++
> > > + memcache cmd (result code): set [EMAIL PROTECTED] 8 0 1147
> > >  (STORED)
> > > com.danga.MemCached.MemCachedClient Tue Sep 16 18:01:36 IST 2008 - +++
> > > + data successfully stored for key: [EMAIL PROTECTED]
>
> > > but while reading it back I am getting the following error:
>
> > >  ++++ ClassNotFoundException thrown while trying to deserialize for
> > > key: [EMAIL PROTECTED]
> > > java.lang.ClassNotFoundException: com.xyz.object.PUser
>
> > > I have looked up the net for this problem and found that
> > > The error is not related to memcached.  It's not a serialization
> > > issue; the problem is that the Java VM can't find the .class file.
>
> > > Now can any one please give me a direction to solve this problem.
>
> > > Cheers
> > > Arjun
>
> > --
> > --Boris
>
>

Reply via email to