Open liorgonnen opened 11 years ago
Hi,
Thank you for reporting the issue! Would you mind providing me some example code to reproduce it? So I can test it myself and add it to specs.
mumoshu
Hi,
I have created a tiny caching test with Externalizable
, and it seems working.
e04e1663d
Do you have any idea?
I've upgraded to 0.3.0 (when migrating to Play 2.1 / Scala 2.10), and I get the following exception when trying to get a value from cache:
[error] m.plugin - An error has occured while getting the value from memcached java.util.concurrent.ExecutionException: java.io.EOFException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) ~[na:1.7.0_07] at java.util.concurrent.FutureTask.get(FutureTask.java:111) ~[na:1.7.0_07] at net.spy.memcached.transcoders.TranscodeService$Task.get(TranscodeService.java:97) ~[spymemcached-2.8.4.jar:2.8.4] at net.spy.memcached.internal.GetFuture.get(GetFuture.java:63) ~[spymemcached-2.8.4.jar:2.8.4] at com.github.mumoshu.play2.memcached.MemcachedPlugin$$anon$2.get(MemcachedPlugin.scala:103) ~[play2-memcached_2.10-0.3.0.jar:0.3.0] at play.api.cache.Cache$.get(Cache.scala:65) [play_2.10.jar:2.1.0] java.io.EOFException: null at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340) ~[na:1.7.0_07] at java.io.ObjectInputStream$BlockDataInputStream.readUnsignedShort(ObjectInputStream.java:2781) ~[na:1.7.0_07] at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2837) ~[na:1.7.0_07] at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1069) ~[na:1.7.0_07] at models.UserDao.readExternal(UserDao.scala:127) ~[invi-server_2.10-March%2019th,%202013.jar:March 19th, 2013] at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1810) ~[na:1.7.0_07]
The UserDao object implements the Externalizable interface. The exact same code works with the previous version. Any suggestions?