Closed GoogleCodeExporter closed 9 years ago
it worked, i resovled the deployment of memcached 2.5 jar file
Original comment by smrit...@gmail.com
on 10 Jun 2010 at 3:09
It appears that this was a dependency issue that was resolved by the user. If I
am incorrect please reply that this issue is still open and I'll reopen the
issue.
Original comment by mikewie...@gmail.com
on 11 Jul 2011 at 9:16
Having the same issue even after i have attached a custom Tanscoder which i
have got from
http://thysmichels.com/2014/03/01/memcached-customserializingtranscoder-serializ
ed-object/
i am using Apache Karaf as OSGi bundle container execution environment.
Original comment by ch.sha...@gmail.com
on 29 Dec 2014 at 11:34
Need Help !!
I am having similar issue in karaf. Trying to save a Object into memcached
inside a OSGI bundle. Getting below error,
karaf@root> 2015-03-17 17:48:03.121 WARN
net.spy.memcached.transcoders.SerializingTranscoder: Caught CNFE decoding 582
bytes of data
java.lang.ClassNotFoundException: com.zyme.inventory.model.cached.InvPosition
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.apache.felix.framework.BundleWiringImpl.doImplicitBootDelegation(BundleWiringImpl.java:1666)
at org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1603)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1439)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:625)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at net.spy.memcached.transcoders.BaseSerializingTranscoder.deserialize(BaseSerializingTranscoder.java:129)
at net.spy.memcached.transcoders.SerializingTranscoder.decode(SerializingTranscoder.java:88)
at net.spy.memcached.transcoders.TranscodeService$1.call(TranscodeService.java:63)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at net.spy.memcached.transcoders.TranscodeService$Task.run(TranscodeService.java:110)
at net.spy.memcached.transcoders.TranscodeService$Task.get(TranscodeService.java:96)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:63)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1003)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1024)
I have installed memcached 2.8.4
[ 381] [Active ] [ ] [ ] [ 80]
wrap_mvn_com.google.code.simple-spring-memcached_spymemcached_2.8.4 (0)
thanks,
Original comment by mohammed...@gmail.com
on 17 Mar 2015 at 12:31
Please attached Transcoder file. Use it with memcached library and reference it
while making a memcached object. For reference please check below mentioned
code.
I was having the same issue and i resolved it using transcoder. Basically in
OSGI bundles every bundle has its own scope/boundry. So while fetching the
saved object in memcached it gives us an exception.
MemcacheImpl.memcachedClient = new MemcachedClient( new
ConnectionFactoryBuilder().setTranscoder( new CustomSerializingTranscoder() )
.setProtocol( ConnectionFactoryBuilder.Protocol.BINARY ).build(), nodeList );
Original comment by ch.sha...@gmail.com
on 17 Mar 2015 at 12:55
Attachments:
Hey, what is the memcached version your are using? and what is nodeList?
thanks,
Original comment by mohammed...@gmail.com
on 17 Mar 2015 at 1:14
Hey thank you very much! Got it working with your suggestion #5.
ConnectionFactoryBuilder builder=new ConnectionFactoryBuilder();
ConnectionFactoryBuilder.Protocol protocol=
ConnectionFactoryBuilder.Protocol.BINARY;
builder.setTranscoder(new CustomeSerializingTranscoder<JavaBeanToSerialize>());
MemcachedClient client=new
MemcachedClient(builder.build(),AddrUtil.getAddresses("localhost:11211"));
thanks,
Original comment by mohammed...@gmail.com
on 17 Mar 2015 at 2:01
-- Missing CAS API (With exp. time and without Transcoder)
<T> CASResponse cas(java.lang.String key, long casId, int exp, T value)
-- Currently Available CAS APIs
-- With MemcachedClientIF
<T> CASResponse cas(java.lang.String key, long casId, int exp, T value,
Transcoder<T> tc)
CASResponse cas(java.lang.String key, long casId, java.lang.Object value)
-- With MemcachedClient
<T> CASResponse cas(java.lang.String key, long casId, int exp, T value,
Transcoder<T> tc)
CASResponse cas(java.lang.String key, long casId, java.lang.Object value)
<T> CASResponse cas(java.lang.String key, long casId, T value, Transcoder<T> tc)
any thoughts on this??
thanks,
Original comment by mohammed...@gmail.com
on 18 Mar 2015 at 2:13
Original issue reported on code.google.com by
smrit...@gmail.com
on 9 Jun 2010 at 8:38