Spring Session Redis fails to deserialize with ClassNotFoundException
org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException:Failed to deserialize...
View ArticleRedis / Lettuce / Stream - how to send my own entry id in xadd
I'm implementing a price feed with Java as feeder and python as consumer. I'm more python than Java. I need to send my own entry id (timestamp) from java, but I don't find examples and clear...
View ArticleData is not preserved when stored in Redis
I am using the lastest Redis.I saved a object called PostOwnership as below to a given keypublic class PostOwnership implements Serializable { @Id @GeneratedValue private Long id; private final Long...
View ArticleRedisson decode random class cast exception
I'm using redisson 3.15.2 version and FST for the serialization. but when doing a load test on the program I'm getting this random exception from time to time, but when I execute the same out of the...
View Articleunable to connect to redis on aks via java code [closed]
I want to connect to redis cluster running as in AKS(Azure kubernetes). Please suggest how to do itI am getting exception when I pass the IP and port number for the redis load balancer created in...
View ArticleWhat are the notify-keyspace-events in Redis
I started to setup spring project by following this spring-boot article. But suddenly application could not start successfully, instead I am getting the following stack trace:Exception in thread "main"...
View ArticleRedis / Java / Lettuce - how to access context objects
I'm working with Redis pub/subscribe pattern, adding a Listener for the subscriber, from a class (myClass). From the listener thread I need to access the variables/objects of the thread that is setting...
View Article(Java) Get attribute of an Object ($...)
I'm trying to get a specific attribute of an Object. In my code, I have an object "asdf2" with the follow attributes:I need to get the "keyElement" attribute of my "asdf2".My code with the...
View ArticleSpring Boot 2.4.2 - Redisson Client - DNS Resolution Problem at start
I'm upgrading my Spring Boot version from 2.1.x to 2.4.2 and using Redisson as Redis Client in the project. When I compiled and run the code, I got the following warning:Unable to load...
View ArticleSpring doesn't set expiration time for records on Redis cache
I have the project where I send Objects to Redis cache, but Spring doesn't set expiration time for records. I tried in many ways:By setting @TimeToLive annotation to field.By adding...
View ArticleRedis PUBSUB OnMessage ClassNotfound Exception
I am trying to use RMap.get() in Redis pubsub OnMessage function but it's generating classNotFound Exception, I have used this method in multiple methods in same class and it's working fine there.Am I...
View ArticleProduction - Infinite exception loop getting printed
[com.servicenow.wfm.controller.app.UncaughtExceptionCatchingFilter] [] [] - [71de9350-f819-4770-b8ed-7585d8b0e7e2] Uncaught exception during processing of request nulljavax.servlet.ServletException:...
View ArticleHow to send data to Redis in ElastiCache
I already connected with Redis in ElastiCache, and I have a hashmap which contains some key value pairs, how can I send those key value pair to redis in java?config.useReplicatedServers()...
View ArticleHow to connect to Redis in AWS Elasticache by using Java
I want send some data to redis in AWS Elasticache, I already created a redis cluster in AWS Elasticache, the question is how can I connect to it by using Java?This is my Primary Endpoint:Primary...
View ArticleWhen is it safe to retry Redis command on error when using Lettuce?
I'm using Lettuce Redis client for JVM to build a queue backed by a Redis List.Ideally it would behave like an in-memory queue but since the network interaction is involved this is not possible.There...
View ArticleRedis read all values for all hashes
I use this method for Reading all values from Redis, but I am not sure if this is good way:public List<Value> findAll() { Set<String> allAvailableKeys = redisTemplate.keys("*");...
View ArticleNot able to connect to redis by using Redisson
I want connect and send data to redis in aws, I already created a redis cluster in ElastiCache, but I can't connect to it through my code, is there anything wrong with my code?I want to create a map...
View ArticleWhat is the best way to support unique number generator with both sequential...
I have a requirement where we need to support generation of unique number with both sequential and random increment option with or within range of numbers.Currently we support only sequential using...
View ArticleRange Querying in Redis - Spring Data Redis
is there a way we can implement Range queries in Redis using Spring Data Redis?Eg:If my Pojo class has Date(which is not a primary key) and i require data that falls under a desired period of date, Is...
View ArticleRedis command timed out; nested exception is...
Today when I using Java redis client(spring-data-redis-2.3.9.RELEASE.jar) to consume Redis stream message encount this error:2021-05-11 17:49:42.134 ERROR 26301 --- [-post-service-1]...
View Article