Skip to content

新AetherResolver的问题 #636

Open

Description

@zzzyyylllty

#627 后,使用1.21.10时出现问题(1.21.4没有问题):java.lang.NoClassDefFoundError: org/objectweb/asm/util/Printer。
完整日志:https://mclo.gs/jQchGaM
在本地测试中,还原PR #627的更改后正常工作。

Activity

  1. TheFloodDragon commented on Dec 6, 2025

    @TheFloodDragon
    Contributor

    Nashorn/NashornScriptEngineFactory

    Image

    Taboolib/NashornCompiler

    以此可以看出,问题并不在 #627,ScriptEngine的获取基本都得指定类加载器,AppClassloader不一定能访问到asm依赖。(本人同样使用了Nashorn并无碰到此问题)

    而且我只是修正了依赖传递的逻辑(作用域判断和逻辑调整),以及使 同一个依赖的不同版本 (此处依赖指要被Taboolib注入到插件内的) 不会被重复加载,其并不会被插件依赖解析造成实质性影响。

    对于 还原PR 的更改后正常工作 ,影响因素包括人为因素以及其他种种,我无法断定此是否受 该PR的影响。

  2. CSXFanMeng commented on Dec 18, 2025

    @CSXFanMeng

    这问题我也遇到了,不过我没研究原因,我在加入了sxitem后突然发现可以正常运行了,回看日记发现他下载了全套的asm7.3.1,然后我在项目中选择也下载全套asm7.3.1这问题就解决了,不过主要是我时间少这解决方法虽然不好但可以临时用,以及大概或许应该和1.21的版本关系不大

  3. zzzyyylllty commented on Feb 22, 2026

    @zzzyyylllty
    ContributorAuthor

    应该xiule

  4. TheFloodDragon commented on Feb 22, 2026

    @TheFloodDragon
    Contributor

    在我那个pr之前,坏黑可能是英文Ide tab补全,导致防止依赖重复加载一直坏的。我pr时修了这个问题,但是没有考虑这个防止重复依赖加载要分类加载器。然后asm第一次被隔离类加载器加载,之后再次被PluginClassLoader加载的时候,因为防止重复导致其实际上并没有被加载到,所以会获取不到

    (修了一个bug导致出现了另一个bug)

  5. zzzyyylllty commented on Apr 21, 2026

    @zzzyyylllty
    ContributorAuthor

    这玩意tm好像又回来了

  6. zzzyyylllty commented on Apr 21, 2026

    @zzzyyylllty
    ContributorAuthor

    https://github.com/zzzyyylllty/Lithium-Carbonate
    把这个项目升到TB6.3之后(升级的部分我没推送)还是报asm,手动打包一下就没事了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions