Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception with Play 2.1 #16

Open
liorgonnen opened this issue Mar 23, 2013 · 2 comments
Open

Exception with Play 2.1 #16

liorgonnen opened this issue Mar 23, 2013 · 2 comments

Comments

@liorgonnen
Copy link

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?

@mumoshu
Copy link
Contributor

mumoshu commented Mar 25, 2013

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

@mumoshu
Copy link
Contributor

mumoshu commented Mar 31, 2013

Hi,

I have created a tiny caching test with Externalizable, and it seems working.

e04e166

Do you have any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants