Yes, you need to serialize your objects, so they need to implement Serializable or Externalizable. As to the NPE, could you send me a stack trace? Need to know where it is happening to be able to debug.<br><br>gw<br><br>
<div><span class="gmail_quote">On 7/18/07, <b class="gmail_sendername">Alexander Shvedov</b> <<a href="mailto:Alexander.Shvedov@dataart.com">Alexander.Shvedov@dataart.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But when I implements Serializable to object that are put in cached (and<br>also all objects that are in that) the setting in cached is ok, but I<br>can not get them from cache. (NullPointerException <but that can be the
<br>cause>)<br><br>-----Original Message-----<br>Subject: Re: Memcached with Java Client<br><br>> Hello! We're currently looking at memcached to use it in one of our<br>> projects. When using java client I always have "can not serialize"
<br>> message. Do all objects that are putted in memcached needs to be<br>> serializable?<br><br><br>yes, they all must implement serializable.<br><br>Oezcan Acar<br>--<br>Mit freundlichen Grüßen<br><br>___________________________
<br><br>Özcan Acar, Dipl. Inf(FH)<br>Vorstand<br>Smart Web Business AG<br><br>Im Niederfeld 8<br>65462 Gustavsburg<br><br>+49 171 57 33 66 5<br><a href="mailto:acar@unitedinter.net">acar@unitedinter.net</a><br><br></blockquote>
</div><br><br clear="all"><br>-- <br>Greg Whalin