Wednesday, 15 April 2015

heroku - spymemcached throws ClassNotFoundException from SerializingTranscoder for BasicClientCookie -



heroku - spymemcached throws ClassNotFoundException from SerializingTranscoder for BasicClientCookie -

i'm using spymemcached version 2.8.1 read cookie object maintain running next exception:

app[web.1]: warn net.spy.memcached.transcoders.serializingtranscoder: caught cnfe decoding 513 bytes of info app[web.1]: java.lang.classnotfoundexception org.apache.http.impl.cookie.basicclientcookie

i using httpclient version 4.1.1: https://dl.dropbox.com/u/6207935/screen%20shot%202013-02-05%20at%202.47.19%20pm.png has basicclientcookie class within of i'm not quite sure why "cannot found"

also based on hear-say think basicclientcookie marked serializable in 4.1.1 exact javadocs have been bit hard dig up, ... assumption on part. anyway, exception doesn't seem related serialization thought i'd throw out there question completeness.

what ideas resolve issue?

update # 1 (feb 5, 2013)

these may shed lite on problem:

http://code.google.com/p/spymemcached/issues/detail?id=146 - when using heroku don't know how obtain same level of command on app server's file scheme ... way described here. http://code.google.com/p/spymemcached/issues/detail?id=155 - not sure how spymemcached utilize custom serializingtranscoder.

the advice given here worked: http://code.google.com/p/spymemcached/issues/detail?id=155#c2

the additional bit testing out after applying custom serializingtranscoder spymemcached

memcachedclient mc = new memcachedclient( new connectionfactorybuilder() .settranscoder(new customserializingtranscoder()) // makes take effect .setprotocol(connectionfactorybuilder.protocol.binary) ...

heroku httpclient spymemcached

No comments:

Post a Comment