org.springframework.data.redis.serializer.SerializationException: Could not serialize: level too large : 2048
Open
bug
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 问题描述
*简要描述您碰到的问题。*
### 环境信息
*请填写以下信息:*
- OS信息: Windows10
- JDK信息: Openjdk 17.0.8
- 版本信息:Fastjson2 2.0.40
### 重现步骤
使用GenericFastJsonRedisSerializer用作redis ValueSerializer和setHashValueSerializer,chache存入自定义类报错,存在循环依赖
Contributor guide
Research direction
Start by reproducing the report with Fastjson2 2.0.40, GenericFastJsonRedisSerializer, Redis value and hash-value serializers, and a custom class containing a circular dependency. Investigate the source and tests for the "level too large : 2048" SerializationException. Done means the reported custom object can be stored without this serialization failure, with a regression test covering the circular dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, redis
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100