-
Notifications
You must be signed in to change notification settings - Fork 38
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
Redis on Graal: I/O error occurred during deserialization: java.util.ArrayList; no valid constructor #194
Comments
Can you try using the Jackson serializer https://micronaut-projects.github.io/micronaut-redis/latest/guide/#sessions JDK serialisation will be deprecated soon |
I tried without success. Shows the same error. https://github.com/j1cs/drugstore-demo/blob/master/backend/src/main/resources/application.yml#L21 I'm using @Cacheable annotation in the services layer. It's a problem? Should I use it in the controller layer? I followed this reference https://micronaut-projects.github.io/micronaut-redis/latest/guide/configurationreference.html#io.micronaut.configuration.lettuce.session.RedisHttpSessionConfiguration |
I checked redis and still using java serializer:
Updated: setting @Cacheable in the controller didn't work too. |
Now adding
It works when running with the openjdk:
However doesn't work with the native image:
|
Try add |
Didn't work:
Redis shows:
(changes pushed btw) |
I think this is a bug. Because when you put the deserialization form in the |
I was able to replicate the error in a newly created project: https://github.com/j1cs/micronaut-redis-cache-issue
Hope helps. |
this error doesn't occur with version 3 |
I'm sorry. I was wrong the issue still persist. |
Task List
Steps to Reproduce
mn create-app me.jics.backend -b maven -f graalvm,lombok,openapi,redis-lettuce,cache-ehcache -t spock
./mvnw package -Dpackaging=native-image
Expected Behaviour
after starting it should caching the result
Actual Behaviour
Doesn't caching anything.
With this error:
Environment Information
Operating System: Arch Linux
Micronaut Version: 2.5.0
JDK Version:
Example Application
Complete stacktrace
The text was updated successfully, but these errors were encountered: