You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]:Class org.redisson.api.RScript$ReturnType does not have member field 'org.redisson.api.RScript$ReturnType LONG' #3063
java.lang.NoSuchFieldError: No static field LONG of type Lorg/redisson/api/RScript$ReturnType;
at io.agentscope.adapter.RedissonClientAdapter.evalScript(RedissonClientAdapter.java:228)
at io.agentscope.storage.redis.RedisAgentStateStore.[相关持久化方法]
异常发生在虚拟线程,调用链路来自RedisAgentStateStore持久化流程。
运行环境
AgentScope-Java Version:2.0.3
Java Version:21
OS:Windows
补充说明
Maven 依赖树显示项目依赖 Redisson 3.52.0,该版本RScript.ReturnType包含 LONG 枚举,版本本身没问题。
冲突根本原因:agentscope-2.0.3.jar使用 shade 打包内嵌旧 Redisson,未做包名 relocation 隔离;Maven 依赖树无法识别这种内嵌在 jar 里的 class。
JVM 优先加载 agentscope 包内旧的org.redisson.api.RScript$ReturnType,该枚举缺少 LONG 常量。
Category: bug | Status: Confirmed (root cause differs from the report)
Verified against the published io.agentscope:agentscope:2.0.3 artifact on Maven Central and main @ c5db8f7.
What we found:
The NoSuchFieldError: RScript$ReturnType.LONG is genuine. RScript.ReturnType.INTEGER was renamed to LONG in Redisson 4.x; 3.x jars have no LONG field. Framework code uses the 4.x API (RedissonClientAdapter.java:228, RedissonAgentStateStore.java:153 on main; the RedissonClientAdapter.class inside the published agentscope-2.0.3.jar references ReturnType.LONG as well).
Correction to the reported root cause: we inspected agentscope-2.0.3.jar directly — it contains zeroorg/redisson/** classes, so nothing is embedded/shaded-unrelocated. The only top-level package is io/agentscope/.
Actual root cause: the published aggregate agentscope-2.0.3.jardoes bundle the Redis extension classes (io/agentscope/extensions/redis/state/redisson/*.class), but its POM declares no org.redisson dependency at all (only harness/jackson/okhttp/mcp/reactor/jsonschema). So the bundled Redisson-based code runs against whatever Redisson the user happens to place on the classpath — here redisson-spring-boot-starter:3.52.0 → Redisson 3.x, whose ReturnType lacks LONG. This is the same packaging drift behind [Bug]: #3010合并后agentscope-all 聚合包通过 agentscope-spring-boot-starter 传递依赖,导致 classpath 出现重复类,运行时加载旧版代码(shade 产物与模块版本不同步) #3083 (aggregate contents out of sync with module releases).
Impact: anyone using RedisAgentStateStore via the aggregate artifact with a self-managed Redisson 3.x fails at first state persist with a raw NoSuchFieldError. Severity: medium-high (runtime crash, non-obvious cause, undeclared dependency).
Fix proposal (packaging decision involved, so flagged before a PR):
Add a fail-fast compatibility guard in the Redisson store init (probe ReturnType.LONG / implementation version) that raises a clear message like "agentscope Redis extension requires Redisson >= 4.x; found X".
Document the minimum Redisson version for Redis-backed state persistence.
User-side workaround today: align Redisson with the version agentscope was built against — org.redisson:redisson:4.2.0 (or import agentscope-dependencies-bom), instead of letting redisson-spring-boot-starter:3.52.0 resolve Redisson 3.x.
An automated fix proposal can be generated for the guard + dependency-declaration part. Reply /approve to proceed with PR generation (the aggregate-packaging change itself is queued behind the maintainer decision in #3083).
Adjacent-PR advisory — no change to the evaluation above (supplementary context; the reply window above stays open)
While re-checking the open-PR queue against this proposal window, a new community PR appeared that overlaps part of what the /approve call-to-action above advertises:
fix: fail early for incompatible Redisson state-store clients #3112 (open, non-draft, @mvanhorn, opened 2026-09-12T12:33:50Z) — fix: fail early for incompatible Redisson state-store clients, Fixes #3063. It implements item 2 of the proposal above — a construction-time capability probe that resolves RScript.ReturnType by name and raises an actionable IllegalStateException when a Redisson 3.x API is on the classpath, wired through both RedissonAgentStateStore and RedissonClientAdapter — plus item 3 (minimum-version docs across the four docs/v2/{en,zh}/integration/{distributed,session}/redis.md pages) and unit tests for both classes.
What #3112 does not cover: item 1. No pom.xml/BOM file is touched, so the published aggregate still bundles io/agentscope/extensions/redis/** while declaring no org.redisson dependency. That packaging decision remains queued behind the maintainer decision in #3083, exactly as stated in the evaluation above.
Effect on this window: approving here no longer means "generate the guard" — that half already has an author, a test suite and green license/validate checks (the two build jobs were still pending at the time of writing). We will not file a competing guard fix. The only automatable remainder is the aggregate dependency declaration, and it is entangled with the open #3083 decision, so nothing is generated until either #3112 lands (guard is done) or a maintainer rules on #3083 (packaging becomes actionable). Reviewers should route their attention to #3112 first.
Status: 72 h feedback window expired — no automated PR will be generated, this proposal window here is closed
The fix proposal evaluated above went 72 hours without community feedback (no reply on this thread since 2026-09-11 13:08 UTC), so per our workflow we skip PR generation and the proposal window here is closed. No action is needed from anyone.
For context, this issue is already covered by an open community PR:
As of this check #3112 is MERGEABLE with reviewDecision=APPROVED, and every check reports success at head 7ac7282 (build (ubuntu-latest), build (windows-latest), Check License, Check Module Sync, validate, codecov/patch, license/cla), most recently updated 2026-09-13 05:59 UTC. It targets the same failure this issue reports — resolving RScript.ReturnType.LONG at construction time so a Redisson 3.x classpath fails early with an actionable message instead of the opaque NoSuchFieldError.
#3112 stays the active path for this issue. If a maintainer would still prefer an independent proposal here, reply on the issue and we will re-evaluate.
Quick status note for whoever triages Redis issues: #3112 (the fail-early guard for Redisson 3.x on the classpath) has been approved since Sep 21, with the review items addressed in c19b7bc. It still needs a maintainer to merge it. The packaging question in item 1 (declaring the Redisson dependency in the aggregate) is still tied to #3083 and isn't part of that PR.
Activity
oss-maintainer commentedon Sep 11, 2026
Issue Evaluation
Category:
bug| Status: Confirmed (root cause differs from the report)Verified against the published
io.agentscope:agentscope:2.0.3artifact on Maven Central andmain@c5db8f7.What we found:
NoSuchFieldError: RScript$ReturnType.LONGis genuine.RScript.ReturnType.INTEGERwas renamed toLONGin Redisson 4.x; 3.x jars have noLONGfield. Framework code uses the 4.x API (RedissonClientAdapter.java:228,RedissonAgentStateStore.java:153onmain; theRedissonClientAdapter.classinside the publishedagentscope-2.0.3.jarreferencesReturnType.LONGas well).agentscope-2.0.3.jardirectly — it contains zeroorg/redisson/**classes, so nothing is embedded/shaded-unrelocated. The only top-level package isio/agentscope/.agentscope-2.0.3.jardoes bundle the Redis extension classes (io/agentscope/extensions/redis/state/redisson/*.class), but its POM declares noorg.redissondependency at all (only harness/jackson/okhttp/mcp/reactor/jsonschema). So the bundled Redisson-based code runs against whatever Redisson the user happens to place on the classpath — hereredisson-spring-boot-starter:3.52.0→ Redisson 3.x, whoseReturnTypelacksLONG. This is the same packaging drift behind [Bug]: #3010合并后agentscope-all 聚合包通过 agentscope-spring-boot-starter 传递依赖,导致 classpath 出现重复类,运行时加载旧版代码(shade 产物与模块版本不同步) #3083 (aggregate contents out of sync with module releases).Impact: anyone using
RedisAgentStateStorevia the aggregate artifact with a self-managed Redisson 3.x fails at first state persist with a rawNoSuchFieldError. Severity: medium-high (runtime crash, non-obvious cause, undeclared dependency).Fix proposal (packaging decision involved, so flagged before a PR):
extensions/redisclasses in the aggregate and ship them only as the standaloneagentscope-extensions-redismodule (aligned with the [Bug]: #3010合并后agentscope-all 聚合包通过 agentscope-spring-boot-starter 传递依赖,导致 classpath 出现重复类,运行时加载旧版代码(shade 产物与模块版本不同步) #3083 direction).ReturnType.LONG/ implementation version) that raises a clear message like "agentscope Redis extension requires Redisson >= 4.x; found X".User-side workaround today: align Redisson with the version agentscope was built against —
org.redisson:redisson:4.2.0(or importagentscope-dependencies-bom), instead of lettingredisson-spring-boot-starter:3.52.0resolve Redisson 3.x.An automated fix proposal can be generated for the guard + dependency-declaration part. Reply
/approveto proceed with PR generation (the aggregate-packaging change itself is queued behind the maintainer decision in #3083).Automated evaluation by github-manager-bot
oss-maintainer commentedon Sep 12, 2026
Adjacent-PR advisory — no change to the evaluation above (supplementary context; the reply window above stays open)
While re-checking the open-PR queue against this proposal window, a new community PR appeared that overlaps part of what the
/approvecall-to-action above advertises:Fixes #3063. It implements item 2 of the proposal above — a construction-time capability probe that resolvesRScript.ReturnTypeby name and raises an actionableIllegalStateExceptionwhen a Redisson 3.x API is on the classpath, wired through bothRedissonAgentStateStoreandRedissonClientAdapter— plus item 3 (minimum-version docs across the fourdocs/v2/{en,zh}/integration/{distributed,session}/redis.mdpages) and unit tests for both classes.What #3112 does not cover: item 1. No
pom.xml/BOM file is touched, so the published aggregate still bundlesio/agentscope/extensions/redis/**while declaring noorg.redissondependency. That packaging decision remains queued behind the maintainer decision in #3083, exactly as stated in the evaluation above.Effect on this window: approving here no longer means "generate the guard" — that half already has an author, a test suite and green license/validate checks (the two
buildjobs were still pending at the time of writing). We will not file a competing guard fix. The only automatable remainder is the aggregate dependency declaration, and it is entangled with the open #3083 decision, so nothing is generated until either #3112 lands (guard is done) or a maintainer rules on #3083 (packaging becomes actionable). Reviewers should route their attention to #3112 first.Automated by github-manager-bot
oss-maintainer commentedon Sep 14, 2026
Status: 72 h feedback window expired — no automated PR will be generated, this proposal window here is closed
The fix proposal evaluated above went 72 hours without community feedback (no reply on this thread since 2026-09-11 13:08 UTC), so per our workflow we skip PR generation and the proposal window here is closed. No action is needed from anyone.
For context, this issue is already covered by an open community PR:
fix: fail early for incompatible Redisson state-store clients, by @mvanhorn,Fixes #3063As of this check #3112 is
MERGEABLEwithreviewDecision=APPROVED, and every check reports success at head7ac7282(build (ubuntu-latest),build (windows-latest),Check License,Check Module Sync,validate,codecov/patch,license/cla), most recently updated 2026-09-13 05:59 UTC. It targets the same failure this issue reports — resolvingRScript.ReturnType.LONGat construction time so a Redisson 3.x classpath fails early with an actionable message instead of the opaqueNoSuchFieldError.#3112 stays the active path for this issue. If a maintainer would still prefer an independent proposal here, reply on the issue and we will re-evaluate.
Automated by github-manager-bot
fix: fail early for incompatible Redisson state-store clients
mvanhorn commentedon Oct 27, 2026
Quick status note for whoever triages Redis issues: #3112 (the fail-early guard for Redisson 3.x on the classpath) has been approved since Sep 21, with the review items addressed in c19b7bc. It still needs a maintainer to merge it. The packaging question in item 1 (declaring the Redisson dependency in the aggregate) is still tied to #3083 and isn't part of that PR.