Skip to content

[Bug]:NacosSkillRepository 框架层 bug,3 层叠加,ai分析对吗? #1339

Closed

Description

@rogerlmj123

问题根因(框架层 bug,3 层叠加):问题根因(框架层 bug,3 层叠加):
1、NacosSkillRepository 构造函数 将空 namespace 映射为 "public",然后 source = "nacos:" + namespaceId → "nacos:public"
2、AgentSkill.getSkillId() = name + "_" + source → order-query-skill_nacos:public
3、SkillBox.uploadSkillFiles() 用 Path.resolve(skillId) → Windows 上 : 是非法路径字符 → InvalidPathException

这与技能名称无关,是框架 NacosSkillRepository 内部对所有 namespace 都会拼接 nacos:{namespaceId} 的固有问题。即使 namespace 配为空字符串,框架也会转为 "public"。

skill从nacos加载过程,ide用的windows。是上面分析问题吗?
————————————————————————————-错误信息如下:
java.nio.file.InvalidPathException: Illegal char <:> at index 23: order-query-skill_nacos:public

at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204) ~[na:na]

at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:175) ~[na:na]

at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[na:na]

at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) ~[na:na]

at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:231) ~[na:na]

at java.base/java.nio.file.Path.resolve(Path.java:516) ~[na:na]

at io.agentscope.core.skill.SkillBox.uploadSkillFiles(SkillBox.java:737) ~[agentscope-core-1.0.11.jar:na]

at io.agentscope.core.ReActAgent$Builder.configureSkillBox(ReActAgent.java:1737) ~[agentscope-core-1.0.11.jar:na]

at io.agentscope.core.ReActAgent$Builder.build(ReActAgent.java:1567) ~[agentscope-core-1.0.11.jar:na]

at com.agent.scope.mall.agent.BaseAgent.buildAgent(BaseAgent.java:315) ~[classes/:na]

Activity

  1. added
    bug
    on May 5, 2026
  2. fang-tech commented on May 8, 2026

    @fang-tech
    Collaborator

    You can solve this problem by extending the NacosSkillRepository class and overriding the getSource() method. (你可以通过extend NacosSkillRepository override getSource()方法来暂时解决这个问题, 这个问题我会在这个版本修复)

  3. added theissue type on May 11, 2026
  4. added
    area/ext/integration
    on May 28, 2026
  5. moved this from Backlog to In progress in AgentScope Javaon Aug 31, 2026
  6. moved this from In progress to Done in AgentScope Javaon Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ext/integrationbug

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions