-
Notifications
You must be signed in to change notification settings - Fork 120
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
ClassNotFoundException when deserializing List[T] from redis #32
Comments
I'm using scalacache-redis with Play 2.3, so ObjectInputStream in scalacache-redis can't see the |
Play's classloader magic strikes again. Thanks for investigating. I'll add a
and use that in I wonder if memcached has this problem as well. That also uses Java serialization. By the way, I'd be interested to see how you are integrating ScalaCache with Play. I think a Play plugin might be useful for a lot of people. |
I have not tried but guess scalacache-memcached also has this problem. play2-memcached plugin do the same thing as play-redis. Writing the backend of Play Cache API with the implementation of scalacache-redis and scalacache-memcached is a good idea. play2-memcached and play-redis don't seem to be good maintained but a lot of people are using them. I hardly use Play Cache API directly, but some popular modules (securesocial, play2-auth...) depend on the API. |
This is needed when using ScalaCache with Play. Fixes #32
In scalacache-redis 0.6.0 I've added a constructor argument so you can pass in While investigating this issue I noticed that scalacache-redis was not thread-safe, so I've fixed that as well. |
👍 |
An interesting development: this is actually a Scala/Openjdk bug. https://issues.scala-lang.org/browse/SI-9237 |
I encountered ClassNotFoundException when using
memoize
.I'm using scalacache-redis 0.5.2.
This script is minimal example to reproduce the error.
The text was updated successfully, but these errors were encountered: