Memcache Java API /deserialize issue

Greg Whalin gwhalin at meetup.com
Mon Nov 22 11:17:51 PST 2004


This is an error while deserializing your object as it comes out of 
cache.  This is a ClassCastException which means (from javadocs for 
ObjectInputStream.readObject()) "Class of a serialized object cannot be 
found.".

This is not a problem with the Memcached (client or server) but likely 
something with your code?

Greg
--
Greg Whalin
Meetup.com

Manoj Kumar wrote:
> we are using java-memcached-1.1.11 server and using java-memcached-1.0  
> client API.
> we are successfully storing session Object into memcahed server. While 
> getting session
> Object from memcahe server i am getting IOException
> 
>  I have given session.getID()  as Key and session Object  as value
> boolean flag = mc.set(session.getId(), session);
> 
> 
> pelase help
> 
> 
> *******************************************************************
> 
> com.danga.MemCached.SockIOPool Mon Nov 22 10:58:49 CST 2004 - cache 
> socket pick F4FC7C3B16C7228FBE4B16DC404C99F5 null
> com.danga.MemCached.MemCachedClient Mon Nov 22 10:58:49 CST 2004 - ++++ 
> ClassNotFoundException thrown while trying to deserialize for key: 
> F4FC7C3B16C7228FBE4B16DC404C99F5
> com.danga.MemCached.MemCachedClient Mon Nov 22 10:58:49 CST 2004 - ++++ 
> exception thrown while trying to get object from cache for key: 
> F4FC7C3B16C7228FBE4B16DC404C99F5
> com.danga.MemCached.MemCachedClient Mon Nov 22 10:58:49 CST 2004 - +++ 
> failed while trying to deserialize for key: 
> F4FC7C3B16C7228FBE4B16DC404C99F5
> java.io.IOException: +++ failed while trying to deserialize for key: 
> F4FC7C3B16C7228FBE4B16DC404C99F5
>     at 
> com.danga.MemCached.MemCachedClient.loadItems(MemCachedClient.java:1084)
>     at com.danga.MemCached.MemCachedClient.get(MemCachedClient.java:850)
>     at com.danga.MemCached.MemCachedClient.get(MemCachedClient.java:816)
>     at 
> org.apache.catalina.session.JDBCMemCachedStore.load(JDBCMemCachedStore.java:591) 
> 
>     at 
> org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:191)
>     at 
> org.apache.catalina.session.PersistentManagerBase.backgroundProcess(PersistentManagerBase.java:221) 
> 
>     at 
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1272) 
> 
>     at 
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1553) 
> 
>     at 
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1562) 
> 
>     at 
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1562) 
> 
>     at 
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1542) 
> 
>     at java.lang.Thread.run(Thread.java:595)
> 
> _________________________________________________________________
> VeriProfile. A matrimonial profile verification service. 
> http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Only at 
> BharatMatrimony.com
> 


More information about the memcached mailing list